Forums / Setting Up Categories, Products, Attributes / Two questions to Product display in category listing

Two questions to Product display in category listing

Locked

Views: 1,842

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Sep 2006, 7:14 PM
#1
anuragji avatar

anuragji

New Zenner

Join Date:
Apr 2005
Posts:
17
Plugin Contributions:
0

Two questions to Product display in category listing

Hey there,

I have two questions to the product display in the category listing:

  1. Can the price be displayed when it is $ 0.00 and how?
  2. If Product max qty is 1 set to one, how can I get rid of the MAX:1 display in the category listing?

ad 1. I have a lot of free downloads, and I just want to also display that the price is 0.00 (as some customers seem to be misled by the category name "FREE DOWNLOADS" )

Thanks,

Anuragji

Why not?

21 Sep 2006, 7:33 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Two questions to Product display in category listing

If you mark the Product as 100.00 then mark it as Product is Free YES ... you will see the $100.00 price, but it will be marked out and say Free ...

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!

21 Sep 2006, 7:49 PM
#3
anuragji avatar

anuragji

New Zenner

Join Date:
Apr 2005
Posts:
17
Plugin Contributions:
0

Re: Two questions to Product display in category listing

Fantastic: Even better i'll mark it as $1000.00 and free, then they'll be really happy... :lol:

Actually: That isn't realy what I am looking for... is there a way to display the price if it is 0.00 ?

I'm not afraid to "mess with" a template :wink2:

Anuragji

Why not?

23 Sep 2006, 9:33 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Two questions to Product display in category listing

0.00 is suppressed ...

If you absolutely have to show the 0.00 vs marking the Product as Product is Free YES ...

You could edit the file:
/includes/functions/functions_prices.php

Around lines 256 - 261 is a function that excludes the $show_normal_price when the $display_normal_price == 0 ...

    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;
    }

Note: there is no override for this file so keep backups of both the orginal and your changed file ...

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!