Jump to content

Afficher la remise d'un groupe client avec prix d'origine barré [1.6]


Recommended Posts

Bonjour,

Tout est dans le titre, je voudrais afficher la remise d'un groupe client avec prix d'origine barré.

J'ai suivi le tuto https://www.lije-creative.com/prestashop-afficher-remise-groupe-clients/

Cependant je n'ai pas le prix d'origine barré.

J'ai donc fait une petite modification en créant une var me calculant le prix d'origine du produit (1 fois en TTC et 1 fois en HT).

<!-- debut : afficher la remise accordée à un groupe de clients -->
											{if $group_reduction > 0}
												<div class='Prix' style='padding-bottom: 15px;font-size: 13px;text-decoration: line-through;display: inline-block;font-family: "Open Sans",sans-serif;line-height: 23px;'>
												<!-- Afficher TTC -->
												{assign var="PrixInitTTC" value=({$productPriceInclVat}/(1-{$group_reduction}))}
												<span id='PrixInitTTC'><span class='price'>{$PrixInitTTC}</span><span><strong> {l s='tax incl.'}</strong></span>
												<!-- Afficher HT -->
												{assign var="PrixInitHT" value={$productPriceExclVat|floatval}/(1-{$group_reduction})}
												<span id='PrixInitHT'><span class='price'>{$PrixInitHT}</span><span><strong> {l s='tax excl.'}</strong></span>
												</div>
												
												<p align="center" style="background-color: rgba(251, 232, 210, 0.8); width: 100%; padding: 5px; border: 1px solid #A9592D;">
												  Votre statut vous permet de bénéficier de <strong style="font-size: 130%">{$group_reduction*100}%</strong> de réduction !
												</p>
											{/if}
<!-- fin : afficher la remise accordée à un groupe de clients -->

 

Cependant le problème que j'ai actuellement c'est qu'il ne prend pas en compte l'impact sur le prix de ma déclinaison (le prix reste fixe).

J'aimerai alors transformer:

{assign var="PrixInitTTC" value=({$productPriceInclVat}/(1-{$group_reduction}))}

en

{assign var="PrixInitTTC" value=({$productPriceInclVat}+{$Impact_declinaison})/(1-{$group_reduction})}

 

Y a t'il une var me permettant d'avoir l'impact sur le prix de ma déclinaison ?

Ou sinon y a t'il moyen de récupérer le prix afficher et de le mettre dans mon assign ?

 

Merci par avance !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...