VirtueMart Forum

VirtueMart 2 + 3 => Plugins: Payment, Shipment and others => Topic started by: ThiloS on April 26, 2022, 15:44:01 pm

Title: Paypal and Stripe: Redirecting to shop: No use of orderdone.php?
Post by: ThiloS on April 26, 2022, 15:44:01 pm
Hi there, if paying via Paypal or Stripe i have the following problem:

The redirect to the shop will not use the orderdone.php template.

It just displays a thankyou message inside a <h3> tag and that's it.

The orderdone.php reveals a wrapping class named "vm-wrap" instead.
(By using offline Payment this php-file is used and the "vm-wrap" class can be styled).

How can i get Paypal and Stripe to work with that php.file as well?

Or is there another way to put the "thank you message" inside a div container?

Greets,
Thilo
Title: Re: Paypal and Stripe: Redirecting to shop: No use of orderdone.php?
Post by: pinochico on April 26, 2022, 15:56:12 pm
I think:
Rewrite PayPal or Stripe payment plugin == develop custom version self or waiting for upgrade

Because info to orderdone send payment plugin - our Gopay payment plugin send our info which developed self.
Title: Re: Paypal and Stripe: Redirecting to shop: No use of orderdone.php?
Post by: Jumbo! on April 26, 2022, 16:00:27 pm
"orderdone.php" does not always print the final order confirmation page. If you use a self-hosted payment plugin, it prints the order confirmation details in "orderdone.php".

If you use an external payment service, this layout file redirects the users to the external website. In that case, the order confirmation page is displayed using -
components/com_virtuemart/views/vmplg/tmpl/default.php

You can add your desired div in this layout file by overriding it in your template.
Title: Re: Paypal and Stripe: Redirecting to shop: No use of orderdone.php?
Post by: pinochico on April 26, 2022, 16:11:22 pm
to Jumbo:
Perfect :)
Title: Re: Paypal and Stripe: Redirecting to shop: No use of orderdone.php?
Post by: ThiloS on April 26, 2022, 16:29:16 pm
@ Jumbo!
This is really PERFECT! Thanks for the help.

Thanks a lot... i guess i would never have found this file!!!