Is there a good way to replace the "view cart" text with another text?
i have big issue i'm still stuck with, hope can me.
i need change text "view cart" in cart-summary module. have learned can javascript: http://forums.adobe.com/message/4409239#4409239
but there problems:
when use javascript:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script>
$(function () {
$(".cartsummarylink").text("afrekenen");
});
$(function () {
$(".cartlink").text("winkelwagen geleegd");
});
</script>
the "view cart" replaced "afrekenen".
but:
- when add product in large product layout text "view cart" back...
- when delete product in cart "view cart" text back
- when refres page "view cart" text replaced again "afrekenen"
so thought, use javascript refresh page when product added:
<script type="text/javascript">
function addproductextras(){
document.location.reload(true);
}
</script>
this works can see text changes "afrekenen" "view cart" , "afrekenen" page rebuild again not solution. here questions:
- is there better work around?
- if not, there way when product deleted in cart page can refreshed?
thanks,
frank
hi frank,
i suggest use css , replace view cart image. following code should help:
a.cartsummarylink {
background: url(your-image.png) 0 0 no-repeat;
width: 120px;
height: 27px;
vertical-align:middle;
display:-moz-inline-block; /* firefox */
display:-moz-inline-box; /* firefox */
display:inline-block;
text-indent: -9999px; /* hides text */
}
cheers,
-mario
More discussions in Business Catalyst
adobe
Comments
Post a Comment