having problem about displaying somthing in hikashop in a new template

  • Posts: 56
  • Thank you received: 0
8 years 5 months ago #258903

-- HikaShop version -- : 2.6.5

hi hikashop is not display product on my template. when i click on the category listing is not showing the categories and this about product listing and user acount too. but it's working on joomla protostar default template .

Please Log in or Create an account to join the conversation.

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #258908

Hi,

Then try renaming the file templates/YOUR_TEMPLATE/html/com_hikashop/category/listing.php
That should fix the problem.
I would also recommend contacting your template provider to notify them about the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 56
  • Thank you received: 0
8 years 5 months ago #258993

hello i am the provider of the template please help that what should i do with the code

Please Log in or Create an account to join the conversation.

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #258996

Hi,

Since HikaShop 2.5 some changes were necessary in that view file towards the end of it:

if(!$this->module){
	// If $params->hk_product > use the menu settings
	$data = $this->params->get('data');
	if(isset($data->hk_product) && is_object($data->hk_product)){
		$js = '';
		$empty='';
		jimport('joomla.html.parameter');
		$params = new HikaParameter($empty);
		foreach($data->hk_product as $k => $v){
			$params->set($k,$v);
		}
		$main_div_name = 'hikashop_category_information_module_'.$params->get('id');
		$params->set('main_div_name',$main_div_name);
		echo '<div class="hikashop_submodules" style="clear:both">'.hikashop_getLayout('product', 'listing', $params, $js).'</div>';
	}
	// Else use the default module system
	else if(!empty($this->modules)){
		$html = '';
		jimport('joomla.application.module.helper');
		foreach($this->modules as $module){
			$html .= JModuleHelper::renderModule($module);
		}
		if(!empty($html)){
			echo '<div class="hikashop_submodules" style="clear:both">'.$html.'</div>';
		}
			//display the modules:
				//all products with pagination
				//random products
				//best sellers
				//new products
				//best reviewed
	}
}
So you should update the version of that view file override in order to base your changes on the latest version of the view file. Then it will work properly. The part with hk_product is the new system to display the products listing while the part with $this->modules is the old way of doing things and I suppose that in your version, you only have the old way.

The following user(s) said Thank You: ebrahimahamdi

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum