Zen Cart Logo

Category view...

Locked

Views: 673

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Sep 2009, 8:23 AM
#1
slider avatar

slider

New Zenner

Join Date:
Aug 2009
Posts:
3
Plugin Contributions:
0

Category view...

I'm not sure if this the right word, but the page before product info where you have a list of the products.

Is it possible to have just this list, as I have no need for description or anything else really, so would look a lot better to just add the products on this page.

Also, is it possible to have a alternating background for each product in the list.

Sorry if I havn't explained myself very well.

Ta. :)

4 Sep 2009, 12:23 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Category view...

You can already add products to the cart from the product listing page. Your screenshot shows that you have enabled Configuration > Product Listing > "Display Multiple Products Qty Box Status and Set Button Location" so that you set the quantity of each item, then click the Add button at top. If you want each item to have a direct "Add to Cart" button, set that back to 0 and set "Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)" as desired.

To disable going to the product info page, you would need to edit /includes/modules/your_template/product_listing.php to remove the link code in the "image" and "name" cases.

For the backgrounds, find or add in your stylesheet and assign bg colors as desired:
.rowodd {background: #aabbcc;}
.roweven {background: #ddeeff;}

4 Sep 2009, 1:15 PM
#3
slider avatar

slider

New Zenner

Join Date:
Aug 2009
Posts:
3
Plugin Contributions:
0

Re: Category view...

Many thanks!

Although, for the alternating rows I had to do something a little different and needed to add

.productListing-odd {
background-color : #ffffff;
}

.productListing-even {
background-color : #EBEBEB;
}

To a seperate stylesheet called stylesheet_css_boxes.css any ideas why this was the case?

Thanks again. :smile:

4 Sep 2009, 1:37 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Category view...

.productListing-odd and -even are actually the prime classes for that case; they slipped my mind when posting. They would normally be found in the main stylesheet. I think stylesheet_css_boxes.css comes from a mod, and since it would be loaded after the main stylesheet, you would have to edit it to control selectors/properties mentioned in it.