How do I get the Thumbnails to display the Base_Price?
I tried adding code to the product_thumbnail.tpl.php
and I noticed it has <!-- price info --> etc..
So there must be an easier way.
Thanks!
Robert
How do I get the Thumbnails to display the Base_Price?
I tried adding code to the product_thumbnail.tpl.php
and I noticed it has <!-- price info --> etc..
So there must be an easier way.
Thanks!
Robert
Product thumbnails should automatically be showing a base price below them, unless you've hidden it on their record via the Hide Base Price (or in older versions Show Base Price) field.
example.png
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
Hi Jamie,
I thought so. But the price doesn't show on the thumbnail, and it does show on the product_detail page.
see: http://www.afternoonmusic.com/
So it's not toggled off.
I'm running 3.35
I downloaded a fresh copy of SC and replaced product_thumbnail.tpl, but still no price.
And the brief description which used to be under the thumb now only comes on the tool-tip.
Don't care so much about the brief description, but it might be relevant to getting the price to show.
Anywhere else I should look?
Thanks,
Robert
Hi Robert,
It shows everywhere in normal thumbnail views except for the New Products content record. To add it to that special content record, add this to the new_products_box.tpl.php template file above the closing </form> tag:
PHP Code:<!-- price info -->
<?php if ($Discount_Class): ?>
<?php if ($Show_Regular_Price): ?>
<div class="regular_price">
<?php print $Regular_Price_Label?> <?php print sc_price($Regular_Price) ?>
</div>
<?php endif; ?>
<div class="sale_price">
<span class="sale_price_inner">
<?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
</span>
</div>
<?php elseif ($Base_Price): ?>
<div class="prod_price">
<?php print $Price_Label?> <?php print sc_price($Base_Price) ?>
</div>
<?php endif; ?>
<?php print $Reviews?>
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
I will do that for the new products, but the price doesn't show on any thumbnails.
For instance see: http://www.afternoonmusic.com/demo.php?crn=79
And if you click through to the detail page the price does show.
Cheers,
Robert
Hi Robert,
Prices are appearing on that page for me:
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
Jamie,
You can see it because I'd temporarily toggled the default theme to the Squirrelcart version while I messed around with the afternoon music theme.
But your comment revealed my error that I'd been making the editsto the SC theme and because I'm logged in when I viewed the page the changes didn't show.
Arg!
Fixed now.
Thanks!
Robert
Glad you figured it out!
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
There are currently 1 users browsing this thread. (0 members and 1 guests)