VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: encreplus on August 28, 2020, 16:43:07 PM

Title: Thanmk you cart page
Post by: encreplus on August 28, 2020, 16:43:07 PM
Good day all,

Is there a way to put a different message per payment method on the thank you cart page before being sent to the payment gateway ?

I have 3 different message to put,

regards

Stefan
Title: Re: Thanmk you cart page
Post by: pinochico on August 28, 2020, 16:56:18 PM
I think no,
thank you page is after redirect from payment gateway back to shop or do you have another solution?
Title: Re: Thanmk you cart page
Post by: GJC Web Design on August 28, 2020, 17:46:22 PM
Or do u mean a page that has a "click here to go to ###payment gateway### ?
I.e. not an automatic redirect .. in that case this page is created by the payment plugin itself..
Title: Re: Thanmk you cart page
Post by: encreplus on August 29, 2020, 13:40:33 PM
I mean the page before being transfer to payment gateway,
Title: Re: Thanmk you cart page
Post by: encreplus on August 29, 2020, 13:42:46 PM
Quote from: encreplus on August 29, 2020, 13:40:33 PM
I mean the page before being transfer to payment gateway,

Quote from: GJC Web Design on August 28, 2020, 17:46:22 PM
Or do u mean a page that has a "click here to go to ###payment gateway### ?
I.e. not an automatic redirect .. in that case this page is created by the payment plugin itself..

Yes i mean that page
Title: Re: Thanmk you cart page
Post by: pinochico on August 29, 2020, 14:04:49 PM
QuoteIs there a way to put a different message per payment method on the thank you cart page before being sent to the payment gateway ?

Yes.
As he said GJC: this page is created by the payment plugin itself

Then you must edit all payment plugins and paste your code into them.
Remember that you must do this manually again when upgrading VirtueMart.
If you use the 3d party payment plugin, there too.

What code and in which file I can't advise you.


Title: Re: Thanmk you cart page
Post by: Jumbo! on August 31, 2020, 10:51:02 AM
You can use VP Conversion Tracking plugin - https://www.virtueplanet.com/extensions/vp-conversion-tracking It allows you to set a common Thank You page for all payment plugin/methods. It also has many other features. Show Related Products of the ordered products in thank you page. Show Suggested Products i.e. "Customers who bought these products also bought these". Refer to the product details to learn more.


Disclaimer: We are the developer of this plugin
Title: Re: Thanmk you cart page
Post by: pinochico on August 31, 2020, 13:36:43 PM
QuoteYou can use VP Conversion Tracking plugin

I see no advantage
- purchase a plugin
- install
- setup
- but unfortunately to develop the possibility of displaying 3 types of messages in the plugin, just as I would not buy the plugin?

So where is the advantage?
Title: Re: Thanmk you cart page
Post by: Jörgen on August 31, 2020, 14:31:50 PM
I think Jumbo means the thank you page is common to all payment methods. But I hope that they can contain different messages depending on payment. This can only be answered bu Jumbo. The idea of one common thank you page is appealing. Today this is different depending on payment processor.

Jörgen @ Kreativ Fotografi
Title: Re: Thanmk you cart page
Post by: encreplus on September 21, 2020, 15:40:52 PM
Ok will try to find the file to modify thanks
Title: Re: Thanmk you cart page
Post by: encreplus on December 26, 2020, 15:57:21 PM
Good day

I have modify but now how can i add 1-2 seconds before being transfer to payment gateway ???
Title: Re: Thanmk you cart page
Post by: GJC Web Design on December 26, 2020, 16:44:01 PM
depends entirely on your payment plugin and how they redirect

std Paypal uses Jquery so u would add a Jq delay

jQuery("#vmPaymentForm").delay(2000).submit();

untested

Title: Re: Thanmk you cart page
Post by: encreplus on December 26, 2020, 18:49:29 PM
Quote from: GJC Web Design on December 26, 2020, 16:44:01 PM
depends entirely on your payment plugin and how they redirect

std Paypal uses Jquery so u would add a Jq delay

jQuery("#vmPaymentForm").delay(2000).submit();


Big thanks , it helps a lot ;)
untested


Title: Re: Thanmk you cart page
Post by: encreplus on December 27, 2020, 04:53:51 AM
I went with this instead ,

setTimeout(function () {
             jQuery("#vmPaymentForm").submit();
             }, 5000);