WidgetOptions / widget-options

Additional Widget options for better widget control. Available on
https://widget-options.com/
GNU General Public License v3.0
35 stars 16 forks source link

woocommerce main page (/shop) problems #34

Open androos opened 6 years ago

androos commented 6 years ago

On the woocommerce main page /shop the visibility doesn't work right. some widget are visible but set to invisible other are set to invisible but visible. On other paths it works.

phpbits commented 6 years ago

@androos Thank you very much for choosing Widget Options! Regarding your concern, have you tried using is_shop() on display logic option. Let me know how it goes. Thanks!

Cheers, Jeffrey

androos commented 6 years ago

Is there also an "is_not..." option ?

phpbits commented 6 years ago

@androos you can use !is_shop(). Let me know how it goes. Thanks!

androos commented 6 years ago

I don't know, but some thing is wrong here. I have a product search widget and a standard search widget. Standard search should be invisible on /shop Product search should be only visible on /shop Standard search was setup with Hide/Show = "Show on check pages" and in Post types "Shop" selected Product search was setup with Hide/Show = "Hide on checked pages" and in Post types "Shop" selected Result: Product search is visible on /shop and not visible on other pages, standard search never visible.

Then I have added is_shop() respectively !is_shop() Result: Product search is shown on every page.

androos commented 6 years ago

Correction, after using is_shop() respectively !is_shop(), product search is visible on shop and not visible on other pages, standard search never visible.

phpbits commented 6 years ago

@androos on product search add is_shop() then on the standard search widget add !is_shop(). You may need to clear your cache also. Let me know how it goes. Thanks!

androos commented 6 years ago

Yes !is_shop() is for the standard search, because it shouldn't be shown, and is_shop() is set on the product search widget, which should be shown. Cache is cleared, forced reload used. Behavior is as described, have tested it back an forth.

androos commented 6 years ago

I have similar problems with all other Widget Visibility plugins. Everything works as expected, except when the main shop page comes in to play.

stebentje commented 3 years ago

I have the same issue.

I managed that my widget is only shown in my shop area. I have following selected:

Post types: ‘Shop’ ‘Cart’ ‘Whishlist’

Custom Post Types: ‘Products’

This is working perfectly, only on my main shopping page the widget is not showing. Does anybody knows this issue?

PS: is_shop() on display logic option is not working