Post by crazypetfood » Fri Jul 06, 2012 5:05 pm

I originally replied to someone elses thread about VQMod not working, it is located here: http://forum.opencart.com/viewtopic.php ... 61#p310161

It is somehting to do with Vqmod, I have hard coded the random products, now my cart does display random products. This is for version 1.5.x of OC

I have followed what ohers have said in the thread listed above before you ask ;)

Details of temporary workaround....

File: catalog/controller/module/latest.php

Download and create a copy, call it latest.php.original or similar

Edit the file, and do...

Search for: 'limit' => $setting['limit']
Replace with: 'limit' => ($setting['limit'] * 10)

Search for: $results = $this->model_catalog_product->getProducts($data);
Add after:
srand((float)microtime() * 1000000);
shuffle($results);
$results = array_slice($results, 0, $setting['limit']);

Save and re-upload to the same location on your server, replace or rename original file, hit CTRL + F5 twice, it should work as it does for me :)

This info has been taken from the Quphoria vqmod .xml file called: Randomize_Latest_Products_NoStrain.xml

SEO Essex
SEO Services London
Website SEO Essex


New member

Posts

Joined
Sun Jun 12, 2011 5:25 pm
Who is online

Users browsing this forum: No registered users and 13 guests