• Resolved Linda

    (@lindali2007)


    Hi,
    Is there a way to add the category class (product_cat-example) to the products in the cart? I’m looking for a way to set the price of only one specific category to display:none or just be able to leave it blank. Also, on the invoice the price of that specific category must be left empty.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can do this by overriding templates/cart/cart.php in your child theme. Alternatively (better) you can use the filter woocommerce_cart_item_subtotal and/or woocommerce_cart_item_price. See the same template file.

    For the invoice it depends on the plugin that you use to generate the invoice.

    Thread Starter Linda

    (@lindali2007)

    I found a snippet I added to my functions.php. Thanks for your reply

    Thread Starter Linda

    (@lindali2007)

    Solved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add category class to cart’ is closed to new replies.