Post by alexmitev » Fri Feb 11, 2011 11:41 pm

Needless to say, I'm pretty much disappointed with the way the whole order logic works.
After finding out that "Free shipping" doesn't remove all other payed types of shipping from the list of options, I found that the cart obviously mis-calculates order's total.
I have Sub-total, Shipping and Total enabled in "Order Totals".
After adding an item to the cart, I have:
sub-total: $20
total: $20
Which is not true, because I don't know how much the shipping would cost!
Then, when making the checkout, after I have chosen the type of shipping, the total gets updated with the cost of the shipping, and changes, which is correct, but it's very bad to see the total of the order change.
Then, if I don't make the checkout and add some more things to the basket, the shipping price "magically" disappears, which is correct, but the total still stays there, which is incorrect.
So, for me it's obvious that the cart module shouldn't try to display any shipping or total prices, at least outside the checkout process.

Can somebody prove that this is the way it's supposed to work in 1.4.9.3?
As far as I know, it didn't use to work like this in older versions.

New member

Posts

Joined
Wed Jan 19, 2011 10:38 pm

Post by Qphoria » Sat Feb 12, 2011 12:07 am

alexmitev wrote:Needless to say, I'm pretty much disappointed with the way the whole order logic works.
Why is that needless to say? We can't read minds... we don't know what you like. It is very needed to say ;)
alexmitev wrote: After finding out that "Free shipping" doesn't remove all other payed types of shipping from the list of options, I found that the cart obviously mis-calculates order's total.
I have Sub-total, Shipping and Total enabled in "Order Totals".
After adding an item to the cart, I have:
sub-total: $20
total: $20
Which is not true, because I don't know how much the shipping would cost!
Then, when making the checkout, after I have chosen the type of shipping, the total gets updated with the cost of the shipping, and changes, which is correct, but it's very bad to see the total of the order change.
Then, if I don't make the checkout and add some more things to the basket, the shipping price "magically" disappears, which is correct, but the total still stays there, which is incorrect.
So, for me it's obvious that the cart module shouldn't try to display any shipping or total prices, at least outside the checkout process.

Can somebody prove that this is the way it's supposed to work in 1.4.9.3?
As far as I know, it didn't use to work like this in older versions.
Lots of whining here.. so basically you just want to hide the "Total" until after everything else is done.
Your claims about the totals "Existing" is fine but don't say they are calculating wrong because that is not true.
Showing the full total breakdown in the sidecart was a "feature" added to 1.4.8. A few people don't care for the subtotal and total both showing when they are the same.. but I think this will all change in 1.5.0

For now you can simply remove the total from the sidebox by doing:
1. EDIT: catalog/view/theme/yourtheme/template/module/cart.tpl

2. FIND:

Code: Select all

<?php foreach ($totals as $total) { ?>
3. AFTER, ADD:

Code: Select all

<?php if ($total['title'] == 'Total:') { continue; } ?>
4. EDIT: catalog/controller/module/cart.tpl

5. FIND:

Code: Select all

foreach ($total_data as $total) {
6. AFTER, ADD:

Code: Select all

 if ($total['title'] == 'Total:') { continue; }
As far as one shipping type disabling others.. that is just not available yet. In 1.6.x I plan on looking at a way to better control and handle payment and shipping mixing and controlling.. They way they are now needs a major overhaul that 1.5.x won't have.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by amilanvega » Wed Dec 21, 2011 9:41 pm

How do I remove the shipping from cart.tpl and cart.php? I only want to show the total. I've managed to remove subtotal and vat, but can't seem to find an answer to this.

Newbie

Posts

Joined
Sun Oct 02, 2011 10:50 pm


Post by straightlight » Thu Dec 22, 2011 1:18 pm

The shipping feature can be disabled from the admin - > extensions - > shipping. All those that are disabled should not show on the template as an option.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 14 guests