VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on April 04, 2017, 14:15:45 PM

Title: onContentPrepare in cart/padded.php
Post by: sandomatyas on April 04, 2017, 14:15:45 PM
I tried to trigger a content plugin's onContentPrepare method in cart/padded.php but it doesn't work
I checked the method params in my plugin and found that the value of $context is com_virtuemart.vendor and the value of $article is a TableVendors Object
Did I miss somethig?
Title: Re: onContentPrepare in cart/padded.php
Post by: Milbo on April 05, 2017, 18:58:27 PM
onContentPrepare is a joomla trigger and is active in the product details view for the product description.

When you manipulate a product not within the core functions, the manipulation is considered as evil and thrown away. You must use the trigger plgVmPrepareCartProduct