• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Adobe Business Catalyst shoping strings

Contributor ,
Feb 04, 2015 Feb 04, 2015

Copy link to clipboard

Copied

I am trying to make custum alert messages in Portuguese on a Adobe Business Catalyst website using this code from : Customizing Online Shop Alert Message Strings

and also customize the online shop layout strings like "Shoping cart is empty! continue shooping " and "1 item(s), Total: €12,00 VIEW CART" to "Carrinho de compras vazio! continuar as compras." and "1 item(s), Total:€ 12,00 VER CARRINHO DE COMPRAS"using this piece of code i found somewere on the Adobe forum too:

<script type="text/javascript">
  
var ele = GetElementsByClass('cartLink');
  
if(ele[0])  ele[0].innerHTML = 'O CARRINHO DE COMPRAS EST&Agrave; `enter code here`VAZIO!';// replace with your own message!
  
function UpdateProductExtras(c, p, res) {
  document
.getElementById('catCartDetails').innerHTML = 'O carrinho de compras est&aacute; vazio! <a href="/catalogos">VOLTAR</a>'; // replace with your own message!
  
}
  
/*
  var ele = GetElementsByClass('cartSummaryItem');
  if(ele[0]) ele[0].innerHTML = 'Carrinho de compras vazio.';// replace with your own message!
  function UpdateProductExtras(c, p, res) {
  document.getElementById('cartSummaryItem').innerHTML = 'Carrinho de compras vazio.'; // replace with your own message!
  }*/
This one works but if we click to buy something then this doesn't show: "1 item(s), Total: €12,00 VIEW CART"


  
var ele = GetElementsByClass('cartSummaryLink');
  
if(ele[0])  ele[0].innerHTML = 'Ver carrinho de compras >';// replace with your own message!
  
function UpdateProductExtras(c, p, res) {
  document
.getElementById('cartSummaryLink').innerHTML = 'Ver carrinho de compras >'; // replace with your own message!
  
}
  
</script>


The piece of code seems to work, but everytime BC fires a pop up window, like wen we add a new product to the shoping cart or wen we hit the empty shoping cart button, they go back to the original strings in English, and only when we refresh the browser or move to another catalog and continue shoping, the messages go back to Portuguese. Can anyone give me a hand on how to Fix this?

The same happens to the pop up window messages from the js file from Customizing Online Shop Alert Message Strings, they only change to Portuguese if we refresh the browser,every time we make a new action, the pop up window messages go back to english.

This is the link to the template i am working on.

TOPICS
How to

Views

300

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Feb 09, 2015 Feb 09, 2015

There is an AJAX refresh of the DIV when you click certain items, you need to rebind your javascript on the refresh of the content.

Votes

Translate

Translate
Guide ,
Feb 09, 2015 Feb 09, 2015

Copy link to clipboard

Copied

LATEST

There is an AJAX refresh of the DIV when you click certain items, you need to rebind your javascript on the refresh of the content.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines