files run after an order is cancelled/paid

  • Posts: 32
  • Thank you received: 0
11 years 3 weeks ago #157754

Hi Guys,

Just a quick question regarding the checkout process in hikashop. When the customer is returned to our website from our payment gateway (when an order is cancelled AND when an order is successful) which views do i need to edit so that i can run a bit of code to clear out some custom session variables?

Thanks in advance.

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

  • Posts: 2334
  • Thank you received: 403
11 years 3 weeks ago #157771

Hi there,

Our payment plugins allow you to choose the return url (in System>Payment methods). So what I would suggest is to write your own file with whatever you want inside and then do the redirection to the home page (or another page). This will allow you to add some code without editing the core files and thus being exposed to issue when updating.

Make sure to specify this return url for every payment method you have though!

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

Time to create page: 0.059 seconds
Powered by Kunena Forum