- Posts: 90
- Thank you received: 1
Run a custom php script when order is complete
13 years 5 months ago #97604
by btbjosh
— Josh
Run a custom php script when order is complete was created by btbjosh
I need to run a php script when the order is complete that can determine what was in the order. I.e. I need access to the $order object.
I need it to run for every order to check if a certain product was purchased.
Is this something that can be done without a plugin? Is there a view that I can access that I can implement my script into?
Thanks
I need it to run for every order to check if a certain product was purchased.
Is this something that can be done without a plugin? Is there a view that I can access that I can implement my script into?
Thanks
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97615
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Run a custom php script when order is complete
Hi,
The best solution is to use a plugin.
www.hikashop.com/en/support/documentatio...#onAfterOrderConfirm
I don't see a right view which could contain such code because with some payment plugins it could not work at all.
Regards,
The best solution is to use a plugin.
www.hikashop.com/en/support/documentatio...#onAfterOrderConfirm
I don't see a right view which could contain such code because with some payment plugins it could not work at all.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97619
by btbjosh
— Josh
Replied by btbjosh on topic Run a custom php script when order is complete
Thanks for the response Jerome. I'm actually performing this function just fine inside the paypal plugin. This will work ok for us as long as we stick with it as the main payment option. For now it will be ok.
Something I noticed: (this could be an issue on paypal's sandbox mode) but it no longer offers the "Return URL" that it used to, even though my paypal configuration has not changed. Any ideas?
Something I noticed: (this could be an issue on paypal's sandbox mode) but it no longer offers the "Return URL" that it used to, even though my paypal configuration has not changed. Any ideas?
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97707
by nicolas
Replied by nicolas on topic Run a custom php script when order is complete
The return URL field is still present in the latest version of the PayPal payment plugin.
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97727
by btbjosh
— Josh
Replied by btbjosh on topic Run a custom php script when order is complete
Yeah, I saw the code in the PHP plugin file. I just am guessing it has something to do with paypal's revamping of their sandbox and developer portals. They've been acting all glitchy lately.
Just a heads up.
Just a heads up.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds