Customization lay out

  • Posts: 48
  • Thank you received: 1
9 years 8 months ago #194371

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4
-- PHP version -- : 5.4

Hi,

According to this page www.hikashop.com/support/documentation/1...-display.html#layout

The block with : show_block_product_files should be in the file product/show_default

However I can not find that piece of code there. I need to get the custom fields from the tab to the part of the right of the product page. Just next to the image below the vote mini ...

Is the link above still valid? Or is it old and am I looking in the wrong direction?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #194373

Hello,
Yes, the link is still valid, if you want to edit that part, you'll just have to search for the "show_block_product_files" file of the "Product" view of your front-end template via "Hikashop->Display->Views".
Also, note that if you want to move some part of your product page, the best solution will probably be to directly edit the "show_default" file of your "product" view via "Hikashop->Display->Views".

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

  • Posts: 48
  • Thank you received: 1
9 years 8 months ago #194938

Hi ,

I tried to move it but did not succeed so far.

I have use the tabbed style product page. So now the specifications are in the tab specifications. I would like to have them on the right side of the image. Just like here demo.hikashop.com/index.php/en/hikashop/...l-optimisme-voltaire
This is the non tabbed lay out.

Can you tell me please what steps I have to take to get it like this? I tried many things but did not work out.
Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 8 months ago #194948

Hi,

Why not simply use the "default" product page layout ?

If you want to use the tabular layout, you would have to move the code below in the file "show_tabular" via the menu Display>Views:

<div class="hikashop_tabs_content" id="hikashop_show_tabular_specification">
		<?php

			$this->setLayout('show_block_dimensions');
			echo $this->loadTemplate();
			if(!empty($this->fields)){

				$this->setLayout('show_block_custom_main');
				echo $this->loadTemplate();
			}
		?>
		</div>
and put it for example before the line:
<span id="hikashop_product_id_main" class="hikashop_product_id_main">

and remove the line:
<li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_specification');" href="javascript:void(0);"><?php echo JText::_('SPECIFICATIONS');?></a></li>

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

  • Posts: 48
  • Thank you received: 1
9 years 8 months ago #195133

Hi,

Thanks for your reply.
I tried the default lay out but I need to have some tabs to give all information in a proper way.

I did all steps that you gave above but I still do not see the info next to the image. The tab is gone but the info is still not there.

I placed this part:

<div class="hikashop_tabs_content" id="hikashop_show_tabular_specification">
		<?php
			$this->setLayout('show_block_dimensions');
			echo $this->loadTemplate();
			if(!empty($this->fields)){
				$this->setLayout('show_block_custom_main');
				echo $this->loadTemplate();
			}
		?>
		</div>
Just beneith this part :
	<div id="hikashop_product_vote_mini" class="hikashop_product_vote_mini">
		<?php
		if($this->params->get('show_vote_product') == '-1'){
			$this->params->set('show_vote_product',$config->get('show_vote_product'));
		}
		if($this->params->get('show_vote_product')){
			echo $layout_vote_mini;
		}
		?>
	</div>
Also in the same file the show_tabular.php file ... do I miss something?

Best

Last edit: 9 years 8 months ago by Jerome. Reason: [code] is nice

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #195174

Hi,

Are you sure that you have either dimensions or custom product fields filled for your product ?
If the product don't have custom product fields with value or dimensions filled, so nothing is displayed.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum