• Resolved 2Beards Design

    (@2beards)


    Hi!
    Is thare any way to exclude products with attribute value? Let say I have attribute status. It has few numeric values to choose. I’d like to add “exclude products with status = 4 value” to shortcode…

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please use search logic – https://c2n.me/4gT1CrB.png

    macdante

    (@macdante)

    in this case we i and my friend @2beards want set in shortcode condition.

    EXamole we have in system attribute with status
    VAUUE_A: 10 products
    VALUE_B: 5 products
    VALUE_C: 3 prodcuts
    VALUE….
    VALUE_xxxxx: (many values)

    now we want put shortcode on one page sit default condition: pa_status = VALUE_A
    But on another page we want shortcode with default condition: all values WITHOUT VALUE_B

    We don’t want manually add included values.

    And question is: is possible add excluded own attribute value from filter like this?

    • This reply was modified 2 years ago by macdante.
    • This reply was modified 2 years ago by macdante.
    • This reply was modified 2 years ago by macdante.
    macdante

    (@macdante)

    And is possibility change number type of value in shortcode on slug or name ?
    example:
    [woof sid=”auto_shortcode” autohide=0 taxonomies=product_cat:647]

    Cat name is : “home”
    And when someone delete this cat and add it again then number changed and shortcode don’t work, and we must manualy change id of cat in shortcode. (category tree is build dynamicly)

    Plugin Support mediawebster

    (@mediawebster)

    Hello @macdante

    In this case, you need code customization

    You can use hook – https://products-filter.com/hook/woof_sort_terms_before_out

    And is possibility change number type of value in shortcode on slug or name ? – Unfortunately no!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude attribute value’ is closed to new replies.