GTIN/EAN shortcode and displaying stock quantity

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #105606
    Gabriel
    Guest

    Hi, I have some problems:

    I’m using this shortcode to add GTIN/EAN to feed:

    [alg_product_terms taxonomy=”_wpm_gtin_code”] but it doesn´t do nothing.

    I have checked that the GTIN was correctly added to product in inventory section at all.

    Also, would like to show “0” quantity if stock is “0 units” but it doesn´t show nothing.

    Could you help me please?

    • This topic was modified 1 year, 2 months ago by Omar Dabbas.
    #105607
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Gabriel,

    1. For GTIN please try using [alg_product_meta] shortcode, e.g.:

    [alg_product_meta name="_wpm_gtin_code"]

    2. To show zero instead of an empty string in any shortcode, please try adding on_empty attribute, e.g.:

    [alg_product_stock_quantity on_empty="0"]
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.