Home › Forums › WoodMart support forum › How to show 0 stock status on variable products › Reply To: How to show 0 stock status on variable products
Rene
Dear Luke,
No problem, many thanks for your reply.
Question 3 has been solved. Many many thanks!
About 1:
I have enabled the option as requested, and used all woocom status tools, purged all chaches, but no result.
Could you please check again?
About 2, i have unfortunatety no example of how it was working as i already deleted the theme.
I think Woodmart is better allready;)
It basicly worked this this: It targets only the woo_cust_stock_quantity_text which is by default a translatable text field, and there to be customized.
On this way, core function are not affected such as the . $stock. fuction ect. It is pretty easy to overrwrite it, and when the standard “on stock” text is smartly rewrapped, it can be used for anything.
The PHP snippet in the previous extra information consist of multiple If terms that each targets a Tag ID to give the same standard Woo com .$stock but with different woo_cust_stock_quantity_text for each tag. So basicly it’s only 5 lines of PHP code to target 1 tag, and 2 additional lines for each more tag.
In WooCommerce Custom taxonomies like product categories or product tags are not managed by Product Variations, but by their parent Variable Product.
Could you please help me with this? Perhaps you could provide this function as a future addition to all your customers to have great stock texts with accurate custom lead/delivery times per product per tag.
Many thanks in advance,
Br. Rene