News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Changing layout of product page

Started by Donamd1, July 12, 2016, 22:47:36 PM

Previous topic - Next topic

Donamd1

I'm changing the layout of the product details page a little bit.

Now I've a problem with 2 custom fields.

On this link http://www.j-jennen.be/upgrade/index.php/webshop/sigma/muurverven-binnen/gladde-verf/sigmacryl-decor-matt-detail you'll see a box where you can select a child product.
In case you select the Article 'Gekleurd, 1 lt' then appears a box where extra information can given by the customer.

I'm trying to change the location and layout of the custom boxes, so that it comes in line with the box 'Bestellen', but can't find where and how to do it.

Donamd1

With Firebug I moved <div  class="product-fields"> and everything that is in it to <div class="addtocart-area">.  In that way both divs come in the addtocart-area and makes it easier to align the same.

I tried with adding following code <?php
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'mynewpos'));
?>
in the file addtocart.php under <div class="addtocart-area"> but hat wont work.

Someone else an idea ?

Donamd1

The solution is very simple. 
I didn't have to change the source code of any file.

I only had to change in the custom field Generic Child Variant in the position field : addtocart

Now searching where to change the css from this field can be changed.