Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Any way of increasing the font size of prices in side and centre boxes?

    By default there is no obvious hook for the normal price in the current version of Zen Cart (I hear a whisper that this will change in the next major upgrade).

    If you want to add tags onto which you can hook some styling (as has been done on the site referred to earlier in this thread), then you could try this ...

    ... includes/functions/functions_prices.php, find this line
    PHP Code:
              $show_normal_price $currencies->display_price($display_normal_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])); 
    and replace it with
    PHP Code:
              $show_normal_price '<span class="standardprice">' $currencies->display_price($display_normal_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>'
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Any way of increasing the font size of prices in side and centre boxes?

    Just what I needed. Thanks.

  3. #3
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Any way of increasing the font size of prices in side and centre boxes?

    Quote Originally Posted by kuroi View Post
    By default there is no obvious hook for the normal price in the current version of Zen Cart (I hear a whisper that this will change in the next major upgrade).

    If you want to add tags onto which you can hook some styling (as has been done on the site referred to earlier in this thread), then you could try this ...

    ... includes/functions/functions_prices.php, find this line
    PHP Code:
              $show_normal_price $currencies->display_price($display_normal_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])); 
    and replace it with
    PHP Code:
              $show_normal_price '<span class="standardprice">' $currencies->display_price($display_normal_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>'

    Ah found a problem. Doing that works on the front page, but the issue is it has also put the same styling on the prices on a product page, and all multiple listings (new, special, featured), even though for instance, there was already specific styling for them eg...

    #productPrices, #reviewsInfoDefaultPrice {
    font: 44px Arial;
    color: #a30101;
    margin: 0 0 16px 0;
    display: block;

    This made my product prices nice and large - now the new bit of code you have given me is overriding this...

 

 

Similar Threads

  1. v154 Accessibility - Are there plugins for increasing font-size and contrast?
    By gunni in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 10 Oct 2016, 03:41 PM
  2. Font size, color and style change in side boxes
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Oct 2010, 03:45 AM
  3. Problem with size of boxes and font within boxes on index page
    By Leacat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 May 2010, 07:11 AM
  4. Increasing price font size in categories
    By canemasters in forum General Questions
    Replies: 3
    Last Post: 2 Feb 2008, 09:34 PM
  5. Replies: 1
    Last Post: 29 Apr 2007, 07:25 PM

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