Pop Up Add to Cart

Highlighted
Tourist
39 0 1
How do I add a pop up add to cart notification once someone clicks add to cart on my product page? My site is eliteofferingsnow.com What section of code do I use and what code am I adding/deleting?

Thank you.
0 Likes

Hello @EONX5 

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
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes

 

You have to use cart API to add product and on response, do any action. here is the example:

function addItem(form_id) {
  $.ajax({
    type: 'POST',
    url: '/cart/add.js',
    dataType: 'json',
    data: $('#'+form_id).serialize(),
    success: Shopify.onSuccess,
    error: Shopify.onError
  });}

 This whole example can be found in your default theme->scripts.js.liquid file. 

 

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
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes
Tourist
39 0 1
Booster
0 Likes