News:

Support the VirtueMart project and become a member

Main Menu

Extra Field: add Media

Started by ltwmaster, December 07, 2016, 09:34:56 AM

Previous topic - Next topic

ltwmaster

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

Studio 42

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.