• Resolved Markus

    (@rbubble)


    EAA2C(Free): 2.3.0
    WooCommerce: 5.2.1
    Wordpress: 5.7.1
    Woodmart (Theme): 5.3.6

    Hi EAA2C Team,

    i’m facing the problem that WooCommerce notices are not shown after (EAA2C)”Add to cart” button was clicked. The “mini cart view” open properly, but when re-submitting the button related constraint notices (e.g. only one product allowed in the cart”) don’t appear.

    After some debugging i’ve figured out that you display the notices before a target element with the class “.content-area”.
    enhanced-ajax-add-to-cart-wc-public.js:337

    	AddToCartHandler.prototype.showNotices = function( element, target ) {
    		$( '.woocommerce-error, .woocommerce-message' ).remove();
    		var domTarget = $( '.content-area' );
    		//console.log( target );
    		//console.log( "showing notices" );
    		domTarget.before( target );
    		this.scrollToNotices();
    		// this.unblockButtons();
    	}

    I don’t know if this is theme related (Woodmart) but in my case there is no such element with this class. After adding an element with this class, the “notices” appear. I don’t think this is a best practices. I guess there was/is a different intention behind it. Whats you thoughts on this?

    Thx for you support ??

    Markus

    • This topic was modified 3 years, 7 months ago by Markus.
    • This topic was modified 3 years, 7 months ago by Markus.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having a similar issue. If there is already 1 item in the cart that is supposed to be sold individually nothing happens.

    It’s been 2 weeks I guess the plugin creator doesn’t care to answer support questions?

    Plugin Author The Rite Sites

    (@theritesites)

    Hi Markus,

    Sorry for the delay in response, we were unavailable to the project for a short time.
    This is an issue in compatibility with themes. We have found this element in the project this was originally created for, and the short list of themes this was available. This is due to it being found in the WooCommerce plugin, often used as a implementable wrapper component.

    Understandably, this could be an incompatibility with any random theme that chooses not to implement this.

    We are open to suggestions for solutions, but as an easy solution a target css selector in the settings page?

    Otherwise, temporarily, you could add an element on your page or theme through filters or otherwise (Elementor, ‘blank’ element) with the class of “content-area”

    We have considered the idea of putting notifications within the row, but haven’t quite found the right implementation to fit with the direction of the plugin.

    Be your best!
    The Rite Sites

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce “Add to cart notices” don’t appear’ is closed to new replies.