Reply To: XML not working properly


Hi again,

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_empty attribute 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.

Best regards,