Thanks for the reply nicolas. This is what I have so far;
class plgHikashopDump_Events extends JPlugin
{
function __construct(&$subject, $config) {
parent::__construct($subject, $config);
}
function onProductDisplay(&$element,&$html) {
echo '<script type="text/javascript">
console.log("onProductDisplay");
</script>';
}
function onProductFormDisplay(&$element,&$html) {
echo '<script type="text/javascript">
console.log("onProductFormDisplay");
</script>';
}
function onProductBlocksDisplay(&$element,&$html) {
echo '<script type="text/javascript">
console.log("onProductBlocksDisplay");
</script>';
}
function onCheckoutWorkflowLoad(&$checkout_workflow, &$shop_closed, $cart_id) {
echo '<script type="text/javascript">
console.log("onCheckoutWorkflowLoad");
</script>';
}
function onAfterProductCheckQuantities(&$products, &$cart, $options) {
echo '<script type="text/javascript">
console.log("onAfterProductCheckQuantities");
</script>';
}
function onBeforeCartSave(&$element,&$do) {
echo '<script type="text/javascript">
console.log("onBeforeCartSave");
</script>';
}
function onAfterCartSave(&$element) {
echo '<script type="text/javascript">
console.log("onAfterCartSave");
</script>';
}
}
The others work except for onAfterProductCheckQuantities, onBeforeCartSave, and onAfterCartSave.
These cause the Add to Cart notification to not show and the shopping cart to not update until you refresh the page.