News:

Looking for documentation? Take a look on our wiki

Main Menu

Adding CUSTOM FIELD position to add to cart popup (padded.php)

Started by padalec, September 23, 2015, 11:11:02 AM

Previous topic - Next topic

padalec

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