Shipping cost not needed needed to show to client if this don't select a shipping method yet #41066
Replies: 12 comments
|
### This changes in the tpls resolve the problem Please add it to the new release Change the ps_shoppingcart -> modal.tpl in theme modify this two .tpl files: cart-summary-subtotals.tpl -> add modify cart-detailed-totals.tpl -> add |
You can do it by submitting a Pull Request to ps_shoppingcart 😉 https://github.com/prestashop/ps_shoppingcart |
|
Hi @TecnoHands , Thank you for your reporting. Currently, I think you send a feature that you want into prestashop, so I'll treat it as if it were one. The Product Team will take it into consideration for future developments. Please be aware that there is no guarantee that this feature will be developed anytime soon. Thank you |
|
I give you a solution, where You see a online store shows shipping cost before You select one? 🤦 In My opinion that is a Bad Workflow. I begin to think the proyect leaves this type of event without corrections with that intention appears how PrestaShop are "Open source" but not completely really |
|
I don't how 😔 |
|
Hello @TecnoHands Anyone can make changes to improve the project. That's also what open source is. If you need help i can help you. It is important to know that PrestaShop is international and that some countries ask for the shipping price when adding to the cart. |
Please try to contribute to a positive environment, and focus on what is best for the community and show empathy towards other members rather than just say we have bad intentions. |
|
After your change, it will show Subtotal 114 and Total 118. What are the 4 dollars for when you hide the shipping? You need to think about this more. ;-) Then we can implement something like this. The idea is good, but it must be configurable. Some clients want the original behavior, to preview the shipping cost to customer. |
The idea is show shipping cost when client select one shipping method if you don't selected any shipping method why you show a shipping cost. I see a error in my solution and I try to solve it but I can't find the documentation about the $subtotal var to go more deeper :( Thanks for the feedback |
|
@TecnoHands You must check another variable. Put this to your template and you will see all the totals available. 🙂
|
|
@TecnoHands
These steps are pretty good designed to be modular. And they use current active address to show the best AVAILABLE options both for delivery and payment. So when you add an item to the cart, it checks your current active delivery address to find best suited delivery option based on the sorting you have set in BO and also available payment options. |
Very thanks for the explanation |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Describe the bug and add screenshots
Shipping cost always viewing, in modal and the cart before the buyer select a shipping method...

Expected behavior
Shipping cost in a "normal" instance don't needed to show to client if this don't select a shipping method yet
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.*
PHP version(s) where the bug happened
1.7.4.3
If your bug is related to a module, specify its name and its version
ps_shoppingcart & Classic theme version 1.0.0
All reactions