| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
A Random Product Button! | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
A Random Product Button!
Simple! I just spent the last hour figuring out how to do something that I was surprised not to have found on the forums.
I made a button that when clicked, sends the customer to a random product page. Thats it. Dead simple. All you have to do is make a new file, randomProduct.php in your xcart root dir containing the following: Code:
And then wherever you would like the button on your site, use the following in any .tpl: Code:
This works on my 4.0.18 install. Enjoy. |
|||||||
|
|||
X-Cart forums © 2001-2020
|