Attributes with and without old price

01.07.2013 14:11
#1
volo
Joomshopping forum user no avatar
Name: Volo Gabor
30.05.2013
Сообщения: 5
Quote
Attributes with and without old price

Dear developers,

I'm trying to set attributes of a product. Some of attributes has old price, but some hasn't. If I add old price for the first attribute, every other attribute will show the same old price at the frontend. If you choose an other attrib which has no old price defined, the old price of the first item is still there. If I add old price for every attributes, it's working fine. If I do not add old price (or it adds automatically 0.00) for one of them, it should be disappear!
Please help how can I solve it....

thanks a lot,
Volo

 
01.07.2013 15:31
#2
volo
Joomshopping forum user no avatar
Name: Volo Gabor
30.05.2013
Сообщения: 5
Quote
Aw: Attributes with and without old price

I find a solution. I've Modified the functions.js file from line 1285

from:

if (json.oldprice){
jQuery("#old_price").html(json.oldprice);
}

to:

if (json.oldprice){
jQuery("#old_price").html(json.oldprice);
}else{
jQuery("#old_price").html("");
}

Only you have to start the attributes property list with a version which has an old price.


Последнее изменение: 01.07.2013 15:31
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.