skip to Main Content

Ajax POST request to Shopify's /cart/add.js always returning on error callback function

$.ajax({ type: 'POST', url: '/cart/add.js', data: { quantity: 1, id: form_data }, success: function(response) { console.log('in success'); var url = $("#af-btn").attr("href"); window.location.href = $("#af-btn").attr("href"); }, error: function(response) { console.log(response + "in error"); var url = $("#af-btn").attr("href"); //window.location.href = $("#af-btn").attr("href"); },…

VIEW QUESTION

Deactivate Toggle Buttons – Twitter bootstrap

Very simple I just need a quick pointer, Bootstrap Button Group (for a 1-in-3 toggle button) defined as: <!-- Twitter Bootstrap Button Group --> <div class="btn-group"> <button type="button" class="btn btn-primary">General</button> <button type="button" class="btn btn-primary">Tab 2</button> <button type="button" class="btn btn-primary">Tab 3</button>…

VIEW QUESTION
Back To Top
Search