Pop Up Add to Cart

Highlighted
Tourist
54 0 3
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
Highlighted

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
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
Highlighted

 

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
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
Highlighted
Tourist
54 0 3
Booster
0 Likes
Highlighted
New Member
2 0 0

Hi

please assist me to keep add to cart popup work again.

0 Likes