- Posts: 39
- Thank you received: 0
Title Missing from Product Pages
Everything was working fine until recently. I have been adding new products without any problem, and then for some reason, every product that I added today is missing the product title at the top of the product page. I haven't made any changes to the code in any way in the meantime, so I don't think that's the issue.
Here is a page that I added last week:
bledsoe.cloudaccess.net/lavina-tooling/polish/nato.html
Here is a page that I just added today (title missing at the top):
bledsoe.cloudaccess.net/lavina-machines/edgers/lavina-7.html
I've played around with this all day, and I can't seem to figure out what I'm doing wrong... Help!
Thanks!
Please Log in or Create an account to join the conversation.
The problem probably comes from the span processing of your template. You should deactivate it and that will solve the problem.
If you use a Gantry based template, in the Gantry Control Panel for that template you should find the option called "Build Title Spans" that you should turn off.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't have any other explanation.
Please Log in or Create an account to join the conversation.
Thanks!
Please Log in or Create an account to join the conversation.
There is a delete icon on the listing for that. If then you see all the product titles (which should be the case) it means that the problem comes from the customization you did.
Please Log in or Create an account to join the conversation.
It took a while, but I backed up and re-entered all of my customization. I'm not sure where I originally went wrong with the code, but it's corrected now. Thanks for the help!!!
Please Log in or Create an account to join the conversation.
That cannot be done via CSS.You need to edit the file "show" of the view "product" via the menu Display>Views and move the image block of code before the price block of code.
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.
Did you change something around the lines below in that file ?
<span id="hikashop_product_name_main" class="hikashop_product_name_main">
<?php
echo $this->element->product_name;
?>
</span>
Please Log in or Create an account to join the conversation.
<span id="hikashop_product_name_main" class="hikashop_product_name_main">
<?php
echo $this->element->main->product_name;
?>
</span>
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>
Please Log in or Create an account to join the conversation.
Please revert that modification and it will work properly.
Please Log in or Create an account to join the conversation.
Thanks!!!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.