Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping Cart Subtotal = 0.00


MLu

Recommended Posts

I have copied my entire shop to another website and made a few adjustments. Suddenly the shopping carts displays "subtotal 0.00" ?? I have made a Beyond Compare analysis which reveals that shoppingcart.php is identical among the two shops.

Anyone who has an idea on what could cause this?

 

Thanks!

 

Mogens

Link to comment
Share on other sites

***this is true for OSC 2.2 MS2***

 

i believe this is the section of code you were referring to.

 

$info_box_contents[$cur_row][] = array('align' => 'right',

'params' => 'class="productListing-data" valign="top"',

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');

 

everything is calculated with functions based in general.php

Link to comment
Share on other sites

I am using MS2, but the strange thing is that I have made no modifications to general.php. A Beyond Compare on the shop that works o.k. and the new shop shows two 100% identical files.

Link to comment
Share on other sites

I tried to restore a database from another store into my new shop, and presto it worked again! So some kind of parameter in the database must have been changed to cause this to happen. But I am blank as to what has caused this peculiar result as I can se no settings or switches that could do this?

Link to comment
Share on other sites

Someone who knows what fields / parameters in the database that could affect the shopping basket value calculation??

 

I can easily make an order, and it is priced correctly. The only problems are that the Shopping Cart shows a value of 0,00 despite of its contents and likewise with the sub-total on Product Info. As mentioned earlier this problem disappears if I restore a database from another shop into this shop, so I assume it is something corrupt / different between the databases.

 

Thanks for any help!

 

Mogens

Link to comment
Share on other sites

  • 2 months later...

I have exactly the same problem.. Copied a shop everything works except for the sub total.

Restored the database and suddenly it works again.. :(

 

Anyone who knows where to look pleas let us know

 

thanks

Link to comment
Share on other sites

  • 2 months later...

Found a solution to this problem last autumn - but sadly cannot remember it. Now I have the same phenomenon when building a new site based on an old site. No prices shown in the shopping cart totals :( Used the past three days to try finding the solution without any luck so far.

 

Hope someone can help!

 

Regards

Mogens

Link to comment
Share on other sites

Burt, I have this as my line 194 in shopping_cart.php:

<td align="right" class="main" valign="top" nowrap><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td>

Did you imply that this piece of code might be missing or have been changed?

 

Mogens

Link to comment
Share on other sites

  • 5 months later...

Made another shop and voila again the same problem, but also noticed that the weight is zero or better only the initial package weight is taken into account the weight from the ordered products is not taken into account on the shipping page.

 

Again I took a copy of a exsisting correct working shop and checked the php files, they are everywhere the same. It looks like the calculation of order totals is not correct somewhere and might be due to an error in the database but I do nor understand where or which parameter could cause this.

 

Struggling with this problem now for months. :(

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...