Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Listing Price Font

Product Listing Price Font

Locked

Views: 4,895

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
29 Apr 2008, 11:12 AM
#1
glenelkins avatar

glenelkins

New Zenner

Join Date:
Apr 2008
Posts:
31
Plugin Contributions:
0

Product Listing Price Font

Hi

I have looked at the style used for the font size on the product listing page which is set to "productListing-data". Though when i look at my stylesheet, this tag doesnt set any font size at all

How can i change the price font size? Its too small

29 Apr 2008, 2:41 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Product Listing Price Font

glenelkins:

Hi

I have looked at the style used for the font size on the product listing page which is set to "productListing-data". Though when i look at my stylesheet, this tag doesnt set any font size at all

How can i change the price font size? Its too small

G,
Well, if you change the above declaration the whole text, price, etc. all change, but if you want to only change the Price we need to specify a ID or Class to this so we can control in the .css

includes/ modules/ your_template_name/ product_listing.php1. >

  1. Line 107
  1. case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text =  $lc_price;Change to:1. >
  1. case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text =  '<div class="prodListPrice">' . $lc_price . '</div>';Now we half to edit the stylesheet.css> includes/ templates/ your_template_name/ css/ stylesheet.css

Add the following declaration at the bottom1. >

  1. .prodListPrice {font-size: 1.2em;}
  1. the highlighted red font above, change to whatever the size you need.
24 Oct 2008, 3:17 PM
#3
travellers avatar

travellers

Zen Follower

Join Date:
Oct 2008
Posts:
143
Plugin Contributions:
0

Re: Product Listing Price Font

On behalf of the original poster who has inexplicably failed to thank someone giving him his answer, MANY THANKS FOR THIS! I played around for an absolute age, but your way worked in a matter of seconds (proving that I should have searched the forum *before *attempting it myself...)

25 Oct 2008, 4:18 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Product Listing Price Font

Tr,
Thanks for the compliment, Boy I needed an uplift,
You are most welcome for the answer, glad it fixed it for you.. :)

25 Oct 2008, 4:42 PM
#5
hoist avatar

hoist

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Re: Product Listing Price Font

Along these lines, I'm trying to alter the table cells that are displayed when conducting a product search. The current layout places the product name, photo, description and price in 4 different table cells. which displays horribly. I can find where to change the classes, etc. but cannot for the life of me find where that table is being built so I can lay these items out properly.

thanks!

20 Nov 2008, 11:41 PM
#6
iewar1jumz avatar

iewar1jumz

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

Re: Product Listing Price Font

haredo, big thx to you. :smile:

21 Nov 2008, 2:04 AM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Product Listing Price Font

Ie,
you are most welcome, glad I could spif up your web page. :)

4 Jun 2009, 8:27 PM
#8
grosethsport avatar

grosethsport

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: Product Listing Price Font

HAAAALLLELUJA!!!!!!! I have spoken to sooo many geeks about this but they ddn`t understand ########... This is amasing. My page is finally finshed!!!!!

5 Jun 2009, 3:31 AM
#9
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Product Listing Price Font

Gr,
Glad you used the search function within the Zen panel to find this thread.. :)

30 Jun 2009, 11:46 PM
#10
lrt1099 avatar

lrt1099

New Zenner

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

Re: Product Listing Price Font

Thank you for this answer~!!! :clap::clap:

1 Jul 2009, 8:24 AM
#11
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Product Listing Price Font

yes... thanks to H... :smile:

His solution demonstrates a more general principle - that one can make a small change to the core code (adding a DIV with a unique style), which can then be controlled by a declaration in the stylesheets.

17 Nov 2009, 10:15 PM
#12
misscharlotte avatar

misscharlotte

New Zenner

Join Date:
May 2008
Location:
Pennsylvania
Posts:
25
Plugin Contributions:
0

Re: Product Listing Price Font

Thanks! Your code was the solution I was looking for to change the product listing price font. Can this be applied to the main page where the new products and featured products are shown on the home page? I would love to change the font size, but I'm not sure which page would need to be edited. Is it the main page, index page, or another page? Any help would be appreciated.

Thanks a bunch!