Forums / General Questions / Free item does not display the price

Free item does not display the price

Locked

Started by eaglewu on 30 Oct 2010, 7:02 PM · Views: 858

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Oct 2010, 7:02 PM
#1
eaglewu avatar

eaglewu

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?

30 Oct 2010, 7:12 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,120
Plugin Contributions:
56

Re: Free item does not display the price

A link to your site would help ...

30 Oct 2010, 7:16 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Free item does not display the price

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

31 Oct 2010, 3:34 PM
#4
eaglewu avatar

eaglewu

New Zenner

Join Date:
Jan 2007
Posts:
82
Plugin Contributions:
0

Re: Free item does not display the price

thank you. Problem solved.

31 Oct 2010, 3:45 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Free item does not display the price

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!