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

Custom fields in category page

Started by effettoMapet, July 10, 2023, 20:50:50 PM

Previous topic - Next topic

effettoMapet

HI,
I inserted the custom fields in the product sheet, and everything works fine, now I want some of these custom fields to be present also in the same products present in the category list.

I'm editing this file:
html > com_virtuemart > sublayouts > products.php

inserting this code that doesn't work:

<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'box_example','class'=> 'box_example'));?>

Do you know PLEASE tell me which code I have to use?
Thanks for your patience.

jenkinhill

No need to code.

Make sure each custom is set with Cart Attribute on.

In VM Configuration/Shopfront tab under Product Listing turn on "Show product customfields in browse views"
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

effettoMapet

Thank you jenkinhill, you have been invaluable!

I just had to put the customizations in the active cart.

I don't need these customizations during the cart stage, so I thought I could not set them 'in cart'.

THANK YOU