X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   NewProducts for 4.4.2 (https://forum.x-cart.com/showthread.php?t=57790)

Cankus 01-28-2011 11:05 AM

NewProducts for 4.4.2
 
1 Attachment(s)
Hi,

Newproducts for 4.4.2, of course free :)

ADDISON 01-29-2011 12:07 AM

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.

JWait 05-04-2011 09:19 AM

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.

JWait 06-16-2011 11:15 AM

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.

cflsystems 06-16-2011 11:21 AM

Re: NewProducts for 4.4.2
 
Open that php file and you will see how they are listed in an array

JWait 06-18-2011 08:20 AM

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)?

JWait 12-24-2011 05:31 AM

Re: NewProducts for 4.4.2
 
Any help with this?

yages 01-16-2012 03:28 PM

Re: NewProducts for 4.4.2
 
How do you create a link for this mod in the categories template

JWait 01-16-2012 04:29 PM

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.

cflsystems 01-16-2012 06:34 PM

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


All times are GMT -8. The time now is 09:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.