The Gigya extension generates events that can be used to extend or override the extension's functionality using Magento's observer methodology.
For an introduction to Magento events and observers, see the Magento documentation.
The Gigya extension for Magento 1.x provides the following events.
Event triggered before logging a user into the system through Gigya's RaaS.
Event triggered after logging a user into the system through Gigya's RaaS.
Event triggered before logging a user into the system through Gigya's Social Login.
|gigya_social_post_login||Event triggered after logging a user into the system through Gigya's Social Login.|
|gigya_pre_user_create||Event triggered before creation of a new Magento customer, either in RaaS or through Social Login.|
Event triggered before purchase data is sent to Gigya Customer Insights.
|gigya_pre_review_reminder||Event triggered before sending a "need to review" reminder to a customer who has made a purchase.|
Creating an Event Observer
Insert the following tags inside the ... tags of your config.xml file. The path to this file must be located according to Magento rules (in the folder /app/code/local/yournamespace/yourmodule/etc) :
Create a class with the name you used in the config.xml tag and inside that class, create a method with the name you used in the config.xml tag (this is located in the folder: /app/code/local/yournamespace/yourmodule/Model).
Example: Changing the Price Field on the Signals Information Returned to Gigya
In the following example, we override the amount that is sent after purchase to Gigya's (this is used in Customer Insights).
By default the Gigya extension sends the total price that customer pays (including taxes, shipping, etc.). In the following example we override the value to be the basic price that the stores receives ("base total paid").
The plugin registers for the gigya_counter_pre_send event in config.xml and causes the Magento event observer to call the method overridePurchaseValue in class gigya_Observer_Class in your Magento Model folder.
The following PHP code sets the purchase "base total paid" amount in the Gigya: