eCommerce construction > How-to questions
how to set "random display product" at main page category block
(1/1)
JIMMY:
hi sir/madam.
i running eCommerce website. i notice that the "category special" always displayed the same products at the main page. how to set it to random display product? mean every time i refresh my page. tat category special will automatic display different products.
thanks guy.
abantecart:
Are you showing specials block? You will need to code random section into promotions class for the database select.
See this method:
https://github.com/abantecart/abantecart-src/blob/a9df918cee40cc7f32e68ee136a683dc30632f5c/public_html/core/engine/promotion.php#L337
JIMMY:
May i know where to put the coding? I need to create a new "promotion.tpl" and put into ../storefront/view/default/template/pages/product? Thanks
Navigation
[0] Message Index
Go to full version