Hi
I figured it out
Here is what I've done:
1. copied file default_customfields.php from VM default templates of /productdetails to /html/com_virtuemart/productdetails/
2. edited /html/com_virtuemart/productdetails/default.php and added this code at the end of this file
- Code: Select all
<?php
if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position = 'ontop';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end
if (!empty($this->product->customfieldsSorted['normal'])) {
$this->position = 'normal';
echo $this->loadTemplate('customfields');
} // Product custom_fields END
if (!empty($this->product->customfieldsSorted['onbot'])) {
$this->position='onbot';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end
?>
This way an exact part from default VM where this plugin worked is used instead of the template modified one.