Hello with V.M. 3.8.2 i have this code in product details
$linkVideo = shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'videobreve'));
and the output of echo $linkVideo custom field is
<div class="product-fields">
<div class="product-field product-field-type-S">
<div class="product-field-display">[b]https://www.ilgarofanorosa.com/video/ita.mp4[/b]</div>
</div>
<div class="clear"></div>
</div>
My question is how can i have only the content of custom field ino order that
<a href="<?php echo $linkVideo"></a> will be only the link?
Thanks for help
change sublayouts customfields by override in template or create new sublayout and change/call in $linkVideo
Wow perfect thanks! i want to share the final code for this
echo shopFunctionsF::renderVmSubLayout('customfields_link',array('product'=>$this->product,'position'=>'imparare'));
then i created customfields_link.php into sublayouts folder.
Best regards
Wonderfull, that is exactly what i mean :)
Super
You dont need a separate file. You can have them separate in the customfields layout, by class , position etc.
http://forum.virtuemart.net/index.php?topic=128936.0