When you scroll to the 1st carousel, the hover says add to cart.
IF you scroll across 6 products the login button is added as desried.
If you click on product the login button appears.
IF you go to the product page works as expect>
It is only on these 6 items , almost like they loads before add to cart loads
“Product:?For individual products in your WooCommerce store, for example, you can disable the button for out-of-stock or discontinued products, or enable it only for products on sale.”
“or enable it only for products on sale.”
HOW?it doesnt provide anything related to products on sale
Hi,
Does you plugin support the condition
1. A product from can be added to cart only if at least one product from a particular category and it’s sub-categories is already in cart
2. Products from a particular category can be added only if a product from a particular category or it’s sub category is in cart
]]>I have set a condition like a way if a product is present in the cart then the add to cart button text should be changed.. Which is not working
Check this screenshot https://prnt.sc/bYvLnKgAPDQj
]]>Recently, products with Conditional Add to Cart enabled are showing a large area of white at the top of the page as opposed to normal presentation of products without the plugin.
]]>The “remove cart” functionality works perfectly on all devices EXCEPT for Iphones.
Literally disfigures the whole page for me.
Considering the number of topics that have gone unanswered, I doubt I will receive a reply, but is there any chance of making this work with variable products?
Everything works as it should until I try to use the cart contains product option in conjunction with a product that has variables.
Am leaving this in case it helps someone else. I suspect something in WP or Woo changed making the links in replacements in the “Add To Cart” button stop working.
After one of the updates 0.2.3 or 0.2.4 I was also having the issue where code is being displayed above products that meet the conditions:
'; var btn_selectors = [".add_to_cart_button[data-product_id=\"235638\"]",".single_add_to_cart_button[value=\"235638\"]","form.cart[data-product_id=\"235638\"] .single_add_to_cart_button","#product-235638 form.cart .single_add_to_cart_button",".product.post-235638 form.cart .single_add_to_cart_button","a[class*=\"product_type_\"][data-product_id=\"235638\"]",".storefront-sticky-add-to-cart__content-button",".product.post-235638 form.cart","#product-235638 form.cart","form.cart[data-product_id=\"235638\"]"]; for ( var i = 0; i < btn_selectors.length; i++ ) { var _element = document.querySelector( btn_selectors[ i ] ); if ( _element ) { // if jquery is defined if ( typeof jQuery !== 'undefined' ) { jQuery( _element ).replaceWith( html ); } else { _element.outerHTML = html; } } } document.getElementById( '__235638-css' ).remove(); } );
I realized it would only happen when I added a link in the “Replace with…” under the “If condition met” selector, so I switched it “Hide Add to Cart” and added this in functions to achieve the same:
add_filter( 'woocommerce_get_price_html', 'react2wp_woocommerce_hide_product_price', 90, 2);
function react2wp_woocommerce_hide_product_price( $price, $product ) {
if ( ( is_product_category() ) && has_term( 'YourProductCategory',
product_cat', $product->get_id() ) ) {
$price = '<p><a href="https://www.YourDomain.com.sv/YourPathYouWantToShowInsteadOfPrice">YourLink </a></p>';
return $price;
}
else {
$price = "$ ". $product->get_price();
return $price;
}
Thanks Nabil, for making this available!
]]>I have this plugin installed with the following conditions and it doesn’t work:
Cart contains product : Product 1
AND
Product : Product 2
What 1t suppose to do is whenever Product 1 is in the cart I cannot add product 2 so basically I don’t want mixed product in cart.
]]>Hi, i do like your plugin. it do work as it said. but we would like to see is it possible to have a condition setup like
if cart contain Product A (Catagory 1) can only have 1 item (itself) in cart and restrict all others to add in it.
is it possible to do that ??? like add-on function for that ?
We are willing to quote for further additional charge to make it happened
]]>Let me start by saying GREAT plugin.
Is it in any way possible to hide the add to cart button for specific products, but keep the option to select variations?
]]>First of all, thank you for making this plugin available!
For some reason when I upgrade from 0.2.2 to 0.2.4 the products that meet the condition show code above each product box.
Also, in developer tools we get this once for each of those products:
add to cart invalid or unexpected syntax
For now, I reverted back to 0.2.2 and all is back to normal.
Again, thank you Nabil, for this plugin and let me know if it might be of use to you to send more specifics about this.
]]>Upgrade 0.2.3 is not compatible with my themes
https://yuanprint.com/product/round-sticker/
Is there a possibility to realise a Cart Amount condition in the plugin?
]]>Hello Bro!
Puts it to instantly hide a DIV or SECTION from the Elementor (better if you could hide anything from the Elementor) when a product goes into the cart.
That would be very helpful!
I really need this great plugin but it stopped working as soon as I changed the theme on the website I’m using it on. The theme is called Flatsome and is very popular and easy to work with.
It just seems to ignore all messages and restrictions.
I have two product categories which can’t be mixed when buying. These are called ‘First edition books’ and ‘Ultimate editions’. When trying to add one of each the buyer should be presented with a message and stopped.
Can you please help?
]]>Is there any possible action to prevent adding to Cart if:
the Card Contains a specific Category_A, it won’t let the user add another specific category (Category_B)?
Thanks!
Hey!
I was thrilled to find this plugin… But it doesn’t work. I can’t add any conditions…
Is there any tutorial I can look up?
Thank you!
]]>Hi,
Thank you for this great plugin.
It would be great to see it possible to define a custom add to cart text based on product’s attribute or taxonomy. This way I could control it by availability and show “Pre-Order” if the product belongs to the “Future Release” of the “Availability” custom taxonomy, for example.
As a side note, would also be helpful to define a different label for in-stock and backorder products.
Best regards
]]>It would be excellent if the filter by user could be added to the plugin.
This could support us who have a martekplace with multiple sellers
Wish you could add the filter.
Thank you for your work.
]]>hi, it seems the plugin is not working with WooCommerce Subscriptions. noting changes when i try some conditions?
https://woocommerce.com/products/woocommerce-subscriptions/
Hi, thanks for this very useful plugin and if you can help, I have 1 question
Can I show add to cart on specific product when hiding all of them via Product Category?
I am hiding add to cart on all products via product category “Facebook” and I want to show add to cart only on product “Facebook page name”
Am I doing it wrong?
here’s screenshot: https://imgur.com/a/0nfdViF
]]>Howdy, just wondering if you have any intention to add this functionality to the plugin – specify a minimum value of the cart prior to shipping costs to prevent adding a product if the cart value is below the minimum.
For instance, cart value is $150 so certain products can be added to the cart. If the value is below $150, those products cannot be added.
Cheers,
Phil.
Is there a way to use this plugin to prevent a particular item (or group of items) from being added to the cart if items from another group are already in the cart? This is a situation where we want to require two separate orders for certain types of items that are unable to be shipped at the same time or in the same package.
]]>Hi,
and thank you for a fine and promising plugin!
It works well in a standard Woo install without templates, but not so if you use a template or third party plugin. (Often both is the case)
E.g. the WC Product Table plugin, that is calling this function:
woocommerce_template_loop_add_to_cart();
As a developer wrote: “The woocommerce_template_loop_add_to_cart() fn is used in a lot of places in woocommerce and by 3rd party plugins as well. So perhaps it is a good idea for [Conditional Add to Cart] to leverage the ‘woocommerce_loop_add_to_cart_link’ filter to customize button output in other woocommerce addon plugins as well, thereby gaining more widespread compatibility.”
Please see the sandbox link for a live example.
Kindest regards!
]]>Hello!
I am having a few troubles with the plugin.
Please see image: https://prnt.sc/rvtlqi for more detail ??
The problems I am facing:
1. The third category does not load for “product categories” and “cart contains product” functions. (orange box in image)
2. The plugin never stops loading. (red box in image)
I was wondering what we could do about this?
Thank you for your help in advance!