nicolas wrote: I thought that the issue was with the lang parameter not the name of the button.
For the name of the button, you can use such code:
<?php echo JText::_('EMPTY_CART'); ?>
And then add a translation override :
EMPTY_CART="Empty cart"
www.hikashop.com/download/languages.html#modify
Ok, but where can I write the piece of code you mentioned?
Maybe I can write like this:
<?php echo JText::_('EMPTY_CART'); ?>
<?php $lang = JFactory::getLanguage(); $locale=strtolower(substr($lang->get('tag'),0,2)); echo hikashop::completeLink('product&task=cleancart&return_url='. urlencode(base64_encode('index.php?lang='.$locale))); ?>