- Posts: 39
- Thank you received: 0
Rearrange Product Page
1) I would like to rearrange the product image so that it's centered and on top of the price, add to cart, etc (but still below the title).
2) I would like to add some padding around the product description at the bottom so that it doesn't stretch across the entire screen.
Your help on this is greatly appreciated!!! Thanks in advance!
Please Log in or Create an account to join the conversation.
Padding can be added by adding some CSS in the front end CSS file that you can edit via the Display tab of the configuration.
More specifically:
#hikashop_product_description_main { padding: 50px; }
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The image block of code is (for 1.5.4):
<div id="hikashop_product_image_main" >
<div id="hikashop_main_image_div" class="hikashop_main_image_div">
<?php
$image = null;
if(!empty($this->element->images)){
$image = reset($this->element->images);
}
if(!$this->config->get('thumbnail')){
if(!empty($image)){
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
}
}else{
$height = $this->config->get('thumbnail_y');
$style='';
if(!empty($this->element->images) && count($this->element->images)>1){
if(!empty($height)){
$style=' style="height:'.($height+5).'px;"';
}
} ?>
<div class="hikashop_product_main_image_thumb" id="hikashop_main_image_thumb_div" <?php echo $style;?> >
<?php echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"'); ?>
</div>
<?php }
?>
</div><div id="hikashop_small_image_div" class="hikashop_small_image_div"><?php
if(!empty($this->element->images) && count($this->element->images)>1){
foreach($this->element->images as $image){
echo $this->image->display($image->file_path,'hikashop_main_image',$image->file_name,'class="hikashop_child_image"');
}
}
?>
</div>
</div>
The price block of code is:
<span id="hikashop_product_price_main" class="hikashop_product_price_main">
<?php
if($this->params->get('show_price')){
$this->row =& $this->element;
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
</span>
Please Log in or Create an account to join the conversation.
See the link here:
bledsoe.cloudaccess.net/lavina-tooling/polish/nato.html
Thanks!
Please Log in or Create an account to join the conversation.
.hikashop_product_right_part {
float: left;
padding-left: 1px;
}
to:
.hikashop_product_right_part {
width: 150px;
margin: auto;
}
Please Log in or Create an account to join the conversation.
/* product listing */
.hikashop_product_item_left_part{
text-align:center;
}
.hikashop_product_right_part {
width: 150px;
margin: auto;
}
.hikashop_product_image{
padding-bottom: 2px;
}
It still looks the same:
bledsoe.cloudaccess.net/lavina-tooling/polish/nato.html
Please help! Thanks!
Please Log in or Create an account to join the conversation.
.hikashop_product_right_part {
float: left;
padding-left: 1px;
}
Please Log in or Create an account to join the conversation.
I am also interest in rearranging the product page to look similar to what I currently have at my site, for example:
Product page link
I have seen the views section, but my concern is how this will affect potential upgrade if I start reordering php files? Is that advisable or should I stick to just css changes?
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
.hikashop_product_right_part {
float: left;
padding-left: 1px;
}
to:
.hikashop_product_right_part {
width: 150px;
margin: auto;
}
it now reads:
/* product listing */
.hikashop_product_item_left_part{
text-align:center;
}
.hikashop_product_right_part {
width: 150px;
margin: auto;
}
.hikashop_product_image{
padding-bottom: 2px;
}
This is the only listing of ".hikashop_product_right_part" in the CSS. I even tried removing this, but it didn't work. Please help
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
.hikashop_product_right_part{
float:left;
padding-left:1px;
}
in your CSS file: bledsoe.cloudaccess.net/media/com_hikash.../frontend_custom.css
Here:
hikashop_product_main_image_thumb{
margin-bottom:5px;
}
.hikashop_product_right_part{
float:left;
padding-left:1px;
}
.hikashop_product_bottom_part{
clear:both;
width:100%;
}
.hikashop_product_characteristic_chooser{
text-align:center;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.