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

  • Posts: 625
  • Thank you received: 18
  • Hikashop Business
4 years 4 months ago #319711

-- 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,



Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
4 years 4 months ago #319717

Bonjour,

Les lignes de code responsable de l'affichage du pourcentage de code est :

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 :
    text-decoration: line-through;
www.hikashop.com/support/documentation/1...the-display.html#css

Bien cordialement,
Mohamed.

Last edit: 4 years 4 months ago by Mohamed Thelji.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum