Page 1 of 1
Special Price Bug when adding to cart
Posted: Mon Jan 10, 2011 11:38 pm
by developer
Hello. I have some products with special prices. let's say original price is 5.00$ and special price is 3.50$. i can see those prices but when i add the product to the cart, it gives me 5.00$ price. how can i fix that error? thanks.
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 3:43 am
by i2Paq
Always mention version of your OpenCart!
Always include a link if you are having a store front issue!
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 5:00 am
by developer
Sorry about that. I am using 1.4.8 version.
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 6:16 am
by i2Paq
developer wrote:Sorry about that. I am using 1.4.8 version.
Always include a link if you are having a store front issue!
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 7:14 am
by developer
My store isn't open and doesnt have a link to share. It's closed for public access. That's why I didn't share it. Do you have any idea to fix special price calculation?
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 7:42 pm
by i2Paq
Do you sue a custom template?
Re: Special Price Bug when adding to cart
Posted: Tue Jan 11, 2011 9:14 pm
by Xsecrets
the problem is that no one has ever reported a bug anything like that.
Re: Special Price Bug when adding to cart
Posted: Wed Jan 12, 2011 7:56 pm
by developer
no, i'm not using custom template. i can see the special price but when i add the product to the cart, it gives me the normal price, not the special one.
Re: Special Price Bug when adding to cart
Posted: Thu Jan 13, 2011 1:20 am
by afwollis
so post the code from your cart-template
and the code from cart-module (catalog/controller/module/cart.php) file
we'll see if there something going wrong
Re: Special Price Bug when adding to cart
Posted: Sat Jan 15, 2011 6:16 pm
by developer
i checked the cart.php code with the original one nothing changed. it must be somewhere else but where?
Re: Special Price Bug when adding to cart
Posted: Sat Jan 15, 2011 6:32 pm
by afwollis
I'm running newest versions, so couldn't tell right now what can cause this problem.
But I will download oc_1.4.8 and take a look on that file ( catalog/controller/module/cart.php ) for additional information.
UPD:
I'm sorry, forgot about " index.php?route=checkout/cart "
Are you getting the same problem in both - module and plain cart ?
Provide an URL of page, where you get that problem.
I will help you to get it solved

Re: Special Price Bug when adding to cart
Posted: Sun Jan 16, 2011 6:44 am
by developer
Yes afwollis. I get the error in the URL you wrote. What's the fix?
Re: Special Price Bug when adding to cart
Posted: Thu Feb 03, 2011 1:14 am
by developer
I couldn't fix the problem. How can I fix it without replacing files? I added some codes to the files.
Re: Special Price Bug when adding to cart
Posted: Fri Feb 04, 2011 5:27 pm
by afwollis
modified
we need to see the code to tell you what the problem.
I cant tell you right now which part of code you should provide.
Re: Special Price Bug when adding to cart
Posted: Fri Feb 04, 2011 6:16 pm
by Lao
Maybe special price is set for a different customer group. Have you checked this in Admin?
Re: Special Price Bug when adding to cart
Posted: Tue Feb 08, 2011 7:16 am
by developer
yes. i checked that too. which code do you need to see afwollis?
Re: Special Price Bug when adding to cart
Posted: Tue Feb 08, 2011 8:07 am
by developer
Aha I fixed the problem guys! Problem was with system/library/cart.php file. I checked the code and saw some extra lines. I deleted them and now it works.
Re: Special Price Bug when adding to cart
Posted: Tue Feb 08, 2011 2:59 pm
by i2Paq
developer wrote:Aha I fixed the problem guys! Problem was with system/library/cart.php file. I checked the code and saw some extra lines. I deleted them and now it works.
How did they get there?
Re: Special Price Bug when adding to cart
Posted: Mon Feb 28, 2011 9:21 pm
by developer
I think previous webmaster put some codes in there. Took a while but finally fixed it.