- Posts: 221
- Thank you received: 8
return to serial purchased and send sms
6 years 8 months ago - 6 years 8 months ago #314973
by sadaf3d
return to serial purchased and send sms was created by sadaf3d
hi
1- if i want send serial purchased to user via sms after buy it, i need write custom plugin? if yes,please say me what is the hikashop event must be use to do that? how can access to serial in which PHP variable in plugin?
2- is it possible config peyment plugin to return serial with "Return url" in the peyment plugin option?
1- if i want send serial purchased to user via sms after buy it, i need write custom plugin? if yes,please say me what is the hikashop event must be use to do that? how can access to serial in which PHP variable in plugin?
2- is it possible config peyment plugin to return serial with "Return url" in the peyment plugin option?
Last edit: 6 years 8 months ago by sadaf3d.
Please Log in or Create an account to join the conversation.
6 years 8 months ago #314976
by nicolas
Replied by nicolas on topic return to serial purchased and send sms
Hi,
1. That's right you'll need to develop a plugin for that. You'll want to implement the onAfterOrderUpdate trigger:
www.hikashop.com/support/documentation/6...#onBeforeOrderUpdate
Using that trigger, you'll have the order_id in $order->order_id. Then, you can load the serials of thar order with a MySQL query on the table hikaserial_serial with a WHERE on the column serial_order_id being equal to that $order->order_id variable.
2. No, that information is not supported by payment plugins so it would require modifying the code of the payment plugin to do that. With just the settings available, that's not possible.
1. That's right you'll need to develop a plugin for that. You'll want to implement the onAfterOrderUpdate trigger:
www.hikashop.com/support/documentation/6...#onBeforeOrderUpdate
Using that trigger, you'll have the order_id in $order->order_id. Then, you can load the serials of thar order with a MySQL query on the table hikaserial_serial with a WHERE on the column serial_order_id being equal to that $order->order_id variable.
2. No, that information is not supported by payment plugins so it would require modifying the code of the payment plugin to do that. With just the settings available, that's not possible.
Please Log in or Create an account to join the conversation.
Time to create page: 0.176 seconds