return to serial purchased and send sms

  • Posts: 170
  • Thank you received: 7
4 years 3 months ago #314973

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?

Last edit: 4 years 3 months ago by sadaf3d.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
4 years 3 months ago #314976

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum