A few translation Apps don’t properly support Sticky Cart Pro, so the text on the bar appears inaccurate. This is easily fixed using custom translation code for these Apps, you’ll just need to add a small snippet.
Steps:
- In the app configuration go to the Advanced Tab.
- Copy and paste the following code snippet in the ‘Custom Javascript code‘ box, replacing en: {…} with any language-specific changes you would like:
var languages = { en: { buy_button_text: 'Buy Now', buy_button_unavailable_text: 'Unavailable', } } var lang = document.querySelector('html').getAttribute('lang'); var override = languages[lang]; if(override.buy_button_text){ instance.configuration.buy_button_text = override.buy_button_text; } if(override.buy_button_unavailable_text){ instance.configuration.buy_button_unavailable_text = override.buy_button_unavailable_text; }