VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: padalec on September 23, 2015, 11:11:02 AM

Title: Adding CUSTOM FIELD position to add to cart popup (padded.php)
Post by: padalec on September 23, 2015, 11:11:02 AM
Hi,

I have a simple question (hope with simple anwser  :) )

Can I create a custom field and add it to the ADD TO CART POPUP (for example above the related products). I found that this file: com_virtuemart/cart/padded.php genrates the popup content.

I added a custom position - this code:

<?php if (!empty($this->product->customfieldsSorted['my-position'])) {
             $this->position='my-position';
            echo $this->loadTemplate('customfields');}
?>

But it doesn't work.

What am I missing?

p.s. I also considering to use the new SUBLAYOUTS system - is this better option to go ahead with?


VirtueMart 3.0.9.8
Joomla Joomla! 3.4.4