Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.25 KB | None | 0 0
  1. <script>
  2. var textAdded;
  3.  
  4. Ecwid.OnPageLoaded.add(function(page) {
  5.     if (page.type == 'PRODUCT' && textAdded != 1) {
  6.         $('.ecwid-AddToBagButton').append('<span>Add to bag</span>');
  7.         textAdded = 1;
  8.     }
  9.     else {
  10.         textAdded = 0;
  11.     }
  12. });
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement