Problem with widgets showing on Shop page.

eCommerce WordPress theme with various e-store features and WooCommerce support.
GK User
Wed Oct 02, 2013 2:53 pm
Hi, I can't seem to get widgets to show on my shop page. Also, i can't seem to locate where the current woo commerce widget that displays on that page is originating from. I would appreciate it if someone could show me how to display widget on this page. Thanks.

ref: http://drshawnadarou.com/shop/
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 8:04 am
Hi,

We are going to add new widget rules as Shop and Shop category in the nearest theme update. For now you can use custom post type - "product" and taxonomy "product_cat" with e.g. taxonomy term "bags" to display widget on bags product category.

If you need more rules, please install simple plugin Widget logic and choose conditional tag from woocommerce:
http://docs.woothemes.com/document/conditional-tags/
User avatar
Moderator

GK User
Thu Oct 03, 2013 1:37 pm
not sure how to enter the taxonomy argument in the widget rules area. could u be more detailed in how to enter these arguments in the widget rules. thanks.
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 2:06 pm
I tried inserting a woo-commerce "product-search" widget into my shop page using post-type "products" in widget rules but no luck. could u be more specific how i can insert widgets into my shop/products page. Thanks.

Ref: http://drshawnadarou.com/shop/
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 2:08 pm
See an attachment.
User avatar
Moderator

GK User
Thu Oct 03, 2013 2:12 pm
Actually, My Shop page is located in Pages and not Products, however it displays a woo-commerce products widget. I searched around on the widget panel but could find where that widget is coming from. Any chance you could tell me where that widget is assigned?? Thanks.
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 2:20 pm
My Shop page is a "Page" type and not Product or Post type. Page types don't have a cat argument (i don't think so anyway??). I tried using page type "slug" = shop instead but i still can't get it to show. I also tried using page type: page# as well as post# =831 but no luck either.
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 2:30 pm
Woocommerce product widget don't need widget rules, they show up automatically on woocommerce pages.

Like i said, you have to install widget logic plugin, and in your product search widget, you have to type:
Code: Select all
is_shop()
conditional tag.
User avatar
Moderator

GK User
Thu Oct 03, 2013 2:57 pm
could one use more than one argument like: is_shop(); is_product(); in the conditions box??
User avatar
Gold Boarder

GK User
Thu Oct 03, 2013 2:59 pm
yes, use "and" between. is_shop() and is_product()
User avatar
Moderator


cron