The following is posted for the benefit of all. If you have questions, or if interested in my website services, please create a free user account so you can contact me through my web form (sorry, for spam purposes, I do not allow my contact form to be used unless you are an authenticated user on this site).
Best regards,
Tom Isabelle
Categorizing Products In Ubercart
Once you have created products through Ubercart for your Drupal site, you may want to sort the products into groups or categories.
Here's what to do . . .
First, install and enable the following Drupal modules:
- Ubercart - core (optional) Catalog
- Drupal - core (optional) Taxonomy
These two modules work together to create a "taxonomy system", which is the category system, for the products in your on-line store. The taxonomy terms you create are the category terms for your products.
Then, follow these eight steps for Creating the catalog and populating it with products copied from the Ubercart site. Thanks to David Newkerk's fine suggestion he gave me, I discovered a way add categories to multiple products at once, instead of one-by-one. Just skip steps 5 - 8 and scroll down to the alternate steps 5A - 6A.
1. Browse to Administer › Content management > Taxonomy.
2. Optional. If you want to add a description to the top of the catalog page, first click the edit vocabulary operations link and put your message in the description field and submit the form.
3. Click the add terms operations link for the Catalog vocabulary. It's possible to specify alternate vocabularies as the catalog vocabulary, but this is the name of the vocabulary in the default state.
4. Start adding terms for the categories you need in your catalog with the form that pops up. To create nested categories, select a parent term when you're creating a new category. Image support also works and will display resized category images when browsing the catalog if you have the Image Cache module installed. Using the description field you can add text to appear at the top of this page when browsing the catalog.
5. Browse to a product node and click its Edit tab.
6. Scroll down below the product description and you will see a select box with your catalog vocabulary terms in it. Select the catalog category term or term (if you want to list the product in multiple categories) to list this product in.
7. Browse to the catalog (by default, http://www.example.com/catalog) and see your products listed!
8. Tweak the settings to your liking at Administer > Administer store > Configuration > Catalog settings. Read more about the settings here.
For adding categories to multiple products at once:
5A. Install and enable the "Views Bulk Operations" contributed module.
6A. Go to http:// YOURSITE .com/admin/build/views/list. Edit the "admin_content" view. Under "Basic Settings" change the "Style" to "Bulk Operations" and click to save your settings. Now go to http:// YOURSITE .com/admin/content/node2. Under "Node: Type" select "Product" and then click "Apply" to only view your "Product" nodes. Select the "Product" nodes you want to update and under "-Choose and operation-", select "Modify node taxonomy terms" and click "Execute". You can then update the terms in the way you wish.
Continue with above step 7 - 8 to complete.
