[resolved] [Plugin: eShop] Listing Products by Category Rather Than Department Pages? (9 posts)

  1. Dan Poynor
    Posted 7 years ago #

    I'm currently using WordPress Post Categories to organize products into groups.

    Reading the eShop Help section it looks like I really should create a Department Page (for each Category) then a Page for each product (rather than a Post for each product).

    Is that correct?

    Either way, when displaying a list of products, is it possible to have an Add To Cart button next to each product so users don't have to go to the individual product page first?

  2. esmi
    Forum Moderator
    Posted 7 years ago #

    Is that correct?

    Yes - although you can use posts instead of pages in the newer versions of eShop.

    is it possible to have an Add To Cart button next to each product

    Yes. Check out the shortcodes section in Admin/eShop/Help - especially with regard to using the 'form' attribute (which displays a shortened "Add to cart" form).

  3. madcowz
    Posted 7 years ago #

    As esmi says, the form='yes' is the bit you are after

    I use:

    [eshop_list_new class='hilite' panels='yes' form='yes']

  4. Dan Poynor
    Posted 7 years ago #

    Sorry if this is a lame question - but can I put a shortcode in a template? I have a category.php file that's iterating through the products to display.

    If I have to paste the shortcode into each individual post it could take a while to manually update 160 products.

    Also I think pasting a shortcode into each post would change the individual product pages.


  5. elfin

    Posted 7 years ago #

    there is a function do_shortcode that I think will do what you want.

    most of the display shortcodes were used with pages in mind, so some don't work as well with posts. Check the settings page as well though, as there is a setting on there to enable the forms on some listing pages.

  6. eeyakc
    Posted 7 years ago #

    I am sorry if this sounds like a dumb question..

    but what exactly are department pages? i've been trying to put products into individual pages without any department pages and that seems to be fine.

    is department page the parent page of an individual product page?

    let me know if i have misunderstood something.


  7. elfin

    Posted 7 years ago #

    you posted in resolved thread - better to start new ones in future.

    A department page is just a parent page of a group of product pages.
    -Department A
    --product 1
    --product 2
    -Department B
    --Product 3
    --Product 4

  8. eeyakc
    Posted 7 years ago #

    then what shortcodes are u supposed to put on a department page as oppose to the online shop homepage?


  9. elfin

    Posted 7 years ago #

    You need to check he help page within the plugin and choose what is best for you from the available shortcodes.

Topic Closed

This topic has been closed to new replies.

About this Topic