- Support forum for the Product XML Feeds for WooCommerce.
July 29, 2017 at 6:46 pm #105518firuzGuestJuly 29, 2017 at 7:31 pm #105519
Will check that first thing tomorrow morning.
TomJuly 30, 2017 at 10:50 am #105520
I’ve just tested on my server and I’m not sure I can reproduce the issue. I’ve tried some different configurations, and basically the result of
[alg_product_stock_availability]shortcode depends on what you set in product’s edit page “Inventory” tab. “Out of stock” is shown always as it should be, and “In stock” depends on “Enable stock management at product level” and “Stock quantity” options. As far as I figured out – depending on those settings sometimes shortcode outputs empty string if product is in stock (but for example no “Stock quantity” is set). So as a solution, I’m thinking about adding
on_emptyattribute to the shortcode, so you could use it something like:
[alg_product_stock_availability on_empty="In stock"]
Please let me know what you think.
TomJuly 30, 2017 at 12:04 pm #105521firuzGuestJuly 30, 2017 at 3:13 pm #105522
I meant “Inventory” tab on each product’s edit page.
I’ve just sent you an email.
TomJuly 31, 2017 at 7:39 pm #105523
on_emptyattribute was added to all shortcodes in plugin v1.2.1.
- You must be logged in to reply to this topic.