Home Forums Basel support forum Remove "PRODUCT WAS SUCCESSFULLY ADDED TO YOUR CART"

Remove "PRODUCT WAS SUCCESSFULLY ADDED TO YOUR CART"

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1394

    mykha
    Participant

    Hi,

    how can I remove “PRODUCT WAS SUCCESSFULLY ADDED TO YOUR CART.” pop-up?

    Thank you in advance.

    #1415

    Artem Temos
    Keymaster

    Hello @mykha,

    Currently there is no an option to disable this feature in the theme. Thank you for your question, we will include this feature in our next theme release (probably in 2-3 weeks). Do you need this ASAP? We can try to disable it on your web-site if you will provide your FTP access.

    Kind Regards,
    XTemos

    #1442

    mykha
    Participant

    I would appreciate If you could give me a hint on how to do this.

    Some sliding status bar instead of pop-up would be great to have in updated theme.

    Thank you in advance.

    #1454

    Artem Temos
    Keymaster

    You can find the code for this popup in js/functions.js file. Remove the following lines

                        var html = [
                            '<div class="added-to-cart">',
                                '<p>' + basel_settings.added_to_cart + '</p>',
                                '<a href="#" class="btn btn-style-link close-popup">' + basel_settings.continue_shopping + '</a>',
                                '<a href="' + basel_settings.cart_url + '" class="btn btn-color-primary view-cart">' + basel_settings.view_cart + '</a>',
                            '</div>',
                        ].join("");
    
                        $.magnificPopup.open({
                            items: {
                                src: '<div class="white-popup add-to-cart-popup popup-added_to_cart">' + html + '</div>',
                                type: 'inline'
                            }
                        });
    
                        $('.white-popup').on('click', '.close-popup', function(e) {
                            e.preventDefault();
                            $.magnificPopup.close();
                        });

    But take into account that our theme has minified versions of the script and you need to disable this option in Theme Settings -> Performance to see the result.

    #1458

    mykha
    Participant

    Got it, thanks a lot!

    #1489

    Artem Temos
    Keymaster

    You are welcome!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Remove "PRODUCT WAS SUCCESSFULLY ADDED TO YOUR CART"’ is closed to new replies.