If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Change to new products display page

Change to new products display page

Locked

Started by digitalshadow on 17 Nov 2010, 10:05 AM · Views: 686

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 Nov 2010, 10:05 AM
#1
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Change to new products display page

Would it be possible to have the page include products that have been updated recently, i.e. products that aren't new, but back in stock etc etc?

Would it be as simple as having it display items that have been updated in the last 30 days?

Or wouldn't that work as the date used to determine if it has been updated is also updated when a product is sold?

17 Nov 2010, 10:27 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Change to new products display page

You'd have to fudge the data directly in the database by manipulating the raw data for the products_date_added field of each record you want to say is suddenly "new" once again. If you're displaying that date on your product page, be aware that changing that value then becomes misleading.

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

17 Nov 2010, 10:40 AM
#3
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Change to new products display page

Could it look at the date modified field?

17 Nov 2010, 10:47 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Change to new products display page

There are consequences to that. But, sure, you can hack the code to do whatever you like.

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

17 Nov 2010, 11:14 AM
#5
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Change to new products display page

What actions adjust the date modified field?

A product being sold and if i adjust the product in the admin?

17 Nov 2010, 11:20 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Change to new products display page

Off the top of my head, I don't recall exactly. You'd have to search the code for the field name, and figure out how it's being used in all such occurrences, and whether any of those is related to what you're trying to do.

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

17 Nov 2010, 11:38 AM
#7
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Change to new products display page

It might be easier create a new database field that is updated only by me using the edit product page, and have the latest products list also poll that field to see if anything has been updated by me in the last x days...