Modify Layout on product page
My product page doesn't look very well.
Probably due to some space constraints (the product page has about 750/800 px) the "right part" goes under the "left part".
Is there a way to avoid it?
I would also to customize a little bit the product layout page in order to obtain this result (all the fields alligned on the left). Is it possibile?
I would also like to know if is possible to view the comment in a separate tab?
Thank you so much for your help.
Please Log in or Create an account to join the conversation.
For the right area going under the image, you can look here:
www.hikashop.com/en/forum/4-how-to/48858...t-inconsistency.html
For the price alignement, you can look here:
www.hikashop.com/en/forum/2-general-talk...uct-detail-page.html
For the tabs, you will have to do something similar to this:
www.hikashop.com/fr/forum/4-how-to/52260...on-product-page.html
Please Log in or Create an account to join the conversation.
I was able to modify the first 2 things but I have some problem with the last one.
I modified the product / show_default.php as follow
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part">
{tab=Tab Title 1}
<div id="hikashop_product_description_main" class="hikashop_product_description_main">
<?php
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
?>
</div>
<span id="hikashop_product_url_main" class="hikashop_product_url_main">
<?php
if (!empty ($this->element->product_url)) {
echo JText :: sprintf('MANUFACTURER_URL', '<a href="' . $this->element->product_url . '" target="_blank">' . $this->element->product_url . '</a>');
}
?>
</span>
{tab=Tab Title 2}
<?php
$this->setLayout('show_block_product_files');
echo $this->loadTemplate();
?>
<div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing">
<?php
if($this->params->get('show_vote_product')){
$js = '';
$params = null; //Params already existing in the previous getLayout('vote', ...)
echo hikashop_getLayout('vote', 'listing', $params, $js);
?>
</div>
<div id="hikashop_product_vote_form" class="hikashop_product_vote_form">
<?php
$js = '';
$params = null;
echo hikashop_getLayout('vote', 'form', $params, $js);
}
?>
</div>
{/tabs}
</div>
i also modified the product / show.php as follow
<form action="<?php echo hikashop_completeLink('product&task=updatecart'); ?>" method="post" name="hikashop_product_form" enctype="multipart/form-data">
<?php
$this->setLayout($this->productlayout);
/*
Old code - Stefano
echo $this->loadTemplate();
*/
echo JHTML::_('content.prepare',$this->loadTemplate());?>
but unfortunately it doen't work, did i miss something?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I thought it depends by the Template (it is a custom template made with Artisteer 3.1) but with the default Joomla template (Beez2) I have the same problem.
Do you have other ideas?
If you want I may privately send you the URL, username and password to check the site backend.
Please Log in or Create an account to join the conversation.
www.hikashop.com/en/contact-us.html
Please Log in or Create an account to join the conversation.
I sent to you all the information needed.
I'm really curious to know the reason because it doesn't work.
Please Log in or Create an account to join the conversation.
extensions.joomla.org/extensions/news-di.../articles-tabs/14493
Please Log in or Create an account to join the conversation.
Thanks a lot
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if(!empty($this->fields)){
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
}
Just move it inside your tab tags with potentially <?php and ?> tags around it and it will be in the tabs.
Please Log in or Create an account to join the conversation.
I did it, I also had to move that part in the bottom area
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part">
<?php // Stefano Start - Le 5 righe di cui sopra sono state spostate qui ed è stata aggiunta la stringa per abilitare la TAB?>
<?php
if(!empty($this->fields)){
?> {tab=Caratteristiche|grey} <?php
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
}
?>
<?php // Stefano End ?>
I'm falling in love with Hikashop!!! :laugh: :laugh:
Do you know if is possible to move the small picture of the product to the right of the image? (see my previous message).
Thanks as usual!
Please Log in or Create an account to join the conversation.
.hikashop_main_image_div{
width: 60%;
float: left;
}
.hikashop_small_image_div{
width: 20%;
float: right;
}
Please Log in or Create an account to join the conversation.
I swear this is my last question...
how could I set a fix width for the name of the custom fields?
I tried to insert a margin in .hikashop_product_custom_name but the space is different between the varoius products
.hikashop_product_custom_name{
font-weight:bold;
/* Stefano Start */
/* Spazi per caratteristiche */
margin-right:50px;
/* Stefano End */
}
I would like to have the same width and different height depending on the content of the relative field.
Please Log in or Create an account to join the conversation.
#hikashop_product_custom_info_main td.key{ width 100px; }
Please Log in or Create an account to join the conversation.
when you set a width the system automatically splits the table in 2 parts of the same width.
I tried to increase/decrease the pixels and also to use the % but it isn't possible to set the left part and the right part with different width.
Attachment Example.png not found
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
the web site is www.madeinvino.com
go to "La nostra cantina"
and the choose a product.
thanks
Please Log in or Create an account to join the conversation.
#hikashop_product_custom_info_main td{
border-bottom: 1px solid #CCC;
width: 100px;
}
but I told you to add:
#hikashop_product_custom_info_main td.key {
width: 100px;
}
That's why it's not working like you want.
Please Log in or Create an account to join the conversation.
Thank you!
Please Log in or Create an account to join the conversation.