Skip to content
Advertisement

Add a specific word next to quantity input field for specific products on WooCommerce cart page

I have two products – ‘counseling‘ and ‘testing‘, and I want to display a specific word (‘sessions‘ and ‘testings‘) next to (or under) the quantity input field for each of them on the shopping cart page, but I can’t find a hook for this. How this can be achieved?

Right now I display a generic word (‘items‘) for both products, but this is not what I want.

JavaScript

enter image description here

Advertisement

Answer

You are using the wrong hook. For the cart page you can use:

JavaScript

To apply this only to certain products, use

JavaScript

OR

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement