VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hendrikdebeer on October 22, 2018, 15:51:09 PM

Title: Custom Entry above Price
Post by: hendrikdebeer on October 22, 2018, 15:51:09 PM
Good day

Does anybody know if it is possible to move a custom field between the product name and the price?

My customer wants to have the Size & Weight where the ratings are. See attached image to explain.

Title: Re: Custom Entry above Price
Post by: StefanSTS on October 22, 2018, 16:17:48 PM
Search in the generating code for something like

echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop'));

You can add your own position in your template.

Replace the ontop with "myspecialposition" and use that name for position in the custom field properties.

echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'myspecialposition'));

Stefan