VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: wbyers on July 07, 2017, 18:40:48 PM

Title: Is it possible to run php retrieval on post_payment
Post by: wbyers on July 07, 2017, 18:40:48 PM
Is it possible to run php  data retrieval from our on post_payment in vmpayment/standard/ override? I ask because it's beginning to look like my only alternative may be to set up a new plugin that has the ability to display the data I need.
Title: Re: Is it possible to run php retrieval on post_payment
Post by: AH on July 10, 2017, 10:43:35 AM
It would be helpful for people answering if you could specify what you want to do
Title: Re: Is it possible to run php retrieval on post_payment
Post by: wbyers on July 10, 2017, 12:56:58 PM
We're trying to post a list of the user's orders on the post payment page. I'm asking because I think at this point our only alternative If we can't is creating a new payment plugin that does what we want. I'd really like to avoid fiddling with that.
Title: Re: Is it possible to run php retrieval on post_payment
Post by: Jörgen on July 10, 2017, 13:20:33 PM
Why not display a link to the user page that already displays this? There may be other options. Maybe include code from the orders view?

Regards
Jörgen @ Kreativ Fotografi
Title: Re: Is it possible to run php retrieval on post_payment
Post by: wbyers on July 10, 2017, 14:22:34 PM
That's a thought. You think I could get away with inserting stuff from the orders view? Like I could call that stuff from the price landing page and it wouldn't be an issue? and will the landing page handle an sql call? That's the real issue.
I've looked at the stuff for our order views stuff It's too localized to port over.
Title: Re: Is it possible to run php retrieval on post_payment
Post by: Ghost on July 10, 2017, 14:58:23 PM
Have you tried editing order_done layout of cart view? You could use Order model's getOrdersList function to get user's orders.
Title: Re: Is it possible to run php retrieval on post_payment
Post by: wbyers on July 10, 2017, 15:00:53 PM
Yes, Yes I have tried editing order done, it doesn't work. I have to use the override of post_payment.php for vmpayment/standard. And when I use php functions from anywhere in postpayment. It doesn't end well.
Is there anyway I could do this that doesn't include making a brand new pluign in vm_payment for it?