How to remove the language after payment

  • Posts: 241
  • Thank you received: 5
9 years 5 months ago #233308

-- HikaShop version -- : 2.6.1

Hi guys,

As you can see in this screencapture: vimeo.com/158926519/50adb45dde

THANK_YOU_FOR_PURCHASE and GO_BACK_TO_SHOP are briefly displaying right after PayPal Pro Payment...

We would like to disable both of these as they are not necessary as we only need the final screen.

How do we do this? Do we simply custom override in languages and set bot values to ""?

PS. GO_BACK_TO_SHOP should only be for authorize i believe as it is under the authorize area in the languages

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 5 months ago #233327

Hello,

How do we do this? Do we simply custom override in languages and set bot values to ""?

Doing it will only prevent the message from displaying but you'll still be redirected to that page. so if you want to totally skip that step, customizing the _end file of your payment plugin will probably do the job.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
9 years 5 months ago #233396

Can you be more specific as to what to change?

We are using PayPal Pro and have selected the return url to be the final page you see.

Thanks, Chris

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #233405

Hi,

If you change the language translations, it will affect the other payment methods.
If you want to remove these only for PayPal Pro, it's easier to just add CSS to hide that area like that:
#hikashop_paypalpro_thankyou{ display: none; }

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
9 years 4 months ago #234113

Ok. I understand but that still creates a additional ping of the server/url which is not necessary.

We have some events that have sold out with 100s of entrants in the first minute and so the step matters and using css to hide is not solving the issue.

Any additional thoughts?

Thanks, Chris

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 4 months ago #234130

Hi,

I don't really see the problem. The CSS will be loaded anyway on the page.
But you sure can do it differently. For example, you can directly remove that area in the file plugins/hikashoppayment/paypalpro/paypalpro_thanks.php

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum