Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    help question 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!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Increase text size on prices in category

    Quote Originally Posted by 52cardz View Post
    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

  3. #3
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Increase text size on prices in category

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

  5. #5
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Increase text size on prices in category

    Quote Originally Posted by 52cardz View Post
    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/i...=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:

    Code:
            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:
    Code:
            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&#37;;
    }

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

  6. #6
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Increase text size on prices in category

    Thank you very much!

 

 

Similar Threads

  1. Increase text size on Packing Slip
    By mike1969 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Dec 2007, 11:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg