widget-options icon indicating copy to clipboard operation
widget-options copied to clipboard

woocommerce main page (/shop) problems

Open androos opened this issue 7 years ago • 9 comments
trafficstars

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.

androos avatar Feb 19 '18 11:02 androos

@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

phpbits avatar Feb 19 '18 11:02 phpbits

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

androos avatar Feb 19 '18 11:02 androos

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

phpbits avatar Feb 19 '18 11:02 phpbits

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 avatar Feb 19 '18 12:02 androos

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

androos avatar Feb 19 '18 12:02 androos

@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!

phpbits avatar Feb 19 '18 12:02 phpbits

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 avatar Feb 19 '18 13:02 androos

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

androos avatar Feb 19 '18 16:02 androos

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

stebentje avatar Dec 06 '20 07:12 stebentje