I'm using 1.5.5.2 version. I use featured products in homepage. I wanted to show random featured products.
It's a VQMOD. It works well but sometimes I see blank, empty products there.
You can see it in the attached image.
I tried to delete products with "closed" status. But there are still blank-empty products showing up.
Attachments
empty products.PNG (848 KiB) Viewed 3142 times
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Random Featured Products</id>
<version>1.0.0</version>
<vqmver>2.4.0</vqmver>
<author>RamonSC</author>
<file name="catalog/controller/module/featured.php">
<operation error="skip"><!-- v1.5.x -->
<search position="after">
<![CDATA[$products = explode(',', $this->config->get('featured_product'));]]>
</search>
<add>
<![CDATA[srand((float)microtime() * 1000000);
shuffle($products);]]>
</add>
</operation>
</file>
</modification>
Are all of the selected products from the featured module on the admin-end all contains images or some contains empty images inclusively?Resepu wrote:My VQMOD file is as following:Code: Select all
<?xml version="1.0" encoding="UTF-8"?> <modification> <id>Random Featured Products</id> <version>1.0.0</version> <vqmver>2.4.0</vqmver> <author>RamonSC</author> <file name="catalog/controller/module/featured.php"> <operation error="skip"><!-- v1.5.x --> <search position="after"> <![CDATA[$products = explode(',', $this->config->get('featured_product'));]]> </search> <add> <![CDATA[srand((float)microtime() * 1000000); shuffle($products);]]> </add> </operation> </file> </modification>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Actually there are almost a hundred featured products. It's very hard for me to look every one of them. But I don't think there is any empty image. I'm using a "admin_quickly_add_featured" VQMOD. I chose featured products by clicking these stars. You can see in the attached image.straightlight wrote:Are all of the selected products from the featured module on the admin-end all contains images or some contains empty images inclusively?Resepu wrote:My VQMOD file is as following:Code: Select all
<?xml version="1.0" encoding="UTF-8"?> <modification> <id>Random Featured Products</id> <version>1.0.0</version> <vqmver>2.4.0</vqmver> <author>RamonSC</author> <file name="catalog/controller/module/featured.php"> <operation error="skip"><!-- v1.5.x --> <search position="after"> <![CDATA[$products = explode(',', $this->config->get('featured_product'));]]> </search> <add> <![CDATA[srand((float)microtime() * 1000000); shuffle($products);]]> </add> </operation> </file> </modification>
Attachments
quick.PNG (71.02 KiB) Viewed 3137 times
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I can consider using any other extension if you can recommend any.straightlight wrote:Compare a selected product from the admin featured module with the same product that you'd see on the store-front end. One thing I do dislike about comparing is when products are being showed in shuffle mode. It hardens the troubleshooting a bit as it could require a bit more patience to find the source of the problem even though it may be ideal to show random products on the store-front end.
What I really want is to show randomly the products that I chose.
No problem Resepu. Followed are suggestions you could look into: http://www.opencart.com/index.php?route ... rch=random productsResepu wrote:I can consider using any other extension if you can recommend any.straightlight wrote:Compare a selected product from the admin featured module with the same product that you'd see on the store-front end. One thing I do dislike about comparing is when products are being showed in shuffle mode. It hardens the troubleshooting a bit as it could require a bit more patience to find the source of the problem even though it may be ideal to show random products on the store-front end.
What I really want is to show randomly the products that I chose.

Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 2 guests