Author Topic: Is it possible to run php retrieval on post_payment  (Read 345 times)

wbyers

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Is it possible to run php retrieval on post_payment
« 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.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2628
  • VirtueMart Version: 3.2.5
Re: Is it possible to run php retrieval on post_payment
« Reply #1 on: July 10, 2017, 10:43:35 am »
It would be helpful for people answering if you could specify what you want to do
regards
A

Joomla 3.8.2
php 5.6 + php 7

wbyers

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Re: Is it possible to run php retrieval on post_payment
« Reply #2 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.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1103
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.6
Re: Is it possible to run php retrieval on post_payment
« Reply #3 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
Joomla 3.8.2
Virtuemart 3.2.6
Olympiantheme Hera (customized)

wbyers

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Re: Is it possible to run php retrieval on post_payment
« Reply #4 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.

Ghost

  • Jr. Member
  • **
  • Posts: 371
Re: Is it possible to run php retrieval on post_payment
« Reply #5 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.

wbyers

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Re: Is it possible to run php retrieval on post_payment
« Reply #6 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?