News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

onContentPrepare in cart/padded.php

Started by sandomatyas, April 04, 2017, 14:15:45 PM

Previous topic - Next topic

sandomatyas

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?

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/