Anyone have any experience with the `solidus_handl...
# support
t
Anyone have any experience with the
solidus_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:
Copy code
shipment.adjustments.create!({
            source: shipment.stock_location,
            adjustable: shipment,
            amount: amount,
            order: shipment.order,
            label: "Handling"
          })
k
I think it's due to this commit https://github.com/solidusio/solidus/pull/4035/commits/55bd0e41ed4e34799566655d1b8843d53184ff84 but in specific I don't know what happens there
t
I was able to get it working by overriding the method in an
order_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.