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

Random Products - 2 Products Per Row - In Place of Featured

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-12-2002, 10:26 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

you would need to remove some code from the products.tpl this is covered in another post....http://forum.x-cart.com/viewtopic.php?t=1024&highlight=

thanks
__________________
ex x-cart guru
Reply With Quote
  #12  
Old 12-28-2002, 12:10 PM
 
deb deb is offline
 

Advanced Member
  
Join Date: Dec 2002
Location: California
Posts: 60
 

Default

I'm the new person here-abouts, but why couldn't you achieve the rotating/random product selection by defining a whole list of "featured products" and then display only a set number of them? (at random, of course)

Hmmm, now how would I do this?

deb
Reply With Quote
  #13  
Old 12-29-2002, 01:16 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

This could be done but the idea for this was to provide a random product from the complete catalogue without having to specify them as a featured product.
__________________
ex x-cart guru
Reply With Quote
  #14  
Old 12-29-2002, 04:54 AM
 
DogTags DogTags is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 96
 

Default

If you have a large db, do you think this could slow down the page generation pretty badly? I mean, what if you have like 50,000 items and each time a rand-type page is called, the script has to crank through the whole 50K. Perhaps there might be a way to define a group (as mentioned by deb) from which to select rand items. I'm just thinking of the time it's going to take to create the pages.
Reply With Quote
  #15  
Old 12-29-2002, 09:41 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

DogTags

On a big db you are right , this would take some processing to do this.

Another option would be (if you still wanted it sort of random) to set up some kind of rule that selected a range of products depending on the day of the week etc.

The file to amend would be the randoms.php file that I created.
__________________
ex x-cart guru
Reply With Quote
  #16  
Old 12-29-2002, 10:15 AM
 
DogTags DogTags is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 96
 

Default

Thanks, funkydunk.

Yeah, I figured as much. Maybe some items could be designated as "random" and then the rand.php file could select from that group. I dunno...
Reply With Quote
  #17  
Old 01-10-2003, 06:22 PM
 
mikew mikew is offline
 

Newbie
  
Join Date: Nov 2002
Posts: 6
 

Default

Any one tried this on the 3.3.x yet?
Reply With Quote
  #18  
Old 01-10-2003, 11:48 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

I haven't tried this on 3.3. yet but looking at it, there is no reason why it shouldn't work as the elements that I was using for this are not altered in 3.3
__________________
ex x-cart guru
Reply With Quote
  #19  
Old 01-12-2003, 07:03 AM
 
Jonny Jonny is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 67
 

Default

Hi All

I managed to do this on our front page, but cheated and used PHP inside the template.. (needed to get it running quickly )

http://www.overclock.co.uk/xcart

Please dont do any test orders, it isnt live yet but the emails are a pain

Any comments would be good aswell.
Reply With Quote
  #20  
Old 01-12-2003, 08:01 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Now I find a place to get a wifi card from !! Let me know when you are live cos I could do with a pcmia wifi card on the cheap.

Nice looking site and good mods. I often 'cheat' by using pure php - if it is what you know it works very well indeed. Xcart is great for running out of the box but some great mods can be put in by adding some special bits yourself.

Cheers
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 03:26 PM.

   

 
X-Cart forums © 2001-2020