Change shipping price on checkout

Change shipping price on checkout

IvGordiichuk
Shopify Partner
39 1 9

Hi.
I've created custom product template:
Customer select many product's options (from metafields).
I add this selected options to properties and calculate total product price by js (also send in hidden property)...

 

Case 1. (SOLVED) Change cart line item price to property selected calculated price.
Solution:
Created custom app with cart transform function extension: updateOperation: override item price to value from property;

 

Case 2. (NOT SOLVED) Calculate shipping based on selected product's properties.
- I'am calculated item shipping cost based on selected product's properties. BUT I can change shipping.
# Delivery Customization Function allows me only hide, rename or reorder available shipping option. But not create new option with calculated price.

#Order discount (create negative discount and add it as shipping fee) - not allow add negative values

#Carrier Calculated Shipping custom app have not access to line item properties...

 

Create shipping option for this product - with 0 price;
Add via cart transform update operations shipping fee amount...
Show to customer this fee in item property..

Are any ideas?
Thank You!

Reply 1 (1)

YOD_Solutions
Shopify Partner
283 29 43

Carrier Calculated Shipping custom app have not access to line-item properties - I don't think this is correct; you can access line-item properties (It is in the "properties" field). You can use our app JsRates (https://apps.shopify.com/jsrates-shipping-rates) to access the rates in the line-item properties and display them at checkout.  

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store