• Resolved sebastianfuglsang

    (@sebastianfuglsang)


    Hi.
    When adding a product to the cart on mobile devices the customer receives this small popup in the top of the display saying (Product name has been added to the cart (View Cart Button)).
    For some reason this only happens the first time you visit the site after clearing cache.

    How do I remove this entire popup since I don’t need it because I have a plugin that automatically shows the cart when adding a product.

    I can send picture if example is needed.

    Best Regards
    Sebastian Fuglsang
    // Nhordic

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @sebastianfuglsang,

    I visited your site and added a product to cart but did not come across the said pop-up.

    Thus, just to check, are you still facing the issue? If yes, you’ll want to find out the origins of the pop-up. You’ll want to do a conflict test for this, not because you have a conflict but rather to narrow down to the tool that is adding the pop-up.

    * Once you identify the cause, you can directly reach out to the relevant developer for further assistance with removing it.

    Let us know how it goes, we’ll be happy to assist further.
    Thanks.

    Thread Starter sebastianfuglsang

    (@sebastianfuglsang)

    I am still facing the issue, but I don’t know why but it’s not happening everytime.. the problem tend to happen when clearing cache on mobile device.

    But if you have an email I can send you an image of the issue.

    Best Regards
    Sebastian
    // Nhordic

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @sebastianfuglsang,

    Looking at your site today for us the only element I see when adding a product to the cart on my iPhone is a slide-out cart feature provided by your WordPress theme.

    Image Link: https://cloudup.com/cexe261WuEZ

    I’m not seeing any type of popup at the top of the page with the product name and a button to view the cart. On a default installation of WooCommerce, there is also no popup like you describe. Instead, there is a simple banner message displayed letting a customer know that a product has been added to their cart.

    Image Link: https://cloudup.com/cOXFpZF5HLJ

    If it’s this default added to cart message you’re referring to you could remove that using the code filter from this blog post.

    https://njengah.com/woocommerce-remove-has-been-added-to-your-cart-message/

    Thread Starter sebastianfuglsang

    (@sebastianfuglsang)

    It’s exactly that green banner that i’m referring to! (:
    – Can you send me the code I need to add to my site because I can’t copy it from the site you linked.

    Best regards
    Sebastian

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    Sure:

    add_filter( 'wc_add_to_cart_message_html', '__return_false' );

    Kind regards,

    Thread Starter sebastianfuglsang

    (@sebastianfuglsang)

    Sadly the code doesn’t work.
    When adding it to Extra CSS in the theme section most of the text is red and when checking the site I still encounter the issue with the banner.

    Best regards
    Sebastian

    Mirko P.

    (@rainfallnixfig)

    Hey Sebastian!

    Just to clarify: where did you add the above code snippet provided by @conschneider? If you’re adding it to the Additional CSS section under Appearance > Customize it will not work as that is not a CSS code.

    That PHP code snippet can be added using a plugin like Code Snippets by Code Snippets Pro. This plugin allows adding custom PHP code into your site without directly accessing the functions.php file. Here is a link on how to use the Code Snippets plugin:

    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

    Hope this helps!

    Thread Starter sebastianfuglsang

    (@sebastianfuglsang)

    Ah okay! I’ve inserted the CSS now through the plugin and it seems to work perfectly now.
    Thanks for the help everyone. (:

    Have a nice day.

    Best Regards
    Sebastian
    // Nhordic

    Mirko P.

    (@rainfallnixfig)

    Awesome! Thanks for letting us know it’s now working.

    I will close this thread but if you have more questions please feel free to open a new thread.

    Have a good day.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘View cart popup’ is closed to new replies.