Shortcode not working

  • This topic has 6 replies, 3 voices, and was last updated 1 year ago by Pablo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #109306
    blankStefan Cizmar
    Participant

    Hello,

    Can i set a max qty message for a specific product? From what i saw in the shortcode part it should be something like this for the product of ID 89 [alg_wc_oma_amount_msg min_or_max=”max” sum_or_qty=”qty” scope=”product” product_id=”89″]product specific message[/alg_wc_oma_amount_msg] but it is not working.

    #109581
    blankMoshtafizur
    Moderator
    Plugin Support

    Hi Stefan,

    Sorry for the late reply.

    I have escalated this with our development team. They will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    #109681
    blankPablo
    Moderator
    Plugin Support

    Hi Stefan,

    Please, try replacing the sum_or_qty attribute with type and let me know if it helps.

    #110213
    blankStefan Cizmar
    Participant

    Hi,

    I’ve tried with this shortcode: [alg_wc_oma_amount_msg min_or_max=”max” type=”qty” scope=”product” product_id=”89″]Call us on 0800 123456[/alg_wc_oma_amount_msg]

    It works if there is only that product in the cart, if there are multiple products that have limits the text shows for all products that have limits.

    #110377
    blankPablo
    Moderator
    Plugin Support

    Hi Stefan,

    The product_id attribute needs the scope attribute set as product, product_cat, or product_tag. I can see you are already using it as product. But do you have that section enabled properly on plugin settings?

    Anyway, if the product with that id is in cart, the message from the shortcode should be displayed, regardless if there are more products in cart or not.

    #110438
    blankStefan Cizmar
    Participant

    Hi,

    I’ve enabled the messages under the messages tab in plugin settings if that is what you mean by “enabled properly” or should i do some other changes in the settings?

    It does display if there are multiple products, that is not the problem, problem is that if there are 2-3-4 products it shows 2-3-4 times the same message whereas it should show only once (for product with id of 89). I hope i’ve managed to explain well.

    Thanks

    #110511
    blankPablo
    Moderator
    Plugin Support

    I was referring to the “product” section on the plugin’s settings. Do you have it enabled?

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.