Remove first ‘In Stock’ message
Q: I am going to use variable products and I would like to have only one ‘In Stock’ message on the screen – the one for each product variation. Is there a way to remove the first one (annotated with arrow) so I don’t have both glaring as ‘In Stock’ or one saying ‘In Stock’ while the other says ‘Out of Stock’?
A: Add below snippet to your themes functions.php. It removes the existing code and adds your own in its place which is identical apart from there is no “In Stock / Out of Stock” message at the top.
remove_action( 'jigoshop_template_single_summary', 'jigoshop_template_single_add_to_cart', 30, 2 );
add_action( 'jigoshop_template_single_summary', 'mytheme_template_single_add_to_cart', 30, 2 );
function mytheme_template_single_add_to_cart( $post, $_product ) {
-
Getting Started
-
Jigoshop Settings
-
Creating Products
-
Using Jigoshop
-
Customize Jigoshop
-
Testings – in case of problems on Jigoshop web site
-
FAQ – Jigoshop plugin user questions
- Add a new tab to a product page / Custom tabs on product pages?
- Adding a Continue Shopping button to the single product page
- Adding Product Category Terms in a dropdown box for Custom Post Meta
- Add Alternate text on product picture and title
- Adding buttons / info to the end of each product
- View all (171 more)
-
FAQ – Jigoshop extensions user questions
-
API
-
Screencasts