• Resolved alberto.pm9

    (@albertopm9)


    Hello.

    I’m trying to solve an issue filtering by metas. I never use this field before, so my question is, how to know the metas (the keys, in fact) that I can use? Where can I find the metas used by WordPress and by other plugins?

    TIA.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Hermann LAHAMI

    (@mano88)

    Hmm yes that’s a developer feature. A good way to extract the metas is to search in the database how they are stored.

    Thread Starter alberto.pm9

    (@albertopm9)

    Hello!

    Thanks for your reply!
    I was looking in the database but it seems there aren’t metas for this plugin there…
    Hope posting in the plugin’s support page they can help me.

    Regards,

    Alberto.

    Plugin Author Hermann LAHAMI

    (@mano88)

    No you don’t need the metas for our plugin but the ones related to the products in order to use them to build your list. What were you trying to do using the metas feature?

    Thread Starter alberto.pm9

    (@albertopm9)

    Hi!

    I want only to apply a discount to the products with a stock greater than 0 and also the ones belonging to a category. So, I use the Taxonomies relationship ‘AND’, I specify the category the products are IN and the I use the Metas relationship ‘AND’ and I specify the filter: Key= _stock; operator= MORE THAN; value=0; type=NUMERIC

    But this setup doesn’t work yet for me…
    I try only setting up the Metas relationship and it seems to work, but if I combine this with the Taxonomies relationship it seems to fail.

    Any suggestion?

    Thanks!

    Thread Starter alberto.pm9

    (@albertopm9)

    Hmmm… I think I need a relationship ‘AND’ between the taxonomies relationships and the metas relationship. Is this posible?

    Thread Starter alberto.pm9

    (@albertopm9)

    Ok, maybe using the field ‘Rules’ in the discount settings, isn’t it?
    I want to show the discounted applied in the products all over the stock (not only in the cart) and that’s my wrong thinking when I saw ‘If order products’…

    Plugin Author Hermann LAHAMI

    (@mano88)

    Hehe you lost me there… What do you mean by “show the discounted applied in the products all over the stock”?

    Thread Starter alberto.pm9

    (@albertopm9)

    Sorry, my english is very poor.
    I thought “If order products” refers only to the products added to the shipping cart and the product discount was not shown in the store.

    It’s strange but it just does not work well for me… Sometimes seens to work fine an others doesn’t apply the discount in the right way…
    Does the order in which the lists and discounts are created influence the process?

    Plugin Author Hermann LAHAMI

    (@mano88)

    Maybe i can help. What kind of discount do you want to create? If it’s possible, i’ll help you do it.

    Thread Starter alberto.pm9

    (@albertopm9)

    Ok, I’ll appreciate so much your help!

    I have 2 products lists:
    – The first created only with one filter of metas: key= _stock; operator= MORE THAN; value=0; type=NUMERIC
    – The second created only with taxonomies: Category in “Sunglasses” AND not in “Outlet”

    I have a discount: I use the Rules groups relationship (AND) and in the rules field I’ve added if order products IN list1 AND if order products IN list2.
    At last, I’ve tried filling ‘Products list’ both list1 and list2.

    What I want is to apply a discount only to the products in the list2 that have a stock greater than 0.

    You can see this 3 screenshots:
    List1 (named ‘Só en tendas’): https://goo.gl/flK1MA
    List2 (named ‘Gafas con 30%’): https://goo.gl/BdVM2w
    Discount: https://goo.gl/VJli2w

    Hope you can help me.

    TIA.

    Thread Starter alberto.pm9

    (@albertopm9)

    Hi!

    Could you tell me what’s the different between adding rules in a discount with the ‘Add’ button and with the ‘Add rules group’?
    I’m trying a different approach to solve my issue because it seems not to work fine with the relationship rules…

    Regards.

    Plugin Author Hermann LAHAMI

    (@mano88)

    Hello,
    When you create a group, all rules inside MUST be verified so the group can be considered as valid. But two different groups can be linked by an AND or OR relationship. That means if you choose AND, all groups must be verifed before applying the discount. But if you choose OR, at least one group must be verified.

    Plugin Author Hermann LAHAMI

    (@mano88)

    About the stock, i managed to have mine working like this https://prntscr.com/dyr6ie

    Thread Starter alberto.pm9

    (@albertopm9)

    Hello Orion!

    Thanks for your reply!
    I’d tried as you told me but it doesn’t work always.
    It seems once you’ve created a discount if you edit it later then something fails.

    Your logic is clear for me and I understand you, but I’m not sure the plugin is working fine because each time I add some rule or taxonomy it fails again…

    By the way, I’m not sure the value of the type field must be set to ‘numeric’ because the results are different evaluating…

    Also I want to ask you if the pro version works like the non pro. Maybe using the pro version I’ll solve my issues.

    Regards

    • This reply was modified 7 years, 10 months ago by alberto.pm9.
    Thread Starter alberto.pm9

    (@albertopm9)

    Hello Orion!

    I already created the ticket.
    Thanks a lot!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Working with metas’ is closed to new replies.