Tyler Kocheff
09/15/2021, 6:09 PMsolidus_handling_fees gem? I'm attempting to add a handling fee to specific items during checkout, but upon installing this gem and setting the shipping calculator per the readme, checkout errors out after entering the address with You cannot call create unless the parent is saved
I think this is the code it's complaining about in order_decorator.rb of the gem:
shipment.adjustments.create!({
source: shipment.stock_location,
adjustable: shipment,
amount: amount,
order: shipment.order,
label: "Handling"
})kennyadsl
Tyler Kocheff
09/17/2021, 3:07 PMorder_decorator.rb and adding shipment.save! just above that adjustment creation line, but still working on getting the functionality this site needs, which is more of an "additional shipping fee per specific item" sort of thing.