News:

Support the VirtueMart project and become a member

Main Menu

Show Custom fields on the view category

Started by baoquocmt159, September 16, 2013, 09:33:11 AM

Previous topic - Next topic

baoquocmt159

Hi all, so default of virtuemart productsdetail show custom fields.

I wana show custom fields on the list product of category.

Please help me ! Thank.

Maxim Pishnyak

A lot of threads about this on forum. Try to use forum search button.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

baoquocmt159

I can't find result !

i use code in plugin :


foreach ($products as $k=>&$product) {
$proSdes = &$product->product_s_desc;
$customFields = &$product->customfields;
$profieldId = $product->virtuemart_customfield_id;
if($customFields) {
foreach($customFields as $fk=>$customField) {
$customfieldId = $customField->virtuemart_customfield_id;
if($profieldId == $customfieldId){
if($customField->custom_element == 'plg_nbvm_music_player') {
if ($customField->display) {
$display = $customField->display;
$proSdes = $display.$proSdes;
}
}
}
}
}
}


But it hapend error !