Shopify Theme: Simple

Widget Update: We are very excited to have recently upgraded our subscription widget to v3. However, this may not work for your store. If you're having difficulty following this guide, please contact us with details.

The Simple theme is surprisingly not that simple.

When you click Add to cart this theme has an animation and then opens a modal cart with the product details. This will break if you add a subscription item to the cart.

To solve this go to  jquery.theme.js.liquid and look to line 261. You will have to add into the ELSE statement in success of this new line:

window.location.href = "/cart";

This function is in charge to add a new item from Form into the cart. The final function should look like this:

Shopify.addItemFromForm = function(form, callback) {
      var params = {
        type: 'POST',
        url: '/cart/add.js',
        data: $(form).serialize(),
        dataType: 'json',
        success: function(line_item) { 
          if ((typeof callback) === 'function') {
            callback(line_item, form);
          else {            
   			window.location.href = "/cart";
            Shopify.onItemAdded(line_item, form);
        error: function(XMLHttpRequest, textStatus) {
          Shopify.onError(XMLHttpRequest, textStatus);

Still stuck? How can we help? Still stuck? How can we help?