| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Newest Products | ||||
|
|
Thread Tools | Search this Thread |
#181
|
|||||||
|
|||||||
Re: Newest Products
Quote:
Awesome! Thanks
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#182
|
|||||||
|
|||||||
Re: Newest Products
I get this error when I click on any Products added since: variant
Warning: Smarty error: math ``x/y'' in ``customer/home.tpl'': parameter ``y'' is empty in /home/xxxxx/public_html/demo/Smarty-2.6.12/Smarty.class.php on line 1095 Can anyone help
__________________
yages x-cart version 4.5.5 |
|||||||
#183
|
|||||||
|
|||||||
Re: Newest Products
Works well now
The patch in the func file did the trick thanks
__________________
yages x-cart version 4.5.5 |
|||||||
#184
|
|||||||
|
|||||||
Re: Newest Products
Just noticed that the product short description does not show
Would be great if it did
__________________
yages x-cart version 4.5.5 |
|||||||
#185
|
|||||||||
|
|||||||||
Re: Newest Products
OK, it all seems to be working fine.... except...
When I click on "New Products Added: 24 Hours" on the newproducts page I get the by now familiar "Warning: array_slice() [function.array-slice]: The first argument should be an array in /home/xxxx/public_html/xcart/newproducts.php on line 153" error. Is anyone else also getting this error? My bad... I accidentally replace newproducts.php with the original upgraded version. When I used the latest one it worked fine. Just to make sure no one else has the same problem I have uploaded the latest version.
__________________
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 |
|||||||||
#186
|
|||||||
|
|||||||
Re: Newest Products
I love this mod but it wasn't set up for 4.1.x versions of xcart so I tried to make it work with my 4.1.8. I have it set to show new products added within the last 90 days on the home page only. Here is what I have so far:
1. Create file newest.php in the xcat home directory. PHP Code:
PHP Code:
3. Modify statement in the home_main.tpl template in the skin1/customer directory to read as follows: {elseif $main eq "catalog" && $current_category.category eq ""} {include file="customer/main/welcome.tpl" f_products=$f_products newproducts=$newproducts} 4. Create newest.tpl template in the /skin1/customer/main directory. {* $Id: newest.tpl,v 1.13 2002/05/20 06:55:20 lucky Exp $ *} {capture name=dialog} {if $newproducts ne ""} {include file="customer/main/products.tpl" products=$newproducts} {/if} {/capture} {include file="dialog.tpl" title="New Products" content=$smarty.capture.dialog extra="width=100%"} 5. Modify the welcome.tpl template in the /skin1/customer/main directory. {if $f_products ne ""} {include file="customer/main/featured.tpl" f_products=$f_products} {/if} {if $newproducts ne ""} {include file="customer/main/newest.tpl" newproducts=$newproducts} {/if} {if $f_products eq "" && $newproducts eq ""} <img src="{$ImagesDir}/customer_images/welcome.jpg" alt="" /> {/if} I hope this helps some of the xcart 4.1 sites. I make no promises that this code will work with your site; each environment is different and your code may function differently especially if it has already been moded. I can't provide any support for this mod. Install only if you have the resources to fix any problems that may occur.
__________________
X-Cart Gold v 4.1.10 PHP 5.2.4 MySQL 5.0.45 standard Apache/2.2.6 OS - Linux |
|||||||
|
#187
|
|||||||
|
|||||||
Re: Newest Products
After installing this mod all I get is the PHP file showing at the top of the home page
__________________
yages x-cart version 4.5.5 |
|||||||
#188
|
|||||||||
|
|||||||||
Re: Newest Products
Quote:
Did you use the zip file, or the mod directly above your post? They do two different things.
__________________
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 |
|||||||||
#189
|
|||||||
|
|||||||
Re: Newest Products
I have installed both mods. The php showed up on the mod directly above the post
Do you know how to make the product description and discounted prices show on the zipfile mod
__________________
yages x-cart version 4.5.5 |
|||||||
#190
|
|||||||||
|
|||||||||
Re: Newest Products
Quote:
Both mods? Don't you think that will be confusing? The one in the zip file is the one I use. It uses a template (newproducts.tpl) and is called on a separate page by putting a link to newproducts.php anywhere. I don't know about the other mod.
__________________
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 |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|