Jump to content

Supreme-Comparison orderform: not able to translate {$product.pricing.minprice.cycleText}


michael24

Recommended Posts

Hi,

 

in the new 2 Orderforms Supreme-comparison and universal slider there is a smarty var called:

 

{$product.pricing.minprice.cycleText}

 

It is the product price in styled html with tags like "/yr" or "/mo" depending on the payment term.

 

There seems to be no possibility to translate this (except changing the template and using smarty replace as discussed here)

 

Regards

 

Michael

Link to comment
Share on other sites

  • WHMCS Developer

Hi Michael,

 

These vars can be translated using the following language strings in the appropriate language file:

 

$_LANG['shoppingCartProductPerMonth'] = "<span>:price</span>/:countmo";

$_LANG['shoppingCartProductPerYear'] = "<span>:price</span>/:countyr";

 

:price will be replaced by the actual price, :count will be replaced by number of months or years in the billing cycle (or be empty for /yr option with annual billing cycle), and the rest will remain as is. If you wanted it to say /XY instead of /mo, the proper line would read:

 

$_LANG['shoppingCartProductPerMonth'] = "<span>:price</span>/:countXY";

 

I hope this helps - let us know if you have any further questions or comments.

 

Best regards,

Arty

Edited by WHMCS Arty
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated