Developer guide - PH2M/GDPR GitHub Wiki
JS Mergin issue
If you merge JS file, tarteaucitron doesn't work correctly, you can fix this issue thanks to
tarteaucitronForceCDN
var inside tarteaucitron.js file,you just need to set this var to the correct path, see issue #28 for more info
ADD Custom process before / after customer download or remove data
- Download event:
request_customer_data_download_before [customer, customer_email]
call before delete customer data, or add download action in queue
request_customer_data_download_after [customer, customer_email]
call after delete customer data, or add download action in queue
customer_data_download_construct_data_before [customer, fileData]
call before construct file data, you can add your custom data on fileData Varien_Object
customer_data_download_construct_data_after [customer, fileData]
call after construct file data, you can update or remove data already in Varien_Object
- Remove event:
request_customer_data_remove_before [customer, customer_email]
call just before delete customer data, or remove action in queue
request_customer_data_remove_after [customer, customer_email]
call just after delete customer data, or remove action in queue
customer_data_remove_action_before [customer, customer_email]
call before customer data remove action
customer_data_remove_action_after [customer, customer_email]
call after customer data remove action
ADD Custom process with queue system
You can add your own custom process thanks to the queue system. for this, follow this step :
- create your own model, you need to implement
PH2M_Gdpr_Model_Interface
interface. - add your process to queue tab, you need to specified (use
Mage::getModel('phgdpr/queue')->addEntity()
:
- entity_type (is the name of your class, look
PH2M_Gdpr_Model_Queue_Entitytype
for example) - params (you can add all info you want to get for you process)
- run_date (date when you want run your process, keep empty for run at the next queue running)