Is it possible to run a php script upon successful checkout, after the customer has paid for an order, on zen-cart? Thanks.
Is it possible to run a php script upon successful checkout, after the customer has paid for an order, on zen-cart? Thanks.
'Most anything is possible ... What are you trying to do specifically?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
I am looking to add a row in table in the same mysql database with the product quantity for a different php script.
I think I can get it done by adding it to the payment module under includes/modules/payment. Is there a way to do this so I can update my table with all payment modules?
Write your own custom observer class to hook the NOTIFY_ORDER_AFTER_ORDER_CREATE_ADD_PRODUCTS notifier point and do your custom database code insertion from that observer class.
There are many addons in the Addons section which use notifier/observer classes, and the concepts are outlined in the wiki.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Great! Thank you.
I got it coded but when I try testing with authorize.net sim I get
There has been an error processing your credit card. Please try again.
The debug email I get though says Response Text: (TESTMODE) This transaction has been approved.
nm. The issue with sim was the md5 hash not matching
https://www.zen-cart.com/tutorials/i...hp?article=403
Bookmarks