Scratch the working part ...
Look in the Modules ... Order Totals ...
What happens if you click on each one and do the following:
1 Save settings to NotePad
2 REMOVE
3 INSERT
If there is no change, what happens if you switch to the Classic Template?
Scratch the working part ...
Look in the Modules ... Order Totals ...
What happens if you click on each one and do the following:
1 Save settings to NotePad
2 REMOVE
3 INSERT
If there is no change, what happens if you switch to the Classic Template?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Changed Priority to 1
No change
Removed Modules, except for Total which wouldn't remove.
Added back Shipping, Sub-Total, Tax
No change.
Changed to 'Classic' template (site curently using it)
No change.
FYI, this was a 1.3.9e site that I was upgrading to 1.3.9h
The original site had various code changes made by someone else. Unfortunately they hadn't used the template system. I cleared out the old code. Did a new install to update the database and then added back the changes into it's own template structure bit by bit. The only core changes made that I remember that could not be templated were some 5 extra fields added to includes/modules/pages/product_info/main_template_vars.php which are picked up and displayed on the (now templated) product info page.
Changed that back to the original file. No change.
Where does it do the calculation for the Total ?
B. Rgds
John
Check the order class:
/includes/classes/order.php
Check the order total module for Total ot_total.php
/includes/modules/order_total/ot_total.php
for starters ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Well I don't pretend to be a PHP guru but I do have the system in svn and can roughly find my way round Eclipse.... I'll try and run it through the debuggerer and see if I can see anything obvious. Clearly neither of us can see quite what the problem is :-) However, there is one, so that's as good a place to start as any !
If you want admin access to the site I can PM you a login. I think I can give you svn access - let me know if you want to try and and I will look further.
Meanwhile, it's the weekend and I think it's beer o'clock :-) Will have a look if I get a chance. If not, Hasta Lunes......
And thanks once again for all your efforts. It is greatly appreciated. It's why I picked ZenCart......
B. Rgds
John
What is your setting for your admin's Configuration->My Store->Display Prices with Tax? It looks like it might be set to true ...
OK, got bored before bedtime. The calculation is done in order.php here
At this point I checked in Eclipse and the outputs were :Code:// Update the final total to include tax if not already tax-inc if (DISPLAY_PRICE_WITH_TAX == 'true') { $this->info['total'] = $this->info['subtotal'] + $this->info['shipping_cost']; } else { $this->info['total'] = $this->info['subtotal'] + $this->info['tax'] + $this->info['shipping_cost'];
$this->info['subtotal'] = 175
$this->info['tax'] = (double) 0
$this->info['shipping_cost'] = null
info Array [16]
order_status (string:1) 1
currency (string:3) GBP
currency_value (string:10) 1.00000000
payment_method null
payment_module_code null
coupon_code null
shipping_method null
shipping_module_code null
shipping_cost null
subtotal (double) 175
shipping_tax (int) 0
tax (double) 0
total (int) 0
tax_groups Array [1]
comments (string:0)
ip_address (string:29) 192.168.100.24 - 192.168.100.24
products Array [1]
0 Array [16]
qty (int) 100
name (string:17) 38mm Button Badge
model (string:6) 338253
tax (int) 0
tax_groups Array [1]
tax_description (string:9) Sales Tax
price (string:6) 1.7500
final_price (double) 1.75
onetime_charges (int) 0
weight (int) 0
products_priced_by_attribute (string:1) 0
product_is_free (string:1) 0
products_discount_type (string:1) 2
products_discount_type_from (string:1) 0
id (int) 222
rowClass (string:7) rowEven
Think the problem is earlier in the file but need some sleep now :-)
B. Rgds
John