| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Random Product Image | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
I have searched around, and it seems like the only decent version of a random product image script, is found here: http://forum.x-cart.com/viewtopic.php?t=4344
The post is well over a year old, and it doesn't run on 4.0.16. Are there any random image scripts that are working? I want a random image script that will randomly grab the image on the product page.
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
http://forum.x-cart.com/viewtopic.php?t=6321&highlight=random+image
also its best to add to the end of the original thread then start a new one on the same subject
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
#3
|
|||||||
|
|||||||
|
The link you posted only gets a random number, doesn't get a random image.
I went ahead and replied to the 1+ year old post.
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
ive used this myself and it creates a random filename such as 1.gif, 2.gif etc
just name you images like that
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
#5
|
|||||||
|
|||||||
|
So have duplicate images of around an extra 100MB? It just seems more logical to grab a random image name from the database. You won't have a duplicate image, and you don't have to do anything with the code after you add more images.
I didn't think it would be so hard to do. I figured someone with little php skills could create something that works.
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
#6
|
|||||||||
|
|||||||||
|
didnt think you wanted a random image from the database.
search for a random products mod and adapt that
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
#7
|
|||||||
|
|||||||
|
I searched in the mod forum for "random and mod" and the only one I saw I already replied in.
Reference >> http://forum.x-cart.com/viewtopic.php?t=4344
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
#8
|
|||||||
|
|||||||
|
It doesn't appear that mod is being supported anymore. If anyone has a solution I am still interested in this!
__________________
Product: X-Cart Gold Current version: 4.0.14 Additional Mods: X-Affiliate |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||