• Resolved mxwaygamer

    (@mxwaygamer)


    Hello,

    I post you this message to suggest you a new filter.
    Currently, I use your plugin to display option for product with specific variation value. But for that, I have to enter all variation ID on the “Products to include”. Due to my website use multi-language, I have to add a lot of products in this list.

    Is it possible to add filter on the file “class-yith-wapo-front.php” line 308 with passing the $block value to allow developper to force display under custom condition ?
    With it, we could be more flexible than just restrict by variation ID or Category ID.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well! ??
    are you using the last version of the plugin?

    Could you please, share with us a screenshot of the piece of code where you want to apply the hook?

    We will study the case and let you know ??

    Have a nice day!

    Thread Starter mxwaygamer

    (@mxwaygamer)

    Hello,

    Yes, I’m under the 2.8.0 version of the plugin.

    To wait after your update, I added by myself the hook :
    https://i.ibb.co/s1YJQ0K/Screenshot-1.png

    With it, I can change the value of $included_product_check and turn it to TRUE in my plug-in :
    https://i.ibb.co/7tqwsJp/Screenshot-2.png

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    We have added the following filter in the same position you have in the screenshot:
    $included_product_check = apply_filters( 'yith_wapo_included_products_check' , $included_product_check, $block );

    It will be included in the next plugin version.

    The first parameter is the boolean value.
    The second parameter is the block to use.

    We hope it helps you.

    Have a nice day!

    Thread Starter mxwaygamer

    (@mxwaygamer)

    Thanks you very much !

    I will update my hook to keep the link even if I update the plugin when the new version will be available.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    you’re welcome.
    We remain at your disposal, don’t hesitate contact us whenever you need.
    If you are happy with our product and our support, please leave a review here, it would be much appreciated ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New filter to force display’ is closed to new replies.