Forums / Templates, Stylesheets, Page Layout / Increase text size on prices in category

Increase text size on prices in category

Locked

Started by 52cardz on 17 Mar 2007, 2:27 AM · Views: 2,344

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Mar 2007, 2:27 AM
#1
52cardz avatar

52cardz

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Increase text size on prices in category

Hi,

Is it possible (and how to do it) to increase the text size of the prices in the categories? I found it in the CSS but when I added a 'font-size' value, it also changed the size for the Item name listed.

The item name size is fine, it's just the prices that are a little too small.

Thank you!

17 Mar 2007, 3:12 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Increase text size on prices in category

52cardz:

Hi,

Is it possible (and how to do it) to increase the text size of the prices in the categories?

Not sure what display level you are referring to...

  • index listing
  • all listing
  • product listing

20 years a Zencart User

17 Mar 2007, 5:27 AM
#3
52cardz avatar

52cardz

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: Increase text size on prices in category

I guess it would Index listing... I have a main category that list's what the level of product is, then a sub-category that actually lists the various products, image and price.

I would like to change the text size of the price, in the sub-category section.

I see it pointed as 'productlisting-data' in the CSS, but if I alter it, I get JUMBO product listings. I didn't see any change to the price text, only the product listing.

Thank you.

17 Mar 2007, 7:20 PM
#4
52cardz avatar

52cardz

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: Increase text size on prices in category

I have also changed to the column layout grid, If that makes any difference.

17 Mar 2007, 9:42 PM
#5
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Increase text size on prices in category

52cardz:

I have also changed to the column layout grid, If that makes any difference.

Yep, it makes a difference. :-) Though I'm not sure if we're talking about the same thing, because in my column grid site, I don't have the productlisting-data tag on a category page with products. What I'm proposing below would change the font size on a page like this:
http://www.zencart137.jadetrue.com/index.php?main_page=index&cPath=1

Open up includes/modules/YOUR_TEMPLATE/product_listing.php (if you don't already have it in YOUR_TEMPLATE folder, make these changes, then save the file to includes/modules/YOUR_TEMPLATE/ folder, so that when you upgrade, the adjustments are saved).

Find:

        case 'PRODUCT_LIST_PRICE':
          $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
          $lc_align = 'right';
          $lc_text =  $lc_price;

and replace with:

        case 'PRODUCT_LIST_PRICE':
          $lc_price = '<span class="listingPrice">' . zen_get_products_display_price($listing->fields['products_id']) . '</span><br />';
          $lc_align = 'right';
          $lc_text =  $lc_price;

now you have a new class that you can define in your css. Add:

.listingPrice {
font-size: 110%;
}

(or whatever size you'd like) :-)

18 Mar 2007, 5:14 AM
#6
52cardz avatar

52cardz

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: Increase text size on prices in category

Thank you very much!