Post by crazymaster » Thu Jan 24, 2013 5:39 am

I have added:

Code: Select all

    <?php if ($thumb) { ?>
       <img src="<?php echo $thumb; ?>" />
     <?php } ?>
in modules/category.tpl

but i dont know what to add in: controller/category.php


It gives me error:

Code: Select all

Notice: Undefined variable: thumb in /home/crazymas/public_html/TUNINGMYSTYLE.COM/catalog/view/theme/izistore/template/module/category.tpl on line 

Then i added:

Code: Select all

	  
			if ($category_info['image']) {
				$this->data['thumb'] = $this->model_tool_image->resize($category_info['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
			} else {
				$this->data['thumb'] = '';
			}
So it gave me:

Code: Select all

Notice: Undefined variable: category_info in /home/crazymas/public_html/TUNINGMYSTYLE.COM/catalog/controller/module/category.php on line 22


If somebody can help me, drop me message or/and find me in skype: crazy-master-jokera

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by rupaknepali » Fri Jan 25, 2013 11:10 pm


Rupak Nepali
webocreation.com@gmail.com
http://webocreation.com
Enjoy! Tips and tricks as well as free module.


Active Member

Posts

Joined
Mon Apr 25, 2011 7:04 pm

Post by crazymaster » Fri Feb 15, 2013 1:31 am

you really didnt helped me, because i am not sure what to do :)

please give me the code ?
occustomize wrote:Hi,

You need to get the array values from controller file 'thumb' field.

Then declare that var in to the controller file for ex) Check the categort name How Its declare.

if ($category_info['image']) {
$this->data['thumb'] = $this->model_tool_image->resize($category_info['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
} else {
$this->data['thumb'] = '';
}


category_info is the array for getting category values in model/category (Select Sql Command).Check it and confirm its select image value from database.

Thanks

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by joeymagsino » Fri Feb 15, 2013 3:39 pm

Just my 2 cents. :) Please note that you are in commercial support.

Newbie

Posts

Joined
Thu Apr 05, 2012 1:21 pm
Who is online

Users browsing this forum: No registered users and 20 guests