Display the "old price" in the product card not from the attributes but from its description.

17.09.2020 16:10
#1
kupaladen
User kupaladen
Name: Denis Fedorov
08.06.2013
Posts: 64
Quote
Display the "old price" in the product card not from the attributes but from its "Details".

Hi!

Display the "old price" in the product card not from the attributes but from its "Details".

Please tell me how to display the "old price" in the product card not from the attributes of the product, but from its "Details"?

Display the "old price" in the product card not from the attributes but from its "Details".

What are the minimal changes to the product_default.php ?
The fact is that my product has a lot of attributes, and the same old price for everyone. But I have to enter the old price for each attribute many many times ...

Many thanks for the help!


JoomShopping: 4.18.4

Letzte Änderung: 17.09.2020 16:12
 
17.09.2020 19:06
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: Display the "old price" in the product card not from the attributes but from its description.

Need change core joomshopping
components\com_jshopping\tables\product.php

function getOldPrice(){
if (isset($this->attribute_active_data->old_price)){
return $this->attribute_active_data->old_price;
}else{
return $this->product_old_price;
}
}

change to

function getOldPrice(){

return $this->product_old_price;

}

 
19.09.2020 14:51
#3
kupaladen
User kupaladen
Name: Denis Fedorov
08.06.2013
Posts: 64
Quote
Aw: Display the "old price" in the product card not from the attributes but from its description.

Thanks, all worked well!

 


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.