How to display product categories instead of just all products
I'd like to have my store's main base page show categories links
or thumbnails that when clicked on, take you to another page with
the products within that category. So when someone clicks on the
store link to go to the designated base page used for it, I want
customers to see product categories to choose from like any other
e-commerce store would have. For example: "Fabric" as a category
thumbnail and link then fabric related products under it when
clicked.
I realize there is a category widget for the sidebar, but that
doesn't fit my need enough. I don't see an option anywhere to do
this nor could I find it in your reference. Is there an option for
this? I'm quite comfortable with modifying the template files and
php, and will hack it myself if need be, but if you have a
temporary solution that I'm not aware of to save me some time,
please let me know.
Great work with this plugin by the way!
Support Staff 2 Posted by Jigoshop on 01 Jul, 2011 06:03 PM
I'm afraid this is not built into Jigoshop at present so will require a bit of custom programming.
3 Posted by JK_6x6 on 04 Jul, 2011 04:12 PM
OK thanks. Maybe move this topic to feature requests?
Support Staff 4 Posted by Jigoshop on 04 Jul, 2011 05:03 PM
Good idea ;p
5 Posted by JK_6x6 on 19 Jul, 2011 12:55 AM
Just to follow up, I've implemented this category thumbnail feature into my store and it's working well in 0.9.8.0. Didn't take too much work or hacking either. I'll shoot you a link once the site is live.
6 Posted by Nancy on 26 Dec, 2011 10:51 PM
would love to see how you did this! :)
Support Staff 7 Posted by ivica on 26 Dec, 2011 11:02 PM
Using Jigoshop shortcode for categories, check tutorials on the homepage...
8 Posted by JK_6x6 on 26 Dec, 2011 11:14 PM
You can see it here: nikkiinstitches.com. It's been a while but here's what I did:
First, get this plugin: http://wordpress.org/extend/plugins/taxonomy-images/. After adding this plugin, enable the Product Categories taxonomy group in this plugin's settings. Once its enabled you have a nice interface to associate images to categories. Lastly, I changed “wp-content/plugins/jigoshop/templates/archive-product.php” to actually show these images, with the corresponding categories. The images size being used is whatever the medium image size in the Wordpress configuration is set to.
Attached are all the files I changed and added, including the plugin.
A Couple Notes:
- To remove all products from being displayed comment out the corresponding lines in “wp-content/plugins/jigoshop/templates/archive-product.php” I made a code in the note where this is at. - Use css to style it up.
Hope this helps!
9 Posted by Nancy Roberts on 27 Dec, 2011 04:34 AM
Thank you so much!
10 Posted by Ishita on 10 May, 2012 11:43 AM
Thanks for the great code.
The code works fine but i am not able to display the image.
Could you please provide us the code for displaying the Image in the category for a specific page.