Okay
  Public Ticket #2863329
otification after add cartbutton with ajax
Closed

Comments

  • Dimitris started the conversation

    Hello,

    Could you please tell me, how can i display the message of 
    "A product has been added to cart."

    after pressing the add to cart button with ajax functionality?

    THe example i want is in this link https://hn.arrowpress.net/lusion/product/apollo-sardine-in-chillivegetable-2/

    (Press add to cart button and then you see the notification.)

    As i see in my template i cannot find the 

    <div id="cart_added_msg_popup" style="margin-left: -135px; display: none;"><div id="cart_added_msg">A product has been added to cart.</div></div>

    when i add the above code in inspector it works.

    Is there exist an option in settings that i have to open  it or i have to add it in files and if yes in which file?

    Thank you


    8153436560.png
  •  605
    WordPress replied

    Hello,

    Thanks for your purchase.

    You can go to WooCommerce -> Settings -> Products -> Turn off option Redirect to the cart page after successful addition

    8325718952.png


  • Dimitris replied

    Hello, 

    The checkbox is not checked. My problem  is that although  i have ajax functionality  i could not display the success message of

    "A product has been added to cart." 

    as the screenshot that i attached in first mail

    Could you help me ?
    THank you

  •  605
    WordPress replied

    Hello,

    How much are you using the theme version?

    Can you provide an account admin so I can check that problem for you?