Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

NewProducts for 4.4.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 02-23-2012, 03:11 PM
 
yages yages is offline
 

eXpert
  
Join Date: Sep 2004
Location: Australia
Posts: 332
 

Default Re: NewProducts for 4.4.2

I notice that if you have three new products, and you click on details for the first and second ones you get the detail page for the third product, any ideas how to fix this problem
__________________
yages
x-cart version 4.5.5
Reply With Quote
  #12  
Old 04-27-2012, 11:49 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: NewProducts for 4.4.2

How to display the new products in tab?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #13  
Old 04-28-2012, 07:51 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: NewProducts for 4.4.2

You will have to modify include/product_tabs.php and include it there
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #14  
Old 04-30-2012, 01:17 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: NewProducts for 4.4.2

Quote:
Originally Posted by cflsystems
You will have to modify include/product_tabs.php and include it there

Hi Steve,
Thank you for your reply.
I have a custom tab in my home page.I want to display Newest Product in tabs by calling newproducts.tpl in the tabs.But here to display newproduct instruction says that I have to click newproducts.php.

How to call tpl file in custom tabs?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #15  
Old 06-17-2012, 11:54 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: NewProducts for 4.4.2

Quote:
Originally Posted by Cankus
Hi,

Newproducts for 4.4.2, of course free

If I modify any existing products information such as price,description etc then it will also display in Newest product tabs.It should not display that product in the list.

How to achieve that?

Thanks...
__________________
4.6.1 Platinum


Reply With Quote
  #16  
Old 06-18-2012, 12:23 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

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

Default Re: NewProducts for 4.4.2

@Learner: It seems the "add_date" field in [xcart_products] table is changing too. This needs an investigation. Normally if a product has a field "add_date" set up already, it should not be changed. If it is changing by default after a modification in product information, you should report this to QT, it is a program logic issue there. Field "add_date" means date of creation, changing text in descriptions, price, ..., should not update this field to current date.

Use this thread to see and modify your "add_date" field in Admin -> Product page: http://forum.x-cart.com/showthread.php?t=63608&highlight=add_date

After you customized your code you can check what time is it after you modify description. If I am right, we should report this program logic issue.
__________________
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
  #17  
Old 06-18-2012, 12:31 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: NewProducts for 4.4.2

Hi Addison,
Thanks for your reply.Is it a bug of 4.4.2 Pro or any problem of Newproducts for 4.4.2 by Cankus ?

Thanks again.
__________________
4.6.1 Platinum


Reply With Quote
  #18  
Old 06-18-2012, 12:41 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

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

Default Re: NewProducts for 4.4.2

@Learner - you will get your own answer to the question if you follow investigation as I suggested. If "add_date" field is changing, it is a bug and it needs to be fixed.

Unfortunately without a fix for "add_date" field, all modules like this one will not work correctly. If you change your product information, date of creation will be replaced with the current one. And you cannot revert to previous date. In my opinion this should be investigate asap.

Quote:
Originally Posted by Learner
Hi Addison,
Thanks for your reply.Is it a bug of 4.4.2 Pro or any problem of Newproducts for 4.4.2 by Cankus ?

Thanks again.
__________________
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
  #19  
Old 06-18-2012, 10:07 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: NewProducts for 4.4.2

Quote:
Originally Posted by ADDISON
@Learner: It seems the "add_date" field in [xcart_products] table is changing too. This needs an investigation. Normally if a product has a field "add_date" set up already, it should not be changed. If it is changing by default after a modification in product information, you should report this to QT, it is a program logic issue there. Field "add_date" means date of creation, changing text in descriptions, price, ..., should not update this field to current date.

I'm pretty sure x-cart has always functioned this way. The problem with having a "fixed" add-date field is what happens if you clone a product? The add_date field should be the date the new product was cloned. Since x-cart is also "adding" new data to the new product (even though initially it is the same as what is being cloned), my guess is that "add-date" is simply "entering" the present time without checking if the field has data in it. Things could get quite messy if "checks" were added, and deciding when and when not to change the data could get extremely complex very quickly.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #20  
Old 06-18-2012, 10:31 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: NewProducts for 4.4.2

Yes XC has always been like this and yes this date field uses time() each time you modify a product or import it. Rename (in your mind) add_date to modified_date and there is no problem. Going off of that date for new products has never been a good solution. New products functionality has to be custom coded with a separate on/off switch and date field if you want to use something like this
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:46 PM.

   

 
X-Cart forums © 2001-2020