Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
IN:
Code: Select all
/catalog/controller/module/featured.php
Code: Select all
foreach ($products as $product_id) {
Code: Select all
$products = array_slice($products, 0, 5);
However, if you want to do this then maybe you also want to show some different products each time and then in which case instead of adding:
Code: Select all
$products = array_slice($products, 0, 5);
Code: Select all
shuffle($products);
$products = array_slice($products, 0, 5);
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
It wasn't really answered in my own question and that would be pretty obvious anyway .... This might explain my questionsnappyfish wrote:The answer is in your own question.
It seems that my post was moved by a moderator from here:
http://forum.opencart.com/viewtopic.php ... 21#p193021
So using Qphoria's mod, I wanted to have say 30 featured items in admin, but randomly show a set limit of 8 in the front end. So rather than having the same 6 items show in different positions, i'd like to have 6 random featured products from the 30 show.
It now works a treat!
Thanks for your help guys
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
hello...is working for me on OC 1.5.1.3Johnathan wrote:There's no way to do this through the admin currently. Here's a quick edit that can limit the number displayed in the module to 5. (Replace that with whatever number you want.)
IN:BEFORE:Code: Select all
/catalog/controller/module/featured.php
ADD:Code: Select all
foreach ($products as $product_id) {
Code: Select all
$products = array_slice($products, 0, 5);
Baju Muslim Baju Pria Baju Anak Baju Korea Sparepart Printer Baju Muslim JNE Surabaya
Users browsing this forum: No registered users and 34 guests