Post by liamteystee » Thu Aug 11, 2011 10:33 pm

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

New member

Posts

Joined
Thu Aug 11, 2011 11:27 am

Post by terraGirl » Fri Aug 12, 2011 1:09 am

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

UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.


User avatar
New member

Posts

Joined
Fri Aug 12, 2011 12:26 am

Post by terraGirl » Fri Aug 12, 2011 1:12 am

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

UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.


User avatar
New member

Posts

Joined
Fri Aug 12, 2011 12:26 am

Post by liamteystee » Mon Aug 15, 2011 3:11 am

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!

New member

Posts

Joined
Thu Aug 11, 2011 11:27 am

Post by liamteystee » Mon Aug 15, 2011 3:15 am

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

New member

Posts

Joined
Thu Aug 11, 2011 11:27 am

Post by terraGirl » Mon Aug 15, 2011 5:05 pm

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.

UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.


User avatar
New member

Posts

Joined
Fri Aug 12, 2011 12:26 am

Post by Rabbitdigital » Tue Aug 23, 2011 7:38 pm

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

User avatar
New member

Posts

Joined
Sun Jul 03, 2011 7:10 pm

Post by uksitebuilder » Tue Aug 23, 2011 10:12 pm

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.

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Rabbitdigital » Wed Aug 24, 2011 12:15 am

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.
Hi Simon,

Thanks for the reply and yes will upgrade asap!

Cheers
Warren

User avatar
New member

Posts

Joined
Sun Jul 03, 2011 7:10 pm

Post by Daniel » Sun Aug 28, 2011 12:33 pm

special prices are not auto added. its just redundant data.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by NTCommerce » Thu Sep 08, 2011 8:44 pm

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

New member

Posts

Joined
Tue Jun 14, 2011 7:51 pm
Who is online

Users browsing this forum: No registered users and 6 guests