I have been working on a getting a site up and running with the eComerce module and am hitting a bit of a wall in terms of best practice.

Lets say I have three types of shippable products - Nuts, bolts and washers.

I would like to provide three menu items to view pages of products by their product type.

What is considered to be the best practice to do this with the eCommerce module? I haven't really found anything straight forward yet. Either that or I am not using the views module correctly.

Any insight would be much appreciated.

Comments

Rowanw’s picture

If you haven't already created a vocabulary with the appropriate terms, do that first.

Example vocabulary:
Product (vocab name)
- Nuts (term)
- Bolts
- Washers

Of course, make sure you place each product in the respective category.

Then you will need to display these categories in a menu, the best way to do this is by using a 'context menu' from the Taxonomy Context module (disable the features that you don't need).

When it's configured you need to go to the blocks page and find the block called 'Context for Product' and configure it as you see fit.

nightmarepatrol’s picture

That does function as advertised (thank you as that will come in hand for another site) What I was looking for was a way to get the same rendering i would get as if I were looking at the generic product listing with the images, description, add to cart like etc.

I initially started by cloning the product content type and then tried adding the products by content type under the cloned types. Then I tried to get the views module to display things like I wanted but had no success. I don't know if this is a shortcoming of the eCommerce module or not.

The most likely cause is my lack of understanding of what I'm doing with the modules.

So anyhow, is there a way to accomplish this?

Rowanw’s picture

What do you mean by "generic product listing"? It's not very clear what you're trying to do.

nightmarepatrol’s picture

I'll describe this as bes as I can. When a shippable product is added the body is created with TinyMCE so that formatted text can be added along with an image of the product. What I am trying to accomplish is to have three menu items for nuts, bolts and washers that will display all of the formatted bodies for each of the products. Currently the only way I can get this to display like this is under the "/?q=product" node.

I have tried to clone the product type so that when you go to to the cloned product node "/?q=nuts" all the product types matching nuts are displayed. However this displays all of the product types. I should be able to filter these by type and still be able to retain all the displayed content in the node.

Using the taxonomy worked, but it left me with teasers only.

I hope that clears things up. I have never used the eCommerce module before and the "lightbulb" evidently hasn't gone on yet. :/