International shipping method #4305
-
Hello I just started to maintain a website that was developped by another team.I'm new to ROR, spree and solidus, which r the technologies they used for the website. The problem i'm facing now is that i have to create a new functionnality for the website, i need to add an international shipping method, the shipping fees will be different for each country with also a different tax rate. I managed to create the method and display it but i can't seem to wrap my head around how i'm gonna give the admin the possibility to modify each shipping fee in the dashboard and how to create a new table in database to save the fees and stuff. The actual website calculates the shipping fee before displaying the address page in checkout which complicates it a lil bit more. I'm just curious if anyone have tried before to add the international shipping, how can I do that? What files to add? Controllers? Helpers? Decorators? I'm not even sure what's the difference between all of that.. Any help would be really appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
You do not need to modify the code to support international shipping. Through the admin you can create shipping methods that target each country you ship to. Give each shipping method the correct calculator/pricing and you should be good to go. |
Beta Was this translation helpful? Give feedback.
-
Hey @Nissrine-laal did you end up solving this? In case this is solved, can you please mark this as answered? |
Beta Was this translation helpful? Give feedback.
-
If anyone having the same issue, what i end up doing was create shipping for eah country, mark it as not available and i didn't link to any zone so it won't show. When the user choose a shipping address, i manually create the shipping method and i call @order_recalculate to have the good adjustements and stuff. |
Beta Was this translation helpful? Give feedback.
If anyone having the same issue, what i end up doing was create shipping for eah country, mark it as not available and i didn't link to any zone so it won't show. When the user choose a shipping address, i manually create the shipping method and i call @order_recalculate to have the good adjustements and stuff.