How to translate Cart text in VirtueMart in module

kostianev
78 Posts
kostianev posted this 26 September 2017

Dear I need to translate Cart text, when I add product into the cart module.
Which tag to use, I can't find this.

Dear I need to translate Cart text, when I add product into the cart module. Which tag to use, I can't find this.
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 26 September 2017

Hi,

What exactly text are you referring to? Could you please provide a screenshot?

Thank you,
Olivia

Hi, What exactly text are you referring to? Could you please provide a screenshot? Thank you, Olivia
kostianev
78 Posts
kostianev posted this 26 September 2017

Dear, refer to the CART text. See the screenshot.

Dear, refer to the CART text. See the screenshot.
Support Team
Support Team posted this 26 September 2017

Hi,

I'll ask our developers about this issue. In the meantime please try the following solution:

  1. open joomla\templates\untitled\includes\cartlink\default_cartlink_.php file (as I understand you're using Cart Link control).
  2. find the line:
    <?php echo sprintf(jText::_('Cart (%s)'), $data->totalProduct) ?>
  3. change it to the following line:
    <?php echo sprintf(jText::_('COM_VIRTUEMART_CART_TITLE') . '(%s)', $data->totalProduct) ?>

This should help if you have proper VM translation files.

Thank you,
Olivia

Hi, I'll ask our developers about this issue. In the meantime please try the following solution: 1. open `joomla\templates\untitled\includes\cartlink\default_cartlink_.php` file (as I understand you're using Cart Link control). 2. find the line: `<?php echo sprintf(jText::_('Cart (%s)'), $data->totalProduct) ?>` 3. change it to the following line: `<?php echo sprintf(jText::_('COM_VIRTUEMART_CART_TITLE') . '(%s)', $data->totalProduct) ?>` This should help if you have proper VM translation files. Thank you, Olivia
kostianev
78 Posts
kostianev posted this 26 September 2017

Thank you, this work for me.

Thank you, this work for me.
Support Team
Support Team posted this 26 September 2017

Hi,

You're welcome.
Please let us know if you need our further assistance.
Note that if you make changes to this control in Themler it will override this file and your custom changes.

Thank you,
Olivia

Hi, You're welcome. Please let us know if you need our further assistance. Note that if you make changes to this control in Themler it will override this file and your custom changes. Thank you, Olivia
You must log in or register to leave comments