![]() |
Re: Random Image or Random Products - Category Specific
If you have the product id then you have the URL. the URL is product.php?productid={$productid} Look at the template, what is the code for the link look like?
|
Re: Random Image or Random Products - Category Specific
I'm using the exact template as provided in this thread, but a href is blank in the rendered HTML.
Code:
[random.tpl] Do we need to pass more parameters herein? and customer/main/products.tpl is the stock xcart file without any mods... |
Re: Random Image or Random Products - Category Specific
Code:
<a href="{$product.alt_url|default:$product.page_url|amp}" class="product-title">{$product.product|amp}</a> the above is the a href code from products.tpl and by changing it to (and create a new template file so not to wreck products.tmp; e.g. products_random.tpl: Code:
<a href="product.php?productid={$product.productid}" class="product-title">{$product.product|amp}</a> This now fixes the problems. One other thing is, this only display the product name (and link) and it's thumbnail, but it doesn't display the price, buy now button, etc... |
All times are GMT -8. The time now is 07:22 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.