View Single Post
  #21  
Old 06-18-2012, 11:57 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: NewProducts for 4.4.2

Here is my comment added into the Bugtracker where someone reported this issue with "add_date" field:

"My first advice to QT maintenance team for this issue is inserting a new field in [xcart_products] table called "update_date".

- add_date = date of product creation, this should remain always the same
- update_date = date when product information was updated
- (optional) avail_date = date when a new product starts being available (for coming soon module)

Modules like "The Newest Products" or customizations like "Sort by Date" depend of "add_date" field. As Tech Team reported there is an issue with this field. It is updated to current time after any modification in product data.

My second advice is letting shop administrator to change in back-end the "add_date" field. I already did it for you here: http://forum.x-cart.com/showthread.php?t=63608&highlight=add_date

If someone wants to show them in front-end could use these values (add_date, update_date, avail_date) according to own needs. For example you can let your customers know in product page when the product was created or when product information was updated, or when it will be available (coming soon feature)."

So folks, we have a Program Logic issue here ...
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote