I know you're experimenting with the plugin - the full list of shortcodes can be found here. Adding a special featured products "section" to display random Featured Products is straight forward; in pto_featured/php look for the following code at line 25:
if ($section)
...snd REPLACE with:
if ($section=="random")
{
$sql = "SELECT name,1 AS sequence FROM `".$pto_config_databaseTablePrefix."products` ORDER BY RAND() LIMIT 3";
}
elseif ($section)
...and with that in place you can then use the shortcode:
Hi Paul,
I know you're experimenting with the plugin - the full list of shortcodes can be found here. Adding a special featured products "section" to display random Featured Products is straight forward; in pto_featured/php look for the following code at line 25:
if ($section)
...snd REPLACE with:
if ($section=="random")
{
$sql = "SELECT name,1 AS sequence FROM `".$pto_config_databaseTablePrefix."products` ORDER BY RAND() LIMIT 3";
}
elseif ($section)
...and with that in place you can then use the shortcode:
[pto featured="random"]
...to display 3 random products.
Cheers,
David.
--
PriceTapestry.com