Author Topic: Is it safe to replace vmpayment/standard with a custom that copies the code  (Read 175 times)

wbyers

  • Beginner
  • *
  • Posts: 37
  • A beginner
This one is self evident. My boss wants to add the list of purchases the customer just made to the landing page after checkout. It has become obvious that We cannot do this with any sort of ajax or php call. Can we safely replace vmpayment_standard with something like standard custom that adds the data we want to pull from the cart or would trying to replace vmpayment/standard cause an issue? We won't be modifying standard in anyway except disabling it. I want to know because I intend to bring up this issue with my boss.
If it's not safe can standard be safely modified?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26055
  • Always on vacation
    • Jenkin Hill Internet
It is a plugin so you can edit/replace it however you wish to create your own landing page. I see no security issues, as it is post payment processing.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Now away on vacation

wbyers

  • Beginner
  • *
  • Posts: 37
  • A beginner
Okay, so the plugin can be safely edited. It's not in danger of being overridden in an update? I need to modify it to retain information

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26055
  • Always on vacation
    • Jenkin Hill Internet
Assuming you give it its own name it will not be overwritten by updates.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Now away on vacation

wbyers

  • Beginner
  • *
  • Posts: 37
  • A beginner
But I'd need to modify vmpayment/standard/standard.php. Would renaming the standard chain of files cause an issue?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26055
  • Always on vacation
    • Jenkin Hill Internet
Unpack the relevant aio component, got to the admin\plugins\vmpayment directory  There you will see the standard plugin. Zip that up, rename it to something suitable, like mystandard and install it in Joomla. It will then appear in the available payment plugins and you can edit it as you wish, knowing that it will not get overwritten. It is that simple.  The original standard plugin will still be there, but can obviously be unpublished.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Now away on vacation

wbyers

  • Beginner
  • *
  • Posts: 37
  • A beginner
okay thanks.