Product layout

  • Posts: 13
  • Thank you received: 0
12 years 3 months ago #61008

Hi,

I have been playing around with the product layout on my test site modifying the css file but need a little help.

79.170.44.86/billbotest.co.uk/index.php/...ng-bear-with-t-shirt

1 - I have manged to move the small thumb images to the right of main image and resize but is there a way to move the description text to the right side also.
2 - Is there away to have the options/characteristics above the pricing.

Many Thanks

Paul Kemp

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #61063

Hi,

You won't be able to do that with CSS.
You will need to edit the file "show_default" via the menu Display->Views and move the different blocks of code around like you want.

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

  • Posts: 13
  • Thank you received: 0
12 years 3 months ago #61188

Hi Nicolas,

Can you give me an idea of how to do that. I can open the file for editing but don't know what blocks of code to change or how to change.

many thanks
paul.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #61275

Hi,


Well, you can just read the code:

<div id="hikashop_product_description_main" class="hikashop_product_description_main">
		<?php
		//DISPLAY the product description
		echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
		?>
	</div>
that's the piece for the description.
You can move it after
<div id="hikashop_product_right_part" class="hikashop_product_right_part">
if you want to have it on the right.

The piece for characteristics is
<?php
	$this->setLayout('show_block_characteristic');
	echo $this->loadTemplate();
	?>
and the piece for the price is
<span id="hikashop_product_price_main" class="hikashop_product_price_main">
		<?php
		//LAYOUT listing_price
		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.

  • Posts: 13
  • Thank you received: 0
12 years 1 month ago #67551

hi Nicolas,

Sorry its been a long time since I was able to get back to working on the site.
I have managed to sort it now with your help.

thanks again.

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

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

Hi I have tried the method described above and moved the code for product description to the place you indicated yet nothing changed on the front end?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #116118

Hi,

It either means that you didn't edit the file for the correct template but another one, or that you changed the "layout on product page" option of the configuration and used another layout than the "default" one.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum