| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
NewProducts for 4.4.2 | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
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 |
|||||||
#12
|
|||||||
|
|||||||
Re: NewProducts for 4.4.2
How to display the new products in tab?
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#13
|
|||||||||
|
|||||||||
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 |
|||||||||
#14
|
|||||||
|
|||||||
Re: NewProducts for 4.4.2
Quote:
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 |
|||||||
#15
|
|||||||
|
|||||||
Re: NewProducts for 4.4.2
Quote:
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... |
|||||||
#16
|
|||||||||
|
|||||||||
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 |
|||||||||
#17
|
|||||||
|
|||||||
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. |
|||||||
#18
|
|||||||||
|
|||||||||
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:
__________________
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 |
|||||||||
#19
|
|||||||||
|
|||||||||
Re: NewProducts for 4.4.2
Quote:
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 |
|||||||||
#20
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|