Hello,
A product with variations uses:
p class=”stock in-stock in_stock_color woo-custom-stock-status”>
to show the stock status text like: ‘Delivery time: within 10 weeks’ behind the price of that variation. And this is correct.
At the bottom of a product page, it shows the “Related Products” section.
It uses:
p class=”stock available-on-backorder available_on_backorder_color woo-custom-stock-status”>
to show the stock status text and it shows text like: ‘Available via backorder’.
This is not correct.
How can I let the “Related Products” use the p class=”stock in-stock in_stock_color woo-custom-stock-status”> code to show the correct stock status text like: ‘Delivery time: within 10 weeks’.
It does show the correct text for simple products… just not for variable products…
See: https://ibb.co/JRnBTtm for details
Can you help me with this please?