Post by Shinpe » Thu Aug 23, 2018 7:19 pm

Hello guys,
I'm using journal2 Theme on opencart 2.0.1 and i would like to know if you can help me with a mod.
I have a side carousel with random products poping up but i have some products without image.
How can i prevent those products from appearing on the carousel?
Have in mind that i only want them to be removed from the carousel and not from the website itself.

Best Regards,
Levi Barros

New member

Posts

Joined
Wed Jun 24, 2015 1:03 am

Post by straightlight » Fri Aug 24, 2018 6:24 pm

If you are using an extension from the Marketplace or from a 3rd party website, contact the extension developer to resolved this issue or create a new service request in the Commercial Support section of the forum to get this done as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Shinpe » Fri Aug 24, 2018 7:14 pm

I got it to work.
You just need to go to catalog/controler/module and search for journal carousel.
Around line 358 you add this code

Code: Select all

if ($product['image']) {
					$image = $this->model_tool_image->resize($product['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'));
				} else {
					continue; }
and its done.

New member

Posts

Joined
Wed Jun 24, 2015 1:03 am
Who is online

Users browsing this forum: No registered users and 107 guests