Chains of shoping Adobe Business Catalyst

I'm doing of alert messages custum in Portuguese on a Web of Adobe Business Catalyst site using this code in: customization Online Shop Alert Message channels

and also to customize channels as online store layout "basket basket is empty! continue the shooping "and" 1 article (s), Total: €12,00 VIEW BASKET ' to 'shopping vazio Carrinho! " continue as shopping. "and ' 1 article (s), Total: €12,00 WORM CARRINHO DE SHOPPING" by using this piece of code I've 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 every time BC triggered a window pop up, like wen, we add a new product to the basket basket or wen we hit the button of the basket basket empty, they will return to channels of origin in English, and only when refresh us the browser or move to another catalog and continue shopping messages back in Portuguese. Can someone give me a hand on how to solve this problem?

The same thing happens to pop - up window messages in the file js customization online shop Alert Message strings, they change only Portuguese if refresh us the browser, every time that we make a new action, the pop-up messages back to English.

Here is the link to the model that I'm trying.

There is a refreshment AJAX of the DIV when you click certain items, you need to link your javascript on the updating of the content.

Tags: Business Catalyst

Similar Questions

Maybe you are looking for