VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dorh21 on October 03, 2018, 10:02:26 AM

Title: add btn after payment
Post by: dorh21 on October 03, 2018, 10:02:26 AM
hey
after user pay he go to this page - https://imgur.com/a/tDok6si
index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived


i want to edit this page..(add btn for exmple)  how i do it?

plugin parmetrs - https://www.awesomescreenshot.com/image/3642223/c51dbc66341ab8c2d11ab5fed1189a27
from the credic card getway site https://www.awesomescreenshot.com/image/3642219/2edf3110049ad37ae610064d55977c71

thanx
Title: Re: add btn after payment
Post by: kishoreonwork on October 03, 2018, 10:39:58 AM
You must look at the  location for your  plugins/vmpayment/{your_payment_plugin}.


The function 'plgVmOnPaymentResponseReceived' is called by the plugin when a response is received. Please have a look at this function it may have template location. You may get a clue in this function.

Thanks
Kishore




Title: Re: add btn after payment
Post by: dorh21 on October 03, 2018, 10:44:49 AM
its meybe from here? html/com_virtuemart/cart/order_done.php ? or its not from vm at all?
Title: Re: add btn after payment
Post by: GJC Web Design on October 03, 2018, 13:59:06 PM
what ever payment plugin your index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived string is calling ( &pm=X)
that payment plugin should be redirecting u to the orderdone page

in the payment plugin function you can add html etc that will be passed to orderdone
Title: Re: add btn after payment
Post by: dorh21 on October 07, 2018, 18:31:37 PM

what is  &pm=X ? its id of article? menu?

need to look like thet?
index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=X

thanx!
Title: Re: add btn after payment
Post by: GJC Web Design on October 07, 2018, 18:37:03 PM
pm = payment method .. the id of the VM payment method so it knows where to send the call
Title: Re: add btn after payment
Post by: dorh21 on October 07, 2018, 21:06:52 PM
ok i see it 4
https://www.awesomescreenshot.com/image/3648851/9be032c768adf11e505e5e8752b0f1da

how its will help me?
index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=4
if i will do this?
Title: Re: add btn after payment
Post by: GJC Web Design on October 07, 2018, 21:41:30 PM
Quotewhat ever payment plugin your index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived string is calling ( &pm=X)
that payment plugin should be redirecting u to the orderdone page

in the payment plugin function you can add html etc that will be passed to orderdone

calls the function plgVmConfirmedOrder ($cart, $order)   in your payment plugin

that payment plugin should be redirecting u to the orderdone page

where u can add what ever u want or in the html array/var

if it isn't redirecting it should - change the code or get the dev to do it