mondeduvelo Posted May 19, 2013 Share Posted May 19, 2013 Bonsoir, Je suis en train de finaliser ma boutique sur PS1.5.4 et j'ai un petit soucis avec le programme de parrainage et la panier. En effet lors du résumé du panier j'ai cette phrase : Vous avez gagné un bon de réduction d'une valeur de grâce à votre parrain ! Saisissez le nom du bon Récompense parrainage pour profiter de la réduction sur cette commande. qui m'indique que j'ai un bon de x€ avec le code x mais rien ne s'affiche voici le code source du fichier shopping-cart.tpl du répertoire referralprogram\views\template\\hook <!-- MODULE ReferralProgram --> <p id="referralprogram"> {l s='You have earned a voucher worth %s thanks to your sponsor!' sprintf=$discount_display mod='referralprogram'} {l s='Enter voucher name %s to receive the reduction on this order.' sprintf=$discount->name mod='referralprogram'} </p> <br /> <!-- END : MODULE ReferralProgram --> Savez vous comment corriger ce soucis ? Merci d'avance Link to comment Share on other sites More sharing options...
Saryus Posted June 18, 2013 Share Posted June 18, 2013 Hi!, did you repair this issue. I have the same problem. Thanks!! Link to comment Share on other sites More sharing options...
mondeduvelo Posted June 19, 2013 Author Share Posted June 19, 2013 non désolé, problème non résolu Link to comment Share on other sites More sharing options...
Mandylion Posted May 7, 2014 Share Posted May 7, 2014 Le problème vient du module Referralprogram dans le fichier referralprogram.php A prioris c'est la ligne 422 qui pose problème : $this->smarty->assign(array('discount_display' => ReferralProgram::displayDiscount($cartRule->reduction_percent ? $cartRule->reduction_percent : $cartRule->reduction_amount, $cartRule->reduction_percent ? 1 : 2, new Currency($params['cookie']->id_currency)), 'discount' => $cartRule)); J'ai remplacé cette ligne par : if (isset($cartRule->reduction_percent) && $cartRule->reduction_percent != 0) { $reduc_montant=$cartRule->reduction_percent; $reduc_type=1; } else { $reduc_montant=$cartRule->reduction_amount; $reduc_type=2; } $discount_display = ReferralProgram::displayDiscount($cartRule->reduction_amount, 2, new Currency($params['cookie']->id_currency)); $this->smarty->assign('discount_display', $discount_display); $this->smarty->assign('discount', $cartRule); Link to comment Share on other sites More sharing options...
Marina M Posted August 4, 2015 Share Posted August 4, 2015 Cette solution a functionée pour la valeur, mas il manque le nom du voucher, le code... Enter voucher name %s to receive the reduction on this order You have earned a voucher worth R$ 3,00 thanks to your friend! Enter voucher name Referral reward to receive the reduction on this order. View your referral program. Est ce que vous avez résolu ça aussi? Merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now