Skip to main content

Changer l'ordre d'affichage prix régulier, escompte et prix escompté

More
6 years 4 months ago #319711 by patoushka
-- url of the page with the problem -- : www.leseditionsshakespeare.com/fr/compon...ente-facil-ebook-gpi

Bonjour,

je cherche à faire afficher le % de rabais au milieu des deux prix. J'ai beau chercher dans le code product / listing-price.php mais, je ne trouve pas.

J'aimerais aussi que le prix régulier soit barré.

pourriez-vous m'aider ?

Merci,



Please Log in or Create an account to join the conversation.

More
6 years 4 months ago - 6 years 4 months ago #319717 by Mohamed Thelji
Bonjour,

Les lignes de code responsable de l'affichage du pourcentage de code est :
Code:
if(in_array($this->params->get('show_discount'), array(1, 4))) { echo '<span class="hikashop_product_discount">'.JText::_('PRICE_DISCOUNT_START'); if(bccomp($this->row->discount->discount_flat_amount, 0, 5) !== 0) { echo $this->currencyHelper->format( -1 * $this->row->discount->discount_flat_amount, $price->price_currency_id); } elseif(bccomp($this->row->discount->discount_percent_amount, 0, 5) !== 0) { echo -1*$this->row->discount->discount_percent_amount.'%'; } echo JText::_('PRICE_DISCOUNT_END').'</span>'; }

Il vous suffira donc de bouger ces lignes de code.



J'aimerais aussi que le prix régulier soit barré.

Utiliser ce genre de code CSS fera l'affaire :
Code:
text-decoration: line-through;
www.hikashop.com/support/documentation/1...the-display.html#css

Bien cordialement,
Mohamed.
Last edit: 6 years 4 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum