Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. Improve this question In Woocommerce I would like to show 3 thumbnails on single product the gallery image slider and also to get
Tag: product
Change product stock availability texts in Woocommerce
I am trying to change the in stock text next to the quantity available in woocommerce. I am using the stock management in product variations. I tried this code below: The code above changes the text but it does not pull in the stock quantity number from the variation stock manager. Any help is appreciated. Answer The following code will
Woocomerce Remove a specific cart items when adding to cart another specific items
Provided solution here Remove a specific cart item when adding to cart a specific product in Woocommerce works perfect for one product id. Is any way to do this for multiple id’s? Answer Update 2 : The following code will work for multiple product IDs: Code goes in function.php file of your active child theme (or active theme). Tested and
Remove “Choose an option” from variable product dropdowns in Woocommerce 3
I would like to remove from the dropdown of variations in WooCommerce product page following “option”: I found plenty of, apparently not working codes which should do the job. Probably outdated to the latest WooCommerce version. What I tried and is partially working: This is only working when I set some text between ”, not empty. When it’s added into
Use custom meta data in a WC_Product_Query on Woocommerce 3
I used to use the standard wordpress WP_Query to fetch woocommerce products based on meta data. My products are tracks and have many meta columns (like genre, instrument, mood, etc). Using WP_Query I can create a meta_query based on user input from a form, that searches for products that meet the meta requirements. All of this works great. Now I
Change product variation prices via a hook in WooCommerce 3.3
I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: …
Check if WooCommerce product (simple or variations) are in stock and display label as shortcode
I would like to have a shortcode that I can add to a WooCommerce product page. The shortcode would simply check the product stock and say “In stock” if it has any. And then “Out of stock” if the product (or any of the variations) don’t have inventory. This shortcode should work for both Simple products and Variable products. With
Change “Read More” button link on Out of stock Woocommerce products
Is it possible to change the Read More button of a out of stock product to redirect to a specific page/url or popup message instead of going to the single product view. Whenever I have an out of …
Set back to product category in Woocommerce Product Page
I want to set a back button on my product page (to the product category). I cant manage to get the category and echo on the page. I have tried to use this code and it doesn’t work… The first problem I have whit this code is what I have no option to set the parent category for the product.
Add a custom field value below product title in WooCommerce archives pages
In WooCommerce I would like to add custom text to my products display, that will be grabbed from a custom field in product’s edit page. This is how it looks now: You can see the products with their title below: I would like to add a text below every product, marked with blue pen: I have managed to find some