Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Language Variables Problem Rate Topic   - - - - -

 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 30 October 2018 - 09:51 AM #1

Dear members,

 

I have changed the text from Submit to order now for one-click buy from administration>language>translation

 

Now If I am posting a review it shows order now button instead of submit and it shows Order now everywhere else where submit was being used.

 

Any solution for such a problem? I want different text for different buttons



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19846 posts

Posted 30 October 2018 - 01:29 PM #2

design/themes/THEME/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl

 

create new language variable and change default one to the custom one in the following line

    {include file="buttons/button.tpl" but_name="dispatch[call_requests.request]" but_text=__("submit") but_role="submit" but_meta="ty-btn__primary ty-btn__big cm-form-dialog-closer ty-btn"}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 25 November 2018 - 08:01 AM #3

I added new language variable submit_1clickbuy then I put it like this in the following line 

 

but_text=__("submit_1clickbuy")

 

Cleared the cache but it did not work

 

Please help

 

I am using unitheme

 

design/themes/THEME/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl

 

create new language variable and change default one to the custom one in the following line

    {include file="buttons/button.tpl" but_name="dispatch[call_requests.request]" but_text=__("submit") but_role="submit" but_meta="ty-btn__primary ty-btn__big cm-form-dialog-closer ty-btn"}


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19846 posts

Posted 26 November 2018 - 06:36 AM #4

Try to delete var/cache directory manually


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 124 posts

Posted 26 November 2018 - 09:29 AM #5

I have deleted the cache manually as well from the directory but still, it is the same here is the code with the chaanges

<div class="buttons-container">
    {include file="buttons/button.tpl" but_name="dispatch[call_requests.request]" but_text=__("submit_1clickbuy") but_role="submit" but_meta="ty-btn__primary ty-btn__big cm-form-dialog-closer ty-btn"}
</div>

please tell me what is wrong with my code? this code is found design/themes/responsive/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl

 

 

 

 

 

Try to delete var/cache directory manually



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19846 posts

Posted 26 November 2018 - 01:28 PM #6

I can assume that default template is overriden by 3rd party addon. It is required to examine the issue on your server


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.