Please refer to TemplateMonster Support for any issues surrounding TemplateMonster/TemplateTuning Themes – thanks, Jigoshop Team

How to display product categories instead of just all products

JK_6x6's Avatar

JK_6x6

01 Jul, 2011 04:19 PM

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!

  1. Support Staff 2 Posted by Jigoshop on 01 Jul, 2011 06:03 PM

    Jigoshop's Avatar

    I'm afraid this is not built into Jigoshop at present so will require a bit of custom programming.

  2. 3 Posted by JK_6x6 on 04 Jul, 2011 04:12 PM

    JK_6x6's Avatar

    OK thanks. Maybe move this topic to feature requests?

  3. Support Staff 4 Posted by Jigoshop on 04 Jul, 2011 05:03 PM

    Jigoshop's Avatar

    Good idea ;p

  4. 5 Posted by JK_6x6 on 19 Jul, 2011 12:55 AM

    JK_6x6's Avatar

    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.

  5. 6 Posted by Nancy on 26 Dec, 2011 10:51 PM

    Nancy's Avatar

    would love to see how you did this! :)

  6. Support Staff 7 Posted by ivica on 26 Dec, 2011 11:02 PM

    ivica's Avatar

    Using Jigoshop shortcode for categories, check tutorials on the homepage...

  7. 8 Posted by JK_6x6 on 26 Dec, 2011 11:14 PM

    JK_6x6's Avatar

    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!

  8. 9 Posted by Nancy Roberts on 27 Dec, 2011 04:34 AM

    Nancy Roberts's Avatar

    Thank you so much!

  9. 10 Posted by Ishita on 10 May, 2012 11:43 AM

    Ishita's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.