的Adobe商业催化剂街上购物串 [英] Adobe Business Catalyst shoping strings

查看:266
本文介绍了的Adobe商业催化剂街上购物串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用这个code从一个企业的Adobe网站的催化剂使葡萄牙傩俗警报消息:的自定义网店警报消息字符串

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

和还可以自定义的网上商店布局的字符串,如街上购物车是空的继续咻!和1件商品,合计:€12,00查看购物车到Carrinho德compras vazio continuar为compras!。和1件商品,合计:€12,00 VER CARRINHO DE COMPRAS使用这块codeI somewere发现在Adobe论坛太:

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>

这件作品的code似乎工作,但每次BC触发一个弹出窗口,像文我们增加了新产品的SHOPING车或文我们打空街上购物车按钮,就回到原来的在英文字符串,只有当我们刷新浏览器或移动到另一个目录并继续街上购物,邮件回葡萄牙。谁能给我一个手就如何解决这一问题?

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?

同样发生在从定制网店警报消息字符串的js文件的弹出窗口的消息,他们只更改为葡萄牙语,如果我们刷新浏览器,我们每次做一个新的动作,在弹出的窗口消息回去为英语。

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.

这是链接到我的工作模板。

推荐答案

在上面的自定义网店警报消息字符串你的第一个环节,是实现你所期待的最好的选择。

Your first link at the top "Customizing Online Shop Alert Message Strings" is the best option to achieve what you are looking for.

包含这个例子中,在你的身体标记模板的末尾:

Include this example at the end of your body tag of your template:

对我的作品!

<script type="text/javascript">
Oshoplang = { 
InvalidQuantity:    ' adicione uma quantidate.\n\nTente Novament. ',
CartEmpty:          ' O carrinho de compras esta vazio!. \n\n<br/><br/><a class="message-button" onClick="redirectOffCart();" href="#">Continue as compras</a> ',
CartUpdateSuccess:  ' Ordem atualizada.\n\nThank you. ',
InvalidShip:        ' Escolha um modo de envio.\n\nTente Novament. ',
            }
</script>

这篇关于的Adobe商业催化剂街上购物串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆