Product description on top of product page.

  • Posts: 10
  • Thank you received: 0
9 years 11 months ago #215181

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hi there. First of all thank you for Hikashop.

I'm trying to get the product description on top of my product page aboven te product image.
Now my product description is way back down on the bottom of the page

I read something on this board about changing the product / listing_img_desc.php file in views but that doesn't work for me.

I have put the product description part before the img part amd than deleted the original product desc part on the bottom of the file >>>

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.5.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
$height = $this->newSizes->height;
$width = $this->newSizes->width;
$link = hikashop_contentLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway,$this->row);

if(!empty($this->row->extraData->top)) { echo implode("\r\n",$this->row->extraData->top); }
?>
<table>
	<tr>
		<td valign="top">
			<div class="hikashop_product_item_left_part">
			<!-- PRODUCT DESCRIPTION -->
				<div class="hikashop_product_desc" style="text-align:<?php echo $this->align; ?>">
					<?php
					echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->product_description);
					?>
				</div>
				<!-- EO PRODUCT DESCRIPTION -->
				<!-- PRODUCT IMG -->
				<?php if($this->config->get('thumbnail',1)){ ?>
				<div style="height:<?php echo $this->image->main_thumbnail_y;?>px;text-align:center;clear:both;" class="hikashop_product_image">
					<div style="position:relative;text-align:center;clear:both;width:<?php echo $this->image->main_thumbnail_x;?>px;margin: auto;" class="hikashop_product_image_subdiv">
					<?php if($this->params->get('link_to_product_page',1)){ ?>
						<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
					<?php }
						$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
						$img = $this->image->getThumbnail(@$this->row->file_path, array('width' => $this->image->main_thumbnail_x, 'height' => $this->image->main_thumbnail_y), $image_options);
						if($img->success) {
							echo '<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_description).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'"/>';
						}
						$main_thumb_x = $this->image->main_thumbnail_x;
						$main_thumb_y = $this->image->main_thumbnail_y;
						if($this->params->get('display_badges',1)){
							$this->classbadge->placeBadges($this->image, $this->row->badges, -10, 0);
						}
						$this->image->main_thumbnail_x = $main_thumb_x;
						$this->image->main_thumbnail_y = $main_thumb_y;

					if($this->params->get('link_to_product_page',1)){ ?>
						</a>
					<?php } ?>
					</div>
				</div>
				<?php } ?>
				<!-- EO PRODUCT IMG -->
etc.

Than I deleted the product description part on the bottom of this file.

It's very important for me to have the product description on top of the page instead of the bottom.

This is what I mean.

What am I doing wrong and how can I get the product description above the image?

Thanks in advance.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 11 months ago #215204

Hi,

You're editing the view for the product listing ; not for the product page.
That documentation page will help you with the different HikaShop views :
www.hikashop.com/support/support/documen...-display.html#layout

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 10
  • Thank you received: 0
9 years 11 months ago #215222

Thanks for the reply.

I've been on that page already but I don't know what they mean since mine is in Dutch

I know how to find the views but not which one to change for my purpose.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 11 months ago #215223

Hi,

As you can see in the graph in the documentation page, it's " product / show_default ".

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum