Quick2Cart Development Plugin Triggers

Quick2cart Plugin Triggers

We recommend you to have a look at the Sample Development Plugin(qtc_sample_development), this qtc_sample_development plugin located on joomla/plugins/system/qtc_sample_development/qtc_sample_development.php.
We have provided 11+ basic trigger if you want any other trigger, let we know we will add in Sample Development Plugin.

Note: This trigger mentioned below are deprecated from Quick2Cart 2.8.5 version  Click here for new triggers.

Related to order

Onq2cOrderUpdate

	/**
	 * 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 Onq2cOrderUpdate($orderobj, $orderIitemInfo)
	{
		/* YOUR CODE GOES HERE*/
	}

 

OnBeforeq2cOrderUpdateEmail

	/**
	 * 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 OnBeforeq2cOrderUpdateEmail($order, $email_subject, $email_body)
	{
		/* YOUR CODE GOES HERE*/
	}

 

Onq2cOrderDelete

	/**
	 *  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

OnBeforeq2cAdd2Cart

	/**
	 * Function used as a trigger before adding product in cart
	 *
	 * @param   [type]  $cartId  [description]
	 * @param   [type]  $item    [description]
	 *
	 * @return ''
	 */
	public function OnBeforeq2cAdd2Cart($cartId, $item)
	{
		/* YOUR CODE GOES HERE*/
	}

 

OnAfterq2cRemovefromCart

	/**
	 * 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 OnAfterq2cRemovefromCart($cartDetail)
	{
		/* YOUR CODE GOES HERE*/
	}

 


OnBeforeq2cCheckoutCartDisplay

	/**
	 * Function used as a trigger before displaying the cart on checkout view
	 *
	 * @return ''
	 */
	public function OnBeforeq2cCheckoutCartDisplay()
	{
		/* 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*/
	}

 

onBeforeCartModule

	/**
	 * Function used as a trigger before displaying the cart in module
	 *
	 * @return  [type]  [description]
	 */
	public function onBeforeCartModule()
	{
		/* YOUR CODE GOES HERE*/
	}

 

onAfterCartModule

	/**
	 * Function used as a trigger after displaying the cart in module
	 *
	 * @return  [type]  [description]
	 */
	public function onAfterCartModule()
	{
		/* YOUR CODE GOES HERE*/
	}

 

Related to store

OnBeforeSaveStore

	/**
	 * Function used as a trigger before saving the store detail
	 *
	 * @param   object  $post  Create store post detail
	 *
	 * @return  ''
	 */
	public function qtcOnBeforeSaveStore($post)
	{
		/* YOUR CODE GOES HERE*/
	}

 

qtcOnAfterSaveStore

	/**
	 * 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 qtcOnAfterSaveStore($post, $storeid)
	{
		/* YOUR CODE GOES HERE*/
	}

 

Related to Checkout

qtcAfterCheckoutDetailSave

	/**
	 * 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 qtcAfterCheckoutDetailSave($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*/
	}

 

beforeSavingProductBasicDetail

	/**
	 * 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 beforeSavingProductBasicDetail($itempost, $action)
	{
		/* YOUR CODE GOES HERE*/
	}

 

OnBeforeq2cAttributeSave

	/**
	 * 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 OnBeforeq2cAttributeSave($att_detail)
	{
		/* YOUR CODE GOES HERE*/
	}

 

Subscribe to Newsletter





Marketing permission: I give my consent to to be in touch with me via email using the information I have provided in this form for the purpose of news, updates and marketing.

What to expect: Jump on to our Newsletter & stay updated on news on our extensions, new releases & offers! 

* If you wish to withdraw your consent and stop hearing from us, simply click the unsubscribe link at the bottom of every email we send. 


Latest Blogs

Fan Speak !

  • You can sell tickets if you download the free version of jevents an...i use community builder and all three together make an incredible combo.....earn commissions off of every ticket sale generated by your users...has potential to be a real money maker...and furthermore...the support is very enthusiastic and thorough. recommending