samedi 5 mars 2016

Woocommerce - Display only products with a certain custom field in the cart

I am trying to only display items in the cart that have a certain custom attribute. But I can not find an action hook that would allow me to only show the items in the cart that have this property. For example if I add 4 items into my cart but only 2 of the items have this property, then when I visit the cart page I would want to only see the total for the 2 items with the property.

Also I know I can not allow them to add to cart if it doesn't have that certain custom attribute but I can not take that approach. They must be able to add all items to their cart.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire