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
  #1  
Old 01-28-2011, 11:05 AM
 
Cankus Cankus is offline
 

Member
  
Join Date: May 2006
Posts: 27
 

Wink NewProducts for 4.4.2

Hi,

Newproducts for 4.4.2, of course free
Attached Files
File Type: zip Newproducts4.4.2.zip (5.3 KB, 158 views)
__________________
www.elitmarket.com
Pro 4.4.3
Reply With Quote

The following 6 users thank Cankus for this useful post:
adriant (10-24-2011), am2003 (03-26-2011), clickcamera (05-16-2011), hoskar10 (02-04-2011), josebueso (02-19-2011), zone1creative (07-03-2012)
  #2  
Old 01-29-2011, 12:07 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

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

Default Re: NewProducts for 4.4.2

Great, thanks for sharing. You can go further adding this Mod to list of modules in Backend. A user can activate or deactivate this feature.
__________________
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
  #3  
Old 05-04-2011, 09:19 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

It doesn't seem to work properly in v4.4.2. I tried using the products_tn.tpl, products_t.tpl, and products.tpl all with pretty much the same result... while it displays new products, all that is displayed is the thumbnail and the product title, neither of which has the correct url (I think its blank) as all it does it go to the xcart root (home.php) when clicked.

Also, it does seem to matter if "seo friendly urls" are enabled or not.

Any help would be appreciated.
__________________
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

The following user thanks JWait for this useful post:
clickcamera (05-16-2011)
  #4  
Old 06-16-2011, 11:15 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

Ok... I think I figured out what part of the problem is. I got the thumbnails, title, and price to be displayed, but still no "buy now" details. I think it is because it needs to call customer/main/buy_now.tpl and there is a "warning" in that template that says....

Note for designers:
You must register any new template variable in
include/templater/plugins/function.include_cache.php file to handle cache properly
Search for the 'vars_used_in_templates' variable in the file.

How would I register the variables used in this mod in order to get the "add to cart" button to function.
__________________
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
  #5  
Old 06-16-2011, 11:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,026
 

Default Re: NewProducts for 4.4.2

Open that php file and you will see how they are listed in an array
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 06-18-2011, 08:20 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

Thanks but the problem is I have no idea what variables I need to add there. Would I add "'newproducts' => array (" and then list all of the variables found in newproducts.php (newproducts_dayrange, sort_fields, days, sortby, sortdirection, products, newproducts, first_item,last_item, total_items, navigation_script)?
__________________
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
  #7  
Old 12-24-2011, 05:31 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

Any help with this?
__________________
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
  #8  
Old 01-16-2012, 03:28 PM
 
yages yages is offline
 

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

Default Re: NewProducts for 4.4.2

How do you create a link for this mod in the categories template
__________________
yages
x-cart version 4.5.5
Reply With Quote
  #9  
Old 01-16-2012, 04:29 PM
  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 yages
How do you create a link for this mod in the categories template

You don't, since it isn't a category. We just put a link to newproducts.php in the "tabs' (static pages) section.
__________________
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
  #10  
Old 01-16-2012, 06:34 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,026
 

Default Re: NewProducts for 4.4.2

You can still put a link in categories menu, just outside the loop as an additional item, in categories template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:28 AM.

   

 
X-Cart forums © 2001-2020