By nightmarepatrol on
I am trying to put an eCommerce site up and I am having a difficult time getting the ecommerce module to work with views. Clean URL's are enabled
Lets say I am selling jars and lids
I have two views defined in multiple
jars = product/jars/*
lids = product/lids/*
I have also products defined as follows
lid1 = product/lids/lid1
lid2 = product/lids/lid2
jar1 = product/jars/jar1
jar2 = product/jars/jar2
When I attempt to get a view of either jars or lids I get all products. I have also tried separate url views without the leading product and gotten the same results. Any ideas?
Thank You
Comments
...
("defined" via path.module, or pathauto.module, I presume; "lid1" is the node ID.)
How do you attempt to get a view of only the jars?
What distinguish jars from lids? some taxnomy? the node-type? some CCK field?
I am manually assigning the
I am manually assigning the product url in the create content > Product page as product/jars/wide or product/jars/narrow.
Then I created a view called jars that refers to product/jars (or product/jars*) and receive the entire store content.
I want to be able to show just jars or lids on a single page.
Obviously I'm doing something wrong. The answer however is escaping me,
...
(Your question has nothing to do with eCommerce.)
I see. Yes, you have some misunderstanding about URLs.
Let's say you have 3 nodes which can be accesssed using the following URL aliases:
prod/banana
prod/apple
prod/lemon
Now,
You expect to find a listing of these three nodes at the 'prod/' URL. That won't happen. There's nothing magical in the 'prod/' URL. It doesn't even exist. There isn't such listing mechanism built in Drupal.
When you build a 'view' you tell Views the criteria by which nodes are included in the listing. The fact that there are some nodes whose URL begin with the URL of the view has absolutely no meaning. So you need to provide Views some criteria, for example: "show me all nodes of type 'story'", "all nodes that are tagged with 'wood'", "all nodes that have comments", etc.
What you need to do is to find some tangible way to distinguish between your various product types. One classic way is to use taxonomy. Define a vocabulary "Product Type", fill it with "jars", "lids" and whatever terms, and then Views will have the means to slice up your products.
(BTW, the taxonomy module alone might answer all your needs.)