• Resolved tswidler

    (@tswidler)


    Product Category A can only be purchase by it own is setup like this:

    Contains Category Equal To category-A
    and
    Contains Category Not Equal To category-A

    I don’t think any rules involving a category is working in the latest release.
    I tried a couple even simpler then above

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Just tested the condition, it works as intended for me. Using the conditions as you describe would be conflicting, you’re telling the system the cart must and must not contain the given category (-not equal- operator here means when the cart does not contain the product)

    Cheers,
    Jeroen

    Thread Starter tswidler

    (@tswidler)

    Hi Jeroen,

    Thank you for your email.

    I guess there is no solution if you want the following case:

    If the cart has a product from category A do not allow any products from any other category.
    Note customers can still add more products from category A.

    In short I want to keep one of my product categories restricted to be only be purchased by themselves.

    Any idea?

    Thanks,
    Thomas

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Thomas,

    I believe you should be able to do this by setting conditions like;

    = Contains – A
    – Contains – B

    OR group

    = Contains – A
    – Contains – C
    Validation: Cannot order other categories with A

    Cheers,
    Jeroen

    Thread Starter tswidler

    (@tswidler)

    I am embarrassed to say that I as a software engineer am not able to understand what the logic = Contains – A – Contains – B supposed to mean.

    But if you mean that I should make a condition for all my many categories in conjunction with Category A as OR cases I was trying to avoid that.

    I was now writing some function code which checks if Category A is in cart and if there are more than 1 category count in it. Then I setup my own warning message. I have not figured out yet so why it works when I added category A first and not if you add Category A as second product. I am giving my coding brain a break.

    Of course I was hoping to use your tool.

    Thank you for your help,
    Thomas

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Thomas,

    Yes, or alternatively use shipping classes if you can group them together like that.

    Or as you already mention, creating a customization or a custom condition can also check if its the only category.

    Not sure what you mean with the last bit?

    Cheers,
    Jeroen

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I don’t think any rules involving a category is working in the latest release.’ is closed to new replies.