Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Do not know where to add css rule to style item price

    I am having a problem trying to style the products price. I do have columnar display enabled.

    Please see an example here: http://www.lasilhouettelingerie.com/...ker-c-193_196/ (this is where I want to style the products price).

    If you look at the source code, there is no styling added to the product price and that's the reason this price font is plain black. I am looking for the file to add this styling, but do not see the price definitions in php. I have been in both:

    \includes\templates\MyTemplate\templates\tpl_modules_product_listing.php
    and
    \includes\templates\MyTemplate\common\top_columnar_display.php

    but still do not see where to add this css definition.

    I know how to style via CSS if, I can get the style added to the correct php area. Any suggestions as to where I can find the code, to add a style for the price?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Do not know where to add css rule to style item price

    Possibly in includes/modules/product_listing.php, around line 104.

  3. #3
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: Do not know where to add css rule to style item price

    Thank you stevesh, I would have never found that file!

    For anyone else with this same issue, look for this file:
    includes/modules/product_listing.php

    Find this code (line #149 - 152)
    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 change to this:
    Code:
    case 'PRODUCT_LIST_PRICE':
            $lc_price = zen_get_products_display_price($listing->fields['products_id']);
            $lc_align = 'right';
            $lc_text =  '<div class="pprice">'.$lc_price. '</div>';
    (I also removed the extra break here: . '<br />' but that is up to you)

    Don't forget to save this file in: includes/modules/YOURTEMPLATE/product_listing.php.

    Last add this .pprice class in your stylesheet.css with the definitions to modify the look.

 

 

Similar Threads

  1. Swap Images via Mouseover or Click Add-on: how to add CSS Style?
    By vojager in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 28 Jan 2011, 06:27 PM
  2. Product name, description and price css style help
    By GoodieTins in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 5 Nov 2010, 03:54 AM
  3. CSS add to cart button and style
    By UHU2 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Nov 2008, 02:34 PM
  4. Need to change item name style, but where?
    By bgourmet in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2008, 05:57 AM
  5. Does anyone know where the shopping cart is in css?
    By jmelwak in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Aug 2007, 10:05 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