Product Description Placement

  • Posts: 3
  • Thank you received: 0
11 years 9 months ago #88230

Hi,

I'd like to know if it is possible to move the description of a product from directly under the Product image to next to the image above the shopping cart?

Kelly

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 9 months ago #88248

Hi,

You can do that by modifying the code in the file "show_default" via the menu Display->Views.

You simply have to move the block of code displaying the description

<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>
where you need it.
I suppose that you meant above the "add to cart" button, and not above the shopping cart, since there is no shopping cart been displayed in the product page layout. In that case, you should put the description code before the line
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">

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

  • Posts: 3
  • Thank you received: 0
11 years 9 months ago #88313

Hi Nicolas,

Thank you for your answer, however rather than aligning to the right it is shifting everything including the add to cart, directly below the product image. Any suggestions to have it aligning right?

Kelly

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #88396

Hi,

It's going under the image because you have to reduce the width of the element.
Try to force a width for the class "hikashop_product_description_main".

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

  • Posts: 3
  • Thank you received: 0
11 years 9 months ago #88405

Got it working, thank you!!

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

Time to create page: 0.069 seconds
Powered by Kunena Forum