Broadcast theme

New Member
1 0 0

Im trying to find out if I can send people straight to the cart once they "add an item to cart".

 

Anyone have any suggestions?

0 Likes

Hello 

Search below code in Online Store-> Themes -> Edit code->Sections->product-template.liquid

<button type="submit" name="add" class="btn add-js product__submit__add" data-add-to-cart="">
          <span data-add-to-cart-text="">
            
              Add to Cart
            
          </span>
      </button>

Replace above code with this code

<a href="/cart" >
<button type="submit" name="add" class="btn add-js product__submit__add" data-add-to-cart="">
          <span data-add-to-cart-text="">
            
              Add to Cart
            
          </span>
      </button>
</a>
Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
New Member
2 0 0

We have the same problem and also want the customer to get directly to the cart page when clicking add to cart instead of just showing the popup. The solution above sounds great, but unfortunately, there is no such template or code (maybe an update). Could you help me finding it in the current version?

 

0 Likes