Cumulative discount - display current discount for customer

 

Hello, we have your module Cumulative discount. We would like to change this text in displayProductAdditionalInfo.tpl fro pruduct view {l s='To reach next discount level:' mod='cudi'} {$cudi.name} {l s='that will grant you' mod='cudi'} {$cudi.val}% {l s='discount' mod='cudi'} {l s='you have to spend' mod='cudi'} {Tools::displayPrice(($cudi.amount_left), $ps_currency_default)}
{$logged_cudi_contents nofilter}
to text for customer (example) - Your current dicount is 10%. Can you help me with the code? Thank you 



Hello,
try to use this code:
{l s='Your current discount is:' mod='cudi'}: {Group::getCurrent()->reduction}%

it should display text you expect to display on product page :) 

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment