Forums / Templates, Stylesheets, Page Layout / what template controls the price display on the front page?

what template controls the price display on the front page?

Views: 987

Results 1 to 8 of 8
23 Sep 2011, 12:34 PM
#1
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

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

23 Sep 2011, 1:23 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

23 Sep 2011, 9:15 PM
#3
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

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

24 Sep 2011, 10:57 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

24 Sep 2011, 8:59 PM
#5
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

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

24 Sep 2011, 9:26 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

The prices are displaying on the same line here.

24 Sep 2011, 10:44 PM
#7
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

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

25 Sep 2011, 11:38 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

ian:

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 = ' ' . '<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 = ' ' . '<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