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

Newest Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #231  
Old 06-08-2008, 09:46 AM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Re: Newest Products

Never mind, got it. I was looking in the wrong place.

Thanks
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #232  
Old 06-08-2008, 04:47 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Newest Products

Did you get it to work .. It should like like this except for I change the dialog box to fit my shop

http://www.lingerieblowout.com/newproducts.php
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #233  
Old 06-08-2008, 07:00 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Re: Newest Products

well, no I could not get it to look the way I wanted so I went with another mod which works great for me. The only sad thing is I found it to late after I bought the other one. O well at lease I am happy now and can move on to something else. Thanks for your help though.
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #234  
Old 06-10-2008, 02:55 PM
 
weston weston is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 42
 

Default Re: Newest Products

i have this up and running fine except that the quantity pull down box isn't working at all. Any tips on how i can fix this?
__________________
http://obeygiant.com/store/
4.1.9
Reply With Quote
  #235  
Old 07-08-2008, 01:27 PM
 
weston weston is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 42
 

Default Re: Newest Products

bump for help?
__________________
http://obeygiant.com/store/
4.1.9
Reply With Quote
  #236  
Old 07-23-2008, 05:04 AM
 
craven craven is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 50
 

Default Re: Newest Products

I noticed a few of you got the "Newest Products" to show on the home page. I get the " No new products have been listed within timeframe you specified " every time I try to do it.

Did I overlook this in the thread?

Thanks
__________________
Version 4.3.2
Reply With Quote
  #237  
Old 07-27-2008, 12:48 PM
 
weston weston is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 42
 

Default Re: Newest Products

Quote:
Originally Posted by weston
bump for help?

I have fixed my problem, i have a custom mod and i needed to add:

PHP Code:
// newproducts .. needed for quantity to work on newproducts module
    
$fields[] = "$sql_tbl[products].min_amount";
    
$fields[] = "$sql_tbl[products].max_amount"

to include/func/func.product.php

finally working, and you can see it in action at:
http://obeygiant.com/store/newproducts.php
__________________
http://obeygiant.com/store/
4.1.9
Reply With Quote
  #238  
Old 08-14-2008, 05:35 PM
  betty4's Avatar 
betty4 betty4 is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 75
 

Default Re: Newest Products

I've tried it on my version 4.0.17. There is no such file as include/func/func.products.php as indicated:

Quote:
Edit $xcart_dir/include/func/func.product.php

FIND (approx line 363):

$fields[] = "$sql_tbl[products].productcode";
$fields[] = "$sql_tbl[products].avail";


Add AFTER:

// newproducts .. needed for quantity to work on newproducts module
$fields[] = "$sql_tbl[products].min_amount";

So I located /include/func.php and added red line:

#
# Generate products availability condition
#
if ($config["General"]["unlimited_products"]=="N" && (($current_area == "C" || $current_area == "B") && $config["General"]["disable_outofstock_products"] == "Y"))
$avail_condition = " AND $sql_tbl[products].avail>0 ";
else
$avail_condition = "";

$select_query = "SELECT $sql_tbl[products].productid, $sql_tbl[products].product, $sql_tbl[products].productcode, $sql_tbl[products].avail, $sql_tbl[products].min_amount, MIN($sql_tbl[pricing].price) AS price";


I followed all other installation instructions, which seem universal to x-cart then opened /newproducts.php url in browser to see what would return and the newest products page was blank nothing delivered.

I cannot figure out what is missing to have a query and get of new product data. Not ready to upgrade store to latest version as it is actively patronized in current state and can't afford to be down for maintenance for longer than a couple of hours. Any coding ideas?
__________________
Was 4.0.17 Gold w/3rd party modules
Now 4.5.5 Gold with core modules
Reply With Quote
  #239  
Old 08-15-2008, 04:46 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Newest Products

This is a pretty old thread, and has gone through several versions. I had it working fine in versions 4.0.14 to 4.0.19, and now in 4.1.10. The solution is in this thread, but perhaps you should begin at the beginning and find where your particular version is addressed.

As for the blank page, it could be permissions are not set correctly, or just that you need to clear your templates cache.
__________________
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
  #240  
Old 08-15-2008, 12:12 PM
  betty4's Avatar 
betty4 betty4 is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 75
 

Default Re: Newest Products

Quote:
Originally Posted by JWait
This is a pretty old thread, and has gone through several versions. I had it working fine in versions 4.0.14 to 4.0.19, and now in 4.1.10. The solution is in this thread, but perhaps you should begin at the beginning and find where your particular version is addressed.

Yes. It is an old thread with many many transitions. Assume I didn't weed through the thread at least 3-4 times already. Could you perhaps direct me to the point of thread #XXX aahaaa or offer a useful answer for 4.0.17?
__________________
Was 4.0.17 Gold w/3rd party modules
Now 4.5.5 Gold with core modules
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 04:02 PM.

   

 
X-Cart forums © 2001-2020