New Zenner
- Join Date:
- Jan 2007
- Posts:
- 82
- Plugin Contributions:
- 0
Free item does not display the price
I also sell free items. However, the price show as empty instead of $0.00.
Can anyone tell me how to edit?
New Zenner
I also sell free items. However, the price show as empty instead of $0.00.
Can anyone tell me how to edit?
Administrator
Oba-san
If you need to see the $0.00 on a Free Product, rather than mark the Product as Free ... you can customize the function zen_get_products_display_price in the:
/includes/functions/functions_prices.php
if ($display_normal_price == 0) {
// don't show the $0.00
$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
} else {
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
and change the code where it does not show the $0.00 to be:
[CODE] if ($display_normal_price == 0) {
// don't show the $0.00
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
} else {
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
[/CODE]
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
New Zenner
thank you. Problem solved.
Oba-san
You are most welcome ... thanks for the update that this was able to resolve the issue of actually showing the $0.00 on the Free Products ... :smile:
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Tell staff why this post should be reviewed.