Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2003
    Location
    Brisbane , Australia
    Posts
    44
    Plugin Contributions
    0

    Default what template controls the price display on the front page?

    I am wanting to edit the front page of my theme so that the template displays the old price and new price on the same line like in the attached image. Currently it displays the old price above the new price.

    Can some one tell me which template controls that layout?

    Thanks
    Ian
    Attached Images Attached Images  

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

    Default Re: what template controls the price display on the front page

    Since you have a custom template, there's no way to tell without seeing the site.

  3. #3
    Join Date
    Nov 2003
    Location
    Brisbane , Australia
    Posts
    44
    Plugin Contributions
    0

    Default Re: what template controls the price display on the front page

    The site i am looking at changing is is ozwool.net and the theme is gadgets_yellow, does that help any?
    thanks
    Ian

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

    Default Re: what template controls the price display on the front page

    It's a start. Now we need to see a product which has both prices - your Specials page is blank. The stock Zencart template shows the two prices on the same line.

    BTW, your product images are waaaay too big (file size, not dimensions), and your site loads slowly as a result. They need to be optimized.

  5. #5
    Join Date
    Nov 2003
    Location
    Brisbane , Australia
    Posts
    44
    Plugin Contributions
    0

    Default Re: what template controls the price display on the front page

    hello
    I Turned a special back on - it had expired.
    What is the stock template that controls the display.

    Thanks for the image advice, I have been working on new images that will be loaded shortly, along with a whole raft of other changes to the product line, pricing etc.

    thanks
    Ian

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

    Default Re: what template controls the price display on the front page?

    The prices are displaying on the same line here.

  7. #7
    Join Date
    Nov 2003
    Location
    Brisbane , Australia
    Posts
    44
    Plugin Contributions
    0

    Default Re: what template controls the price display on the front page?

    on a 3 column setting they show as 1 line but in a desired 4 column look the price is displayed over 2 lines. I also want the details button to be under the prices not in the same line
    so the layout would be
    old price new price
    details button

    thanks
    Ian

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: what template controls the price display on the front page?

    Quote Originally Posted by ian View Post
    on a 3 column setting they show as 1 line but in a desired 4 column look the price is displayed over 2 lines.
    That's because it is following simple "line-break" rules.As there is not enough space in the containing element when showing 4 cols, it breaks onto the next line.

    To force the specials price (when it is relevant) to show UNDER the normal price, you can try editing...

    includes/functions/functions_prices.php

    Line #230 : $show_special_price = '&nbsp;' . '<span class="productSpecialPriceSale">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

    Line #238 : $show_special_price = '&nbsp;' . '<span class="productSpecialPrice">' . '<s>' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s>' . '</span>';

    Line #240 : $show_special_price = '&nbsp;' . '<span class="productSpecialPrice">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

    To

    Line #230 : $show_special_price = '<br />' . '<span class="productSpecialPriceSale">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

    Line #238 : $show_special_price = '<br />' . '<span class="productSpecialPrice">' . '<s>' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s>' . '</span>';

    Line #240 : $show_special_price = '<br />;' . '<span class="productSpecialPrice">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';
    20 years a Zencart User

 

 

Similar Threads

  1. Replies: 9
    Last Post: 25 Mar 2013, 09:31 AM
  2. where is the SQL that controls what the categories side box outputs?
    By edwinx in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 20 Mar 2011, 05:50 AM
  3. Quickie: what file template controls the category display?
    By gaekwad in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Apr 2009, 07:49 PM
  4. Product Info Page What program controls the physical LAYOUT
    By PetesTown in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Aug 2007, 12:10 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