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
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes