Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product listing spacing/enhancing

Product listing spacing/enhancing

Locked

Views: 1,046

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
20 Oct 2008, 9:12 PM
#1
the_end_zone avatar

the_end_zone

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Product listing spacing/enhancing

Here's my site product page: http://endzoneonline.com/index.php?main_page=index&cPath=1_3 there are 2 different I'd like to change.

  1. lower the item price in the right hand column & remove the
    more info... This would just leave the price, Quantity & max #
    (I would also be interested in knowing how to remove the max

    as I can't decide if I want this or not).

  2. Can I perhaps place a small line between product listings? If
    so what needs to be added/changed.

Thanks for the assistance,
The End Zone

20 Oct 2008, 10:41 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Product listing spacing/enhancing

  1. lower the item price in the right hand column & remove the more info... This would just leave the price, Quantity & max #
    (I would also be interested in knowing how to remove the max

as I can't decide if I want this or not).

Many items here:
more info denotes that this product has attributes that require selecting so the add to cart can not be reliably displayed
You can toggle the add to cart to off for all and this will also remove the more info and price

admin > config > product listing > Display Product Price/Add to Cart > set to "0"

Max displays when your product has this set so to eliminate change the product setting

  1. Can I perhaps place a small line between product listings? If so what needs to be added/changed.
    Find, add, change your stylesheet for this rule(might just add it) and adjust as required
.productListing-data {
border-bottom: 1px solid #000000;
}

Zen-Venom Get Bitten

20 Oct 2008, 11:45 PM
#3
the_end_zone avatar

the_end_zone

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Re: Product listing spacing/enhancing

Kobra,
Thanks for your response.

Now the only thing I'm wanting to do is elimnate the double space between the price & the quantity (In the right hand product column).

For Example I'd like the $4 price tag on the 1st card directly above the ....more info line.

If anybody can help I'd greatly appreciate it.

Thanks,
The End Zone

21 Oct 2008, 12:10 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Product listing spacing/enhancing

You will need to edit /includes/modules/your_template/product_listing.php for this.
In the
case 'PRODUCT_LIST_PRICE':
section, there are several <br /> tags, and eliminating the right one(s) will eliminate line spaces. You can also eliminate the max text (which is displayed in the "minimum" code fragment.)
This would be the place to eliminate the ...more info, though this would also eliminate the add button where it displays unless carefully and surgically cut.
If you simply want ...more info to disappear, you can redefine the text in the proper language file to '' (two single quotes) so that it displays nothing. This would avoid editing product_listing.php for that.

Be aware that changes here will affect all products' listings.

21 Oct 2008, 1:13 AM
#5
the_end_zone avatar

the_end_zone

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Re: Product listing spacing/enhancing

Sweeeeeeeeeeet! It worked. Thanks Glenn.

That answers my questions ..... at least for now.

Thanks,
The End Zone

21 Oct 2008, 1:16 AM
#6
the_end_zone avatar

the_end_zone

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Re: Product listing spacing/enhancing

Spoke too soon.

Looks like I want it to in IE, but Firefox shows the products bunched up (no spacing or lines between products).

Any ideas would be greatly appreciated.

Thanks,
The End Zone

21 Oct 2008, 1:51 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Product listing spacing/enhancing

I'm seeing the

$4.00
... more info
Sold Out
Max: 4

and the lines between products (FF3). Did you fix it, or do you need to clear cache or something?
It looks about the same in IE6.

21 Oct 2008, 2:01 AM
#8
the_end_zone avatar

the_end_zone

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Re: Product listing spacing/enhancing

Clearing the cache did it. Doh!

Thanks!

21 Oct 2008, 2:17 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Product listing spacing/enhancing

If you still want to eliminate the ...more info:

A search on "more info" in Tools > Developers Toolkit shows this:

/includes/languages/your_template/english.php

Line #147 : define('BOX_HEADING_MORE_INFORMATION', 'More Information');
Line #345 : define('CART_COUPON_INFO', 'more info');
Line #372 : // more info in place of buy now
Line #373 : define('MORE_INFO_TEXT','... more info');

Edit line 373 as desired (it may be a different line # for you).

define('MORE_INFO_TEXT','');