| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
changing language labels from global to specific | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() HI X-cart Team,
How do you add a new label to an existing label without it taking affect globally? I want to change the label of the "Buy more for less" button to "See volume pricing" but only on specific product pages. So simply changing the label of the button won't work because it will globally change the name of the button and I want the change to be specific. is it possible to create a new label and have it overwrite the current label namespace through the language labels in the admin? any insight and help would be appreciated thanks
__________________
x-cart business 5.2.14 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() If a label is used in multiple places, editing the label will change the wording on all these pages.
You should look through the source code and change the PHP classes and Twig templates that display the label to make them display a new one. Luckily, in most cases it is a template file, so you can use the Webmaster mode to locate the template file and tweak its code. If it is in a PHP script, you will have to create a custom module and "decorate" that PHP class from your module.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|