Quick2cart Deprecated Plugin Triggers
We recommend you to have a look at the Sample Developement Plugin(qtc_sample_development), this qtc_sample_development plugin located on joomla/plugins/system/qtc_sample_development/qtc_sample_development.php.
We have provided 18+ basic trigger if you want any other trigger, let we know we will add in Sample Development Plugin.
Related to order
onQuick2cartAfterOrderUpdate
/** * For commission code per commisssion. http://www.idevlibrary.com/docs/Coupon_Code_Commissioning.pdf * This method called when order is updated. * * @param Object $orderobj Order detail * @param Object $orderIitemInfo Full order detail including the order item detail * * @return '' * * @since 2.2 */ public function onQuick2cartAfterOrderUpdate($orderobj, $orderIitemInfo) { /* YOUR CODE GOES HERE*/ }
onQuick2cartBeforeOrderemailSend
/** * Function used as a trigger before sending order email * * @param Object $order [order detail ] * @param String $email_subject [email subject] * @param String $email_body [email Body] */ public function onQuick2cartBeforeOrderemailSend($order, $email_subject, $email_body) { /* YOUR CODE GOES HERE*/ }
onQuick2cartAfterOrderDelete
/** * Function used as a trigger before sending the order data to respective payment gateway's onTP_GetHTML() trigger which is used to build payment form which is displayed on checkout form * * @param Object $order_vars Order detail */ public function OnBeforeq2cPay($order_vars) { /* YOUR CODE GOES HERE*/ }
Related to cart
onQuick2cartAfterProductAddingToCart
/** * Function used as a trigger before adding product in cart * * @param [type] $cartId [description] * @param [type] $item [description] * * @return '' */ public function onQuick2cartAfterProductAddingToCart($cartId, $item) { /* YOUR CODE GOES HERE*/ }
onQuick2cartAfterProductRemoveFromCart
/** * Function used as a trigger after removing the products from cart * * @param Array $cartDetail Cart detail including cart items detail and item attribute detail * * @return '' */ public function onQuick2cartAfterProductRemoveFromCart($cartDetail) { /* YOUR CODE GOES HERE*/ }
onQuick2cartBeforeCheckoutCartDisplay
/** * Function used as a trigger before displaying the cart on checkout view * * @return '' */ public function onQuick2cartBeforeCheckoutCartDisplay() { /* YOUR CODE GOES HERE*/ }
OnAfterq2cCheckoutCartDisplay
/** * Function used as a trigger after displaying the cart on checkout view * * @return '' */ public function OnAfterq2cCheckoutCartDisplay() { /* YOUR CODE GOES HERE*/ }
onQuick2cartBeforeCartModuleDisplay
/** * Function used as a trigger before displaying the cart in module * * @return [type] [description] */ public function onQuick2cartBeforeCartModuleDisplay() { /* YOUR CODE GOES HERE*/ }
onQuick2cartAfterCartModuleDisplay
/** * Function used as a trigger after displaying the cart in module * * @return [type] [description] */ public function onQuick2cartAfterCartModuleDisplay() { /* YOUR CODE GOES HERE*/ }
Related to store
onQuick2cartBeforeStoreSave
/** * Function used as a trigger before saving the store detail * * @param object $post Create store post detail * * @return '' */ public function onQuick2cartBeforeStoreSave($post) { /* YOUR CODE GOES HERE*/ }
onQuick2cartAfterStoreSave
/** * Function used as a trigger after saving the store detail * * @param object $post Create store post detail * @param integer $storeid Store id * * @return [type] [description] */ public function onQuick2cartAfterStoreSave($post, $storeid) { /* YOUR CODE GOES HERE*/ }
Related to Checkout
onQuick2cartAfterCheckoutDetailSave
/** * Function used as a trigger after saving the checkout detail * * @param [type] $orderid [order id] * @param [type] $post [Checkout page post data] * * @return [type] [return modified post data] */ public function onQuick2cartAfterCheckoutDetailSave($orderid, $post) { /* YOUR CODE GOES HERE*/ }
Related to Product
OnAfterq2cProductSave
/** * This trigger will be called after saving product description * * @param Integer $item_id Item id - unique product id from com_quick2cart component * @param Array $att_detail Attribute detail * @param String $sku Stock keeping unit * @param String $client Client like com_zoo,com_k2,com_content,com_quick2cart etc * * @return '' */ public function OnAfterq2cProductSave($item_id, $att_detail, $sku, $client) { /* YOUR CODE GOES HERE*/ }
onQuick2cartBeforeProductBasicDetailSave
/** * This trigger will be called before saving basic detail * * @param object $itempost Object of post. * @param string $action action while insert or update object. * * @return boolean * * @since 2.2.2 */ public function onQuick2cartBeforeProductBasicDetailSave($itempost, $action) { /* YOUR CODE GOES HERE*/ }
onQuick2cartBeforeAttributeSave
/** * This trigger will be called before saving single attribute. * * @param Array $att_detail Attribute detail array along with option. * * @return Array Modified Attribute details. * * @since 2.2.4 */ public function onQuick2cartBeforeAttributeSave($att_detail) { /* YOUR CODE GOES HERE*/ }