<?xml version="1.0" encoding="utf-8"?> 
<modification> 
 <name><![CDATA[So Placeholder]]></name> 
 <code>ocmod-soplaceholder</code> 
 <version><![CDATA[1.0.0]]></version> 
 <author><![CDATA[OpencartWorks]]></author> 
 <link>http://www.OpencartWorks.com</link> 
 
<!--========Catalog/controller/product=============--> 
 <file path="catalog/controller/product/category.php"> 
  <operation> 
	 <search><![CDATA[$image = $this->model_tool_image->resize('placeholder.png', $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height'));]]></search> 
	 <add position="replace"><![CDATA[$image = $this->model_tool_image->resize($placeholder, $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height'));]]></add> 
 </operation>
 <operation > 
	 <search ><![CDATA[// Set the last category breadcrumb]]></search> 
	 <add position="before"><![CDATA[ 
		$placeholder='placeholder.png';
		if($this->soconfig->get_settings('placeholder_status')){
			$placeholder = $this->soconfig->get_settings('placeholder_img');
		}else{
			$placeholder = 'placeholder.png';
		}
	 ]]> 
	 </add> 
 </operation> 
  <operation > 
	 <search ><![CDATA[$data['thumb'] = '';]]></search> 
	 <add position="replace"><![CDATA[ 
		$data['thumb'] = $this->model_tool_image->resize($placeholder, $this->config->get('theme_' . $this->config->get('config_theme') . '_image_category_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_category_height'));
	 ]]> 
	 </add> 
 </operation>
 <operation > 
	 <search ><![CDATA[$data['categories'][] ]]></search> 
	 <add position="before"><![CDATA[ 
	 if ($result['image']) $image = $this->model_tool_image->resize($result['image'], $this->config->get('theme_' .$this->config->get('config_theme') . '_image_category_width'), $this->config->get('theme_' .$this->config->get('config_theme') . '_image_category_height')); 
	 else $image = $this->model_tool_image->resize($placeholder, $this->config->get('theme_' .$this->config->get('config_theme') . '_image_category_width'),$this->config->get( 'theme_' .$this->config->get('config_theme') . '_image_category_height')); 
	 ]]> 
	 </add> 
 </operation> 
 
 <operation> 
	 <search ><![CDATA[$data['categories'][]]]></search> 
	 <add position="after"><![CDATA[ 'thumb' => $image,]]></add> 
 </operation> 
 

 
 </file> 
 

</modification> 