Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Making product prices larger in all/new/categories listings

    At the moment, the prices on these listings for the products are the same size as the description text - It would look better larger, but I don't think there is a seperate variable in the style sheet to alter it..

    Any way of doing it?

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    there are no HTML attribute associated with price for those listing . what you need to do is to add html attribute for the price and then use CSS to style as you need.

    i show you how to do this for Product All listing . I assume you know enough about Override . Override tpl_modules_products_all_listing.php
    look for code on line 79 and add the change in Red to your code
    Code:
        $display_products_price = TEXT_PRICE . ' ' .'<span id="PriceAll">'. $products_price .'</span>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_all->fields[
    I added Id to this span, you can remove it if you want
    you can do the same with other template files

    in your CSS you can use the span id to change font size , etc or you can use parent child relation to do the same .

    #PriceAll {
    font-weight : bold ;
    font-size : 1em ;
    }

    or if you remove span ID , then you can use this in your stylesheet

    .main span {
    font-weight: bold;
    font-size : 1em ;
    }

  3. #3
    Join Date
    Jun 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    Hi, new to this so forgive any mistakes in protocol.

    I have just tried your method and it hasn't made any difference. I have checked the code line you refer to and my line 79 is as follows:

    $display_products_price = TEXT_PRICE . ' ' .'<span id="PriceAll">'. $products_price .'</span>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_all->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($products_all->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

    I wasn't sure where to add the class elements in to the css file and so added it at the end under miscellaneous. I would be very grateful if someone can indicated where I might have gone wrong. Thanks.

    www.plumfashion.co.uk/store
    Zen Cart v1.3.9b fresh install

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    Quote Originally Posted by Rigel View Post
    Hi, new to this so forgive any mistakes in protocol.

    I have just tried your method and it hasn't made any difference. I have checked the code line you refer to and my line 79 is as follows:

    $display_products_price = TEXT_PRICE . ' ' .'<span id="PriceAll">'. $products_price .'</span>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_all->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($products_all->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

    I wasn't sure where to add the class elements in to the css file and so added it at the end under miscellaneous. I would be very grateful if someone can indicated where I might have gone wrong. Thanks.

    www.plumfashion.co.uk/store
    Zen Cart v1.3.9b fresh install
    i don't see <span> tag in your listing page . are you sure you have made the change to correct file ?

  5. #5
    Join Date
    Jun 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    Thanks but I wasn't sure where in the css file to add the span tag. Can you suggest where it needs to sit. Thanks.

  6. #6
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    I tend to add them at the end of my CSS .

  7. #7
    Join Date
    Jun 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    I tried that but it didn't seem to make any difference. This is what I put at the end of the stylesheet:

    /*inserted following class to enable to style price info separately*/
    #PriceAll {
    font-weight : bold ;
    font-size : 1em ;
    }

    Presumably I have been stupid somewhere?

  8. #8
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    I don't think you have made a change to correct file . as i mentioned before , there are no SPAN tag in your Product All listing page ..
    no span / class , no styling ..

  9. #9
    Join Date
    Jun 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    Thank you - I must have been tired when I did this - I had made the change but not uploaded it. Doh!

  10. #10
    Join Date
    Jun 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Making product prices larger in all/new/categories listings

    Presumably you have to apply the same code to other mod pages for the same effect?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 15 Nov 2010, 10:16 AM
  2. how to turn off all product listings and only show categories?
    By fa11s in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Feb 2009, 08:34 PM
  3. I don't want certain product to show in listings (new, all, etc)
    By shocker in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 11 Dec 2007, 07:45 PM
  4. Making Category, All, New, Featured Listings Consistent
    By BillyBob_jcv in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2007, 04:43 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