Customizing the redirect page after placing an order.

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Customizing the redirect page after placing an order.

Postby doby » Wed Jul 16, 2014 6:06 pm

I would like to add some content to the page which loads after clicking the 'Confirm Order' button.

With the virtuemart checkout previously I had it set up so the page title was 'Thank you for your order!' and had the text 'Redirecting to Paypal...' with a button below to manually redirect should it not do it automatically.

Image

Now with OPC I seem to get the 'Thank you for your order!' page loaded within itself (as in there are two pages of the same name in the breadcrumbs.) There's no 'Redirecting to Paypal' text but the manual redirect button is still present.

Image

So my questions are, how do I get the page to display in OPC as it was with the virtuemart checkout and secondly how can I add extra context, for example a gif. spinner.
doby
 
Posts: 3
Joined: Wed Jul 16, 2014 5:37 pm

Re: Customizing the redirect page after placing an order.

Postby admin » Thu Jul 17, 2014 3:08 pm

Hello,

this html that you see is rendered by this part of the system:
preparePost function in:

\plugins\vmpayment\paypal\paypal\helpers\paypalstd.php

it sets the html within the current request with a code similar to JRequest::setVar('html', $html);

which is then displayed in
/components/com_virtuemart/views/cart/tmpl/order_done.php
(per any payment method)

Within OPC you can try the feature:
- for a pending status
- and for the paypal payment method
- set an article above the original "thank you page"
- where you can include the loader image or anything else needed

Image

resulting thank you page from paypal is rendered with:

\plugins\vmpayment\paypal\paypal\tmpl\stdresponse.php

and is also displayed with the order_done.php

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Customizing the redirect page after placing an order.

Postby doby » Thu Jul 17, 2014 7:01 pm

Thanks Stan! I'll see what I can do :)
doby
 
Posts: 3
Joined: Wed Jul 16, 2014 5:37 pm

Re: Customizing the redirect page after placing an order.

Postby admin » Mon Jul 21, 2014 2:25 pm

hello, let us know then on if it did what you were looking for.
best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2