Forums / Templates, Stylesheets, Page Layout / New products display all products

New products display all products

Locked

Views: 769

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 May 2008, 2:33 PM
#1
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

New products display all products

I know this is a very common problem but mine seems a bit worse since changing the value in the admin won't do anything. The correction probably involves Php and/or SQL but I don't know where to look for the code.

Does anyone has any idea which file I should look into?

9 May 2008, 2:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: New products display all products

products_date_added in products table. Alter at your own risk.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 May 2008, 5:48 PM
#3
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

Re: New products display all products

Upon further investigations, it does not appear to be related to the tables in any way. The function responsible of getting the range of new products is called zen_get_new_date_range(), is in the file functions_lookups.php and appear to be working the wat it was intended, with the right range and everything. The problem is that the file that calls this function (header_php.php) does not seem to recognize that function and, therefor, gives no range to the SQL query. I tried to "require" the file but got a blank page as a result.

Maybe I haven't made the "require" at the right place. Still looking into it so anyone can feel free to chip in with their thoughts.

10 May 2008, 4:36 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: New products display all products

I can't see a place in a fresh install of the current version of Zen Cart where what you describe is manifesting any problem.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2008, 1:23 PM
#5
arrow avatar

arrow

New Zenner

Join Date:
Nov 2007
Location:
Montreal, Qc
Posts:
51
Plugin Contributions:
0

Re: New products display all products

Ok, I corrected the problem. The problem was in the function zen_get_new_date_range(). For some reason, it worked properly but didn't send the result. I don't know why anyone would type return ""; in a function so I will assume that either:

a) it was a human error, or
b) a faulty file transfer that deletes or adds a few characters

It's what I always assumed the cause would be since I was apparently the only one with the problem. Anyway, thanks for your help!