I'm having problems with a site that I'm building.
http://65.60.39.10/~susiesw1/
The prices that are correct are being displayed as discounted prices (with the red line through them). The prices that are being shown are £90.00. This is weird because I have checked the products and there are no discounts and the default currency are set to 1.00000.
Please help me on this as this site urgently needs to be completed and this is the only restraint.
All replys are appreciated.
liamteystee
http://65.60.39.10/~susiesw1/
The prices that are correct are being displayed as discounted prices (with the red line through them). The prices that are being shown are £90.00. This is weird because I have checked the products and there are no discounts and the default currency are set to 1.00000.
Please help me on this as this site urgently needs to be completed and this is the only restraint.
All replys are appreciated.
liamteystee
As all products show the same price, it looks like the variable $special got stuck.
The default template code is:
<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
Did you make any changes to $special? Or create a 2nd variable with the same name that over-rides the OpenCart one? Or make any changes to the product template that use a wrong variable?
Sorry to be so vague, bit tricky without actual code.
Edith
The default template code is:
<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
Did you make any changes to $special? Or create a 2nd variable with the same name that over-rides the OpenCart one? Or make any changes to the product template that use a wrong variable?
Sorry to be so vague, bit tricky without actual code.
Edith
UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.
Sorry meant to add- the fact that the specials price shows is simply as the template checks if the variable $special exists - if it does, then it shows the normal price in strike through & the special price next to it. So for some reason, your shopping script thinks the variable $special is set to "90".
So all depends on the variable $special. Maybe doing a search for the variable in your scripts will show up anything fishy. A simple text editor like Notepad++ allows "search in (multiple) files".
Edith
So all depends on the variable $special. Maybe doing a search for the variable in your scripts will show up anything fishy. A simple text editor like Notepad++ allows "search in (multiple) files".
Edith
UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.
Thanks TerraGirl
I haven't changed anything in that area. I will have a look now to see if the $special variable hasn't been messed with.
Which pages code would I have to show you?
Thanks a lot!
I haven't changed anything in that area. I will have a look now to see if the $special variable hasn't been messed with.
Which pages code would I have to show you?
Thanks a lot!
Most of my opencart isn't on my harddrive. If I haven't edited the file would it be a bug within the software.
What advice would you give to resolve this problem?
Re-installation?
liamteystee
What advice would you give to resolve this problem?
Re-installation?
liamteystee
To check if the problem is with the theme, try switching back to the default theme. If your shop shows correct prices with default theme, then you can narrow down your investigation to the theme files.
The default OpenCart doesn't have this error, so re-installing a blank version would solve it, but if you re-apply changes (and theme), you may simply re-import the error.
The default OpenCart doesn't have this error, so re-installing a blank version would solve it, but if you re-apply changes (and theme), you may simply re-import the error.
UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.
Hi there,
I'm having the same problem, each time I add a new product, save it and then go back into it opencart automatically ads a new price of £90.00 regardless.
I can 'Remove' the Speacial in the Special tab in the product but its obviously not working properly!
Anyone got any ideas?
Cheers
Warren
I'm having the same problem, each time I add a new product, save it and then go back into it opencart automatically ads a new price of £90.00 regardless.
I can 'Remove' the Speacial in the Special tab in the product but its obviously not working properly!
Anyone got any ideas?
Cheers
Warren
If you are on version 1.5.1 you need to upgrade to 1.5.1.1 I believe this problem is to do with a special price being auto added.
Hi Simon,uksitebuilder wrote:If you are on version 1.5.1 you need to upgrade to 1.5.1.1 I believe this problem is to do with a special price being auto added.
Thanks for the reply and yes will upgrade asap!
Cheers
Warren
I have a similar issue on an Oc 1.5.0.5 installation.
When activated it is showing the special price twice with the first lined out.
I've looked through the template code and it appears to be fine, I've checked the database and everything is correct there so am assumming there is an issue with the price variable accessing the specials table when pulling the price but can't see where this is happening
Anyhelp would be greatly appreciated
Nigel
When activated it is showing the special price twice with the first lined out.
I've looked through the template code and it appears to be fine, I've checked the database and everything is correct there so am assumming there is an issue with the price variable accessing the specials table when pulling the price but can't see where this is happening
Anyhelp would be greatly appreciated
Nigel
Who is online
Users browsing this forum: No registered users and 23 guests