VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Donamd1 on July 12, 2016, 22:47:36 PM

Title: Changing layout of product page
Post by: Donamd1 on July 12, 2016, 22:47:36 PM
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.
Title: Re: Changing layout of product page
Post by: Donamd1 on July 13, 2016, 07:32:20 AM
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 ?
Title: Re: Changing layout of product page
Post by: Donamd1 on July 13, 2016, 09:17:24 AM
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.