Which code prints “X in stock” text for variablr product
-
Hi. I want to manipulate the single product page block showing “in stock / out of stock/ X in stock” text. For simple product “in stock” block is called by follwoing code – https://github.com/woocommerce/woocommerce/blob/4.1.0/templates/single-product/add-to-cart/simple.php#L26
But when the product is variable the text can’t be shown via PHP, so I assume it is displayed via JS. I tried searching “stock” in WooCommerce JS, particularly in https://github.com/woocommerce/woocommerce/blob/4.1.0/assets/js/frontend/add-to-cart-variation.js but have found nothing related.
I will be gratefull if someone sheds some light on where it is.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Which code prints “X in stock” text for variablr product’ is closed to new replies.