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

Random Image or Random Products - Category Specific

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 06-22-2007, 06:51 PM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 481
 

Default Re: Random Image or Random Products - Category Specific

is there a mod to randomize the featured products? also to only randomize it every 24 hours or so? I hacked my featured products to sort by RAND but each page refresh causes the featured products to randomize. I keep it only b/c it keeps the main page changing.... however, i'd like a more user friendly randomizer for the featured products
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #32  
Old 09-21-2007, 01:12 AM
 
inmotionmedia inmotionmedia is offline
 

Newbie
  
Join Date: Jun 2007
Posts: 8
 

Default Re: Random Image or Random Products - Category Specific

Hey you say in the forum that you hacked the random function for the featured products.
How and where is that possible? I want to show random products on the featured products list limited by an number. It may change every time that's no problem


tnx
__________________
In Motion Media
Reply With Quote
  #33  
Old 10-25-2007, 11:51 AM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Default Re: Random Image or Random Products - Category Specific

There's a problem with this mod. The quantity field is not filled with a number, by default. The user is unable to put the item in the shopping cart from the buy now button.


Any ideas to fix???
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote
  #34  
Old 10-25-2007, 05:05 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Random Image or Random Products - Category Specific

I see by your sig that you are using X-Cart version 4.1.x - if you look at the date of the original post, it was in 2005. This was intended for version 4.0.x - not 4.1.x....

Quote:
Originally Posted by shopccp
There's a problem with this mod. The quantity field is not filled with a number, by default. The user is unable to put the item in the shopping cart from the buy now button.


Any ideas to fix???
Reply With Quote
  #35  
Old 10-26-2007, 02:25 AM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Default Re: Random Image or Random Products - Category Specific

OK. Sorry. So this mod is unsupported in 4.1.x

It seems to be a simple fix. Since it works in your ver 4.0.x. How hard is it to give the quantity field a number to add the item to the cart from the buy now button. Just exactly how the x-cart team did for the featured products - it should be the same for the random products.
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote
  #36  
Old 10-26-2007, 03:00 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Random Image or Random Products - Category Specific

Well - I agree but I have not had the time to look through this code again to make it work for 4.1.x.

In giving it a quick look the first thing that you need to look at is the product array that is being built and make sure that the "min_amount" has a value. The buy_now template uses this to determine what to do with qty. If "min_amount" is empty then you will need to look at the function used to do the search.

Quote:
Originally Posted by shopccp
OK. Sorry. So this mod is unsupported in 4.1.x

It seems to be a simple fix. Since it works in your ver 4.0.x. How hard is it to give the quantity field a number to add the item to the cart from the buy now button. Just exactly how the x-cart team did for the featured products - it should be the same for the random products.
Reply With Quote
  #37  
Old 10-26-2007, 09:23 AM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Default Re: Random Image or Random Products - Category Specific

The value is already assigned at 1. The featured products uses the same buy now template as the random products.
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote
  #38  
Old 10-26-2007, 12:18 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Talking Re: Random Image or Random Products - Category Specific

http://forum.x-cart.com/showthread.php?t=34157
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #39  
Old 10-07-2008, 01:20 PM
 
mpcommercial mpcommercial is offline
 

Member
  
Join Date: Dec 2004
Posts: 28
 

Default Re: Random Image or Random Products - Category Specific

Hello:

Has anyone gotten this great mod to work in version 4.1x?
__________________
Lorena Martinez
X-Cart v4.3.2
www.lapislazuliworld.com
Reply With Quote
  #40  
Old 05-25-2011, 03:37 PM
 
Makey2u Makey2u is offline
 

Member
  
Join Date: Dec 2010
Posts: 20
 

Default Re: Random Image or Random Products - Category Specific

anyone got this for 4.4.x??? working
oh man i would drool...
__________________
4.4.x
Testing store.
On windows
www.fashionwithin.com
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 12:14 PM.

   

 
X-Cart forums © 2001-2020