Skip to content

Commit

Permalink
additional shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 22, 2024
1 parent 0beda35 commit ee879b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/product_checkout_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def success
shipping = product.product_shippings.find_by(country: stripe_session.shipping_details.address.country) ||
product.product_shippings.find_by(country: 'Rest of World')

additional_shipping_cost = shipping ? (item.quantity - 1) * shipping.additional_cost : 0
additional_shipping_cost = shipping ? (item.quantity - 1) * shipping.additional_cost.to_i : 0
end
{
product: product,
Expand Down

0 comments on commit ee879b8

Please sign in to comment.