Page 1 of 1

Payment Name - PayPal Order Number

PostPosted: Mon Jun 03, 2019 2:38 am
by MAD King
Hello,

when orders are placed and paid through PayPal, at the return page I get a page saying

Thank you for your Order!

Payment Name PayPal
Order Number XXXXX (order number replaced with X)


and the URL shows /index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=XXXXXX&pm=2&Itemid=0

How can I change this into a more friendlier page?

Thank you

Re: Payment Name - PayPal Order Number

PostPosted: Mon Jun 03, 2019 9:50 am
by admin
hello, this URL is generated by the paypal plugin that is being used and it's not inteded to be transoformed into SEF due to reliability and other reasons. SEF is ok for pages that can be reached by "search engines" and this type of pages/urls are not made for such robots.

each payment method got it's own return URL and it would be too dagerous to SEF it.

generally the weight of SEFed URLs is much lower these days than it used to be and it's much more important that your breadcrumbs and other microdata are properly sent to search engines so they can understand the hierarchy and content of your site.

best regards, stan

Re: Payment Name - PayPal Order Number

PostPosted: Mon Jun 03, 2019 1:45 pm
by MAD King
Hello,

I am not talking about the URL.

Re: Payment Name - PayPal Order Number

PostPosted: Mon Jun 03, 2019 11:02 pm
by admin
hello,
1)
if you mean the look of the page, for paypal it's rendered at this file:
\plugins\vmpayment\paypal\paypal\tmpl\stdresponse.php

and you can copy it into overrides directory (per VM forums: )

\templates\yourtemplaate\html\vmpayment\paypal\stdresponse.php

where you can render or show whatever you'd like.

2)
another option to use opc's article above or under (or rewrite) per order status , so it shows an article where you can use custom variables such as {bt_company} which you can check at OPC's Tracking section -> Available vars tab (this lists available variables per random order that you can use within the joomla article and it will get modified to the actual value of that order)

when using opc's article, it can be used for more payments at once

best regards, stan

Re: Payment Name - PayPal Order Number

PostPosted: Mon Jun 03, 2019 11:54 pm
by MAD King
another option to use opc's article above or under (or rewrite) per order status , so it shows an article where you can use custom variables such as {bt_company} which you can check at OPC's Tracking section -> Available vars tab (this lists available variables per random order that you can use within the joomla article and it will get modified to the actual value of that order)



Yes, this is what I very much want.
Can you point me to an instruction on how to do this?

Re: Payment Name - PayPal Order Number

PostPosted: Tue Jun 04, 2019 1:52 pm
by admin
well, if you want to alter this ONLY per paypal confirmed status you can do this:

1. in main opc backend config, see the After checkout tab
1.1 enable "Enable OPC Tracking feature (this will enable opc tracking payment plugin that detects order status changes)"
2. there is a section "Thank you page Joomla Article"
2.1 set order status to Confirmed
2.2. set payment method to Paypal (or ANY depending on what you want)
2.3 select an article (a pop up will be shown + click an article) NOTE: this section right now still uses mootools and thus mootols must not be disabled at the backend
2.4. joomla language code: select ANY for not using multilanguage
2.5 mode:
Prepend => will show at the top of the payment's rendered information
Append => will show at the bottom after payment's rendered information
Replace => will replace the html rendered by the payment (this may not always work 100% as this depends on the way payment generates it's html)

3. click save


this will:
- install/update "opctracking" + "opctrackingsystem" plugins that take care of the thank you page detection
- configure opc to use that article at the thank you page

best regards, stan

Re: Payment Name - PayPal Order Number

PostPosted: Tue Jun 04, 2019 4:49 pm
by MAD King
Great. Thank you very much for your help.