VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ltwmaster on December 07, 2016, 09:34:56 AM

Title: Extra Field: add Media
Post by: ltwmaster on December 07, 2016, 09:34:56 AM
Hey Guys,

are you aware of following solution:
When I add the extra field "media", I can select all available media in a drop down list.
Is it possible, that instead of having a dropdown, having a media manager so that I can upload an image streight away?

Also:
Is it possible to create templates for categories so that every product in a category has certain extra fields?

Cheers,
ltwmaster
Title: Re: Extra Field: add Media
Post by: Studio 42 on December 08, 2016, 13:55:09 PM
Curently by default, only "addtocart" customfield position and "ontop" is displayed in the produc list.
To see more, you have to add yourself the render.
Eg.
<div class="vm-customfields">
<?php 
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'rowHeights'=>1'position' => 'category')); ?>

</div>

So any customfield having layout position "category" is displayed in the category too.
Note: i used category, because this not exsit in productdetails, then you see only this in the category list.
In the case you need it in the 2 views then use a default one, onbottom for eg. should be render in the productdetails in most templates.