Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Double Price Problem


Guest

Recommended Posts

For some reason when I click on an item to add to cart. When it goes to view shopping cart the price in the subtotal catagory is dubbled of what it should be. Can anyone help me with this.

 

Thanks in advance

Brad

Link to comment
Share on other sites

  • 6 months later...

Was there a solution to this problem? I am having the same trouble. BTW - this happens with all of my items, not just items with attributes. The cart page doubles the price, but at check-out the prices are correct.

Link to comment
Share on other sites

  • 2 weeks later...

I am having this same problem, and haven't been able to find a solution anywhere.

 

Exact Details: Order Sub-Total appears correct everywhere until I get to the "Order Confirmation" page, the last step. Then the Sub-Total: value is double what it should be. I've taken alook at the code in "checkout_confirmation.php", and also in the class that it calls, "order_total.php" but cannot find anything anywhere.

 

Has anyone had this problem, and found a solution?

 

My store front where I am noticing this problem:

 

http://www.enterinside.com/shopping/

 

Thanks

 

RyanPaul

Link to comment
Share on other sites

  • 1 month later...

I was able to solve this problem..

 

The problem came up when I INCORECTLY applied a mod to the store. I wish I had all my scripts in front of me, but I'm oversea's atm, so all I can suggest at the moment is to replace the "order_total.php" with a fresh one - (un-modded), and it should work correctly. Then if you have indeed aplied a mod to that script go back and do it again, - this time more carefully, and it should work.

 

Good luck

 

RyanPaul

Link to comment
Share on other sites

  • 1 month later...
I was able to solve this problem..

 

The problem came up when I INCORECTLY applied a mod to the store. I wish I had all my scripts in front of me, but I'm oversea's atm, so all I can suggest at the moment is to replace the "order_total.php" with a fresh one - (un-modded), and it should work correctly. Then if you have indeed aplied a mod to that script go back and do it again, - this time more carefully, and it should work.

 

Good luck

 

RyanPaul

 

I tried to replace the order_total.php file, to no avail.

 

I still have my subtotal double what it should be. Can anyone help with a fix or any suggestions?! I'm really in a jam.

Link to comment
Share on other sites

If you're problem is with a fresh install then I'm not sure what to suggest.

 

If you've applied mods, I would recommend reversing all mods, by uploading all the original files to your server. If you've done extensive changes, and don't want to lose all your work, isolate the problem by replacing sections at a time. This of course won't change any info that is in your database, so none of that work is lost.

 

Ryan

Link to comment
Share on other sites

  • 2 weeks later...

Verify in /includes/classes/order.php that you do not have duplicates of this segment of code

		$shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
	$this->info['subtotal'] += $shown_price;

Link to comment
Share on other sites

  • 3 months later...

It's possible that you are entering the item price into "value price" with the + operator in the "prefix" field when adding attributes for items. This will increment the price of your item by whatever amount you have entered into "value price". This field should be left blank if the item is to be sold at the price originally entered at given selected attributes. Likewise, if you plan to sell the item for less than the original price for a certain attribute selection, enter a '-' in the "prefix" field and this will decrement the total price of that item by the value price of that selected attribute. It would be a nice standard feature if someone made a contribution that automatically refreshed the display price to reflect a given value price. Maybe I will do this once I finish the store I'm working on. Hope this helps!

Link to comment
Share on other sites

  • 9 months later...
  • 4 weeks later...
Verify in /includes/classes/order.php that you do not have duplicates of this segment of code

		$shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
	$this->info['subtotal'] += $shown_price;

 

Many thanks! I had installed a discount coupon module which had a block of code that included another copy of that line, and I hadn't removed the original line. All working =)

Link to comment
Share on other sites

  • 5 months later...

The problem is in the catalog/includes/classes/shopping_cart.php

 

There are two lines 271 and 272 that calculates the price. Comment out the first one.

 

// $this->total += tep_add_tax($products_price, $products_tax) * $qty; THIS IS WRONG!! IT DOUBLES THE PRICE IN THE CART!!!

$this->total += $currencies->calculate_price($products_price, $products_tax, $qty);

 

Regards

Sara

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...