Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addItem(variant_id) {
- var Id = parseInt(variant_id);
- // debugger;
- // console.log($('#'+form_id).serialize())
- $.ajax({
- type: 'POST',
- url: '/cart/add.js',
- dataType: 'json',
- data: {id:Id,qty:1},
- success: function() {
- window.location.href = '/cart';
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement