8 replies [Last post]
Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Was this information Helpful?

Noticed that in admin/stores/settings/catalog/edit there is only one product class that can be listed as a Catalog Vocabulary in the Catalog Top Level.

The need is to have two catalogs listed in the left sidebar menu. One catalog would be displayed on the home page. The other available by selecting a menu listing for displaing the catalog content. Both would be in a grid. See PNG for example showing a home page catalog.

The second product class (Men's Jewelry) would be accessible through the menu. Women's Jewelry would be on the home page also with a menu link.

Thanks,

Jim

PreviewAttachmentSize
catalog_sample.pngcatalog_sample.png180.87 KB
littly_kitty's picture
Offline
Bug Finder
Joined: 01/20/2008
Juice: 155
Re: Adding Additional Catalogs with a Grid Dispaly

I wanted two grid catalogues and my site and achieved it using views and taxonomy:

1. Go to Categories (taxonomy) and create a new vocabulary called product type (yoursite.com/admin/content/taxonomy).
2. Add to it two new terms (in your case "mens Jewelry" and "women's jewelry")
3. Edit all you existing products so they have one of these terms applied to them.
4. Now create a new View which mimics the appearance of the catalogue grid (You can use the Grid View in Bonus Views to help achieve this).
5. Make sure your view has a "page View". In the URL field of the page view box, enter "taxonomy/term/$arg" (even though the text of the URL Field tells you not to do this).
6. (Optional) if using the Grid View module, enter "$view->gridcount = 3;" in the Argument Handling Code box to display a grid with 3 columns.
7. Now you can make menus links which refer to the URLs of your taxonomy vocabulary terms (created in step 2). When people click on them, they will have a catalogue-like view.
8. (Optional) If you don't want the vocabulary terms appearing on your product pages, edit your theme to remove them (Link).

I had to use Taxonomy terms for my site as I was not using product classes. However, it probably should be possible to do the same thing using product classes (which would probably be better for you, as it would save steps 1-3). I haven't tried it myself so you'll have to experiment.

You can see the result on my site here:
http://electricdenim.co.uk/shop/
Brand is the default ubercart catalogue, but size and type are Views that mimic the catalogue.

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Catalog

Kitty:

Thanks for the how to. It is most appreciated.

It would be nice if it were possible to make a 2nd catalog the same as the default catalog. But having one look like the default is fine.

Will fire up the text box and work with your suggestions.

Thanks again.

Jim

ferrangil's picture
Offline
Joined: 02/27/2009
Juice: 62
Great! I really need to

Great!
I really need to display some extra CCK fields together with the cover and the price of my products (we are selling books, so Author is mandatory for example) and I think I will be able to create a Grid View to accomplish that.
IT seems this is the way to go, instead of trying to modify the default Catalog Grid View shipped with Ubercart...

faceorganics's picture
Offline
Joined: 04/10/2009
Juice: 19
Mimic / Clone the Catalog View

Kitty,

Thanks for the advice. But how do you clone/mimic the Calatog? I have 1 ubercart catalog in my store that displays perfectly, and I would like to copy that and make it display other taxonomy. But I dont know how to create the copy of "Catalog" since its not in my views list. How do you do this?

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Success with Content Types

Kitty:

Getting closer to success.

Looks like one can not make a product class called women's jewelry. The fields are not the same as with the default product class. i.e. no images field, etc. Unless there is a way to clone and made a second product class that is the same as the default product class.

However, your method works well if using additional content types. As in men's jewelry. Used views and the bonus pack to make a grid and a little CSS to center.

How did you achieve the two levels in the 2nd catalog? Did you use taxonomy blocks to have as an example Pearls and then under Peals list eight pearl jewelry items with separate images for all?

The first level has to have short names as in Pearls, Garnet, etc as there is not room for a long title. The 2nd level has room as there is no gird at that level.

Here is the URL of the site. http://www.alaskahandmadejewelry.com/ This is how the 2nd catalog should look like.

This is setup using the default catalog as the second catalog has not yet been added.

Jim

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Success with Content Types

Making product classes should have copied the original image field to them as well. But if not, it's pretty easy to add an existing field to any content type. In the Content types administration page, there's a tab for "Add field". Choose "field_image_cache" to use the default image field that Ubercart adds to the product class. Or choose anything else you happen to want on your content types.

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Catalog

Lyle:

Yes, I did notice that there is a way to add fields (image, etc). Thought that perhaps it should be the same as the original product filed without having to go the extra mile or a way to clone the orginal. Using Uber 1189 on the test box.

Am I correct to assume that there is only one catalog and that a second catalog can not be added? Or is that a wrong assumption? And if a 2nd catalog is needed one can be made to look like the default by using views bonus pack with grid and views.

The idea is to have 2 catalogs. One for Men and one for Womens. The Women's would be the home page. And both the men and women catalogs would be accessible from the left sidebar menu.

Tried Kitty's suggestion and it did work and the page looks like the default catalog page. But got stuck on making the 2nd level products to show up.

Thanks for the suggestion.

Jim

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Export - Import

Lyle:

Took your suggestion on using content/type/import and then export. Used an export from 'products' and imported to 'mens_jewelry' to duplicate all of the fields in 'products'. When creating content the fields in 'products' and 'mens_jewelry' are vastly different.

Using Uber 1189. Even dropped the DB and ran install.php to offer a clean slate on the test box.

Seems like this might be the same issue as in 3943.

The goal is to have 'mens_jewelry' match the fields as listed in the default 'products'.

Jim