Guest User

Pre-set qty

a guest
Feb 18th, 2015
187
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  2. <script>
  3. if (typeof(Ecwid) == 'object') {
  4. Ecwid.OnPageLoaded.add(function(page) {
  5. var pids = [3432333, 3432332, 4543212];
  6. if ('PRODUCT' == page.type)
  7. for(var i=0; i<pids.length; i++) {
  8. if (pids[i]==page.productId)
  9. {
  10. $('input.ecwid-productBrowser-details-qtyTextField').val('5');
  11. }
  12. }
  13. });
  14. }
  15. </script>
RAW Paste Data