Decrease woocommerce cart count if specific product is in cart - php

does anyone know a possibility/function to decrease the woocommerce cart count, if a specific product is added? The product itself is just a configurator for add-ons and doesn't need to be count.
Hope anyone can help.

Related

Woocommerce fixed cart discount code. Discount appear as a reduction on the product and not on the cart

Hope your doing well today!
Well I'm facing something and I don't know if it's editable or if I can do something about it.
Basically on a WordPress site with some product and reduction code with the Woocommerce core.
They (the client who mandate the site) always use the fix reduction on the cart but in the order tab of woocommerce when we check an order the discount appea on the product(s) for exemple if I have 3 product in my cart and a fix discount: 50.
Everything is fine for the customer they have the reduction but in the backoffice if I check the order page and the recap the reduction apply on the cart and not split between product as show on the image.
Basicely what they asking me is how to apply only in the order/invoice/etc the reduction on the cart and not displying it to the product(s)
I hope i'm clear with my question if u need more information don't hesitate.
Thx everyone !

Product prices with custom decimals for a product category in WooCommerce cart and checkout too

I have tried "Custom decimals in WooCommerce product prices for a product category" answer code that works well on product pages, but not in cart and checkout pages.
Does anybody have an idea on how to display prices with custom decimals in cart and checkout pages too for a specific product category?
Any track is appreciated.

Link quantity to product variations in Woocommerce

I would like to link the product variation to the quantity on woocommerce in WordPress 4.9.8, and I installed Quantities and Units for WooCommerce plugin.
This plugin just let me set the minimum and maximum quantities but it's not attached to the product variations. In the image bellow you can see the quantity that doesn't change with the product variation:
Is there any way to do that?
I was searching and I found that the people said that I can do that in php but I have a poor knowledge .
Any help on this please.

Prestashop: add product with my custom price to cart

in prestashop (1.6.1.5) on product detail page I have my custom price for the current product.
Now when I click on "add to cart" the standard product is added to the cart with standard price. I will add the product with my custom price to cart .
Could anyone give me some needable ideas in the right direction please...
Thank you very much

Magento displays price of configurable product instead of simple product

With an import script I created configurable products in Magento. The price of the configurable product is displayed on the frontend, which is not what I want of course. I want to show the price of the selected simple product.
On the product detail page, when I change the configurable attribute, the price is not updated. The price of the configurable products is always visible. Also, when I add the product to the cart, the configurable product price is displayed.
When I add each simple product of a configurable product to the cart, it still displays the configurable product price. I can see that there are different products in the cart, so the problem is not that it is always putting the same simple product in the cart.
How can I fix this? Where do I start looking?
I don't know what caused this, because another company made this webshop.
Thanks in advance!

Categories