News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Access specific custom fields?

Started by EvanGR, June 17, 2019, 09:38:14 AM

Previous topic - Next topic

EvanGR

Hello,

I want to access specific custom fields in the products template, to do custom styling on them.

Interested both for the categories page (multiple products), as well as a single product page.

So far, I do this:
<div class="custom-fields">
<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'my_positions')); ?>
</div>


But this displays all the custom fields in the specific position.

Thanks

StefanSTS

Just use different names for the position attribute and make a few calls for position1, position2.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.