Hi
Is there any possibility to make the shipping cost according to the products collection?
For example, when a customer buy to different items from 2 collection the shipping price will be double. I also thinking with i can get a code that make the price according to the fix KM. For Example, distance between A to B is 100 KM , i want the code to be able to calculate when costumer select point B the total cost will be for example $0.10* 100 thus the shipping cost will be $10.
Please help
2 Likes
Hello!
As of now, WIX doesn’t have anything in place where the cart is passed to a function, and the function passes back shipping costs. However, In WIX, you have the opportunity to completely disrupt the checkout path for scenarios like this.
When you do this, WIX’s cart page will no longer manage your checkout. You’ll need to set it up on your own, and then feed the WIX store an order object. More on that here . Your code will be responsible for:
–Tax
–Shipping (This is what you’re targeting here)
–Payment
–Calculating totals
Once you do this, the sky is the limit for how you calculate anything in your checkout path. If you need to calculate shipping costs based on travel distance, you can do so by using a third party API that helps you calculate travel distances. From there you’ll have a clear number you can use to add in the shipping costs you need.
WIX’s cart page will no longer manage your checkout. You’ll need to set it up on your own, and then feed the WIX store an order object
would you please explain a bit how to do this