Page 1 of 1

how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 6:12 pm
by tarikvps256
hello everybody , i want to add Paysera payment gateway , i added a new project and they told me
'' add the code to the site header <head> </head> area and press the '' check button'' !!
so where have i add this code in the script plz !!!!
thanks
my opencart v 3.0.2.0 and default theme
and extension https://www.opencart.com/index.php?rout ... ch=paysera

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 6:38 pm
by straightlight
WTH. OC version.

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 6:41 pm
by by mona
No OC version posted - no theme or extensions posted - the forum rules can be found here viewtopic.php?f=176&t=200480
The reason these rules are in place is because it makes a difference in so many circumstances and the answer may or may not be correct for other versions.

I want to answer in your header
but I will answer presuming you are using OC3 and presuming you are using default theme and presuming there is no extension to effect this.
ideally you would add it to catalog/controller/common/header.php
you can also add it via catalog/view/theme/default/template/common/header.twig

and ideally you would not edit core files and do this via OCMOD

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 6:43 pm
by straightlight
by mona wrote:
Fri Sep 17, 2021 6:41 pm
No OC version posted - no theme or extensions posted - the forum rules can be found here viewtopic.php?f=176&t=200480
The reason these rules are in place is because it makes a difference in so many circumstances and the answer may or may not be correct for other versions.

I want to answer in your header
but I will answer presuming you are using OC3 and presuming you are using default theme and presuming there is no extension to effect this.
ideally you would add it to catalog/controller/common/header.php
you can also add it via catalog/view/theme/default/template/common/header.twig

and ideally you would not edit core files and do this via OCMOD
Or via Event Triggers.

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 8:32 pm
by kestas
If you are using the OC2.x.x version, Locate the file (for the default theme)

Code: Select all

catalog/view/theme/default/template/common/header.tpl
Locate the

Code: Select all

</head>
tag in it and append it above
Should be like:

Code: Select all

  <meta name = "verify-paysera" content = "************************">
</head>
The same with version OC3.0.x.x.x Just only in file header.twig
You can use OCMOD to implement the code for these versions. The latest OC versions does not support OCMOD, so you must use events or simply hardcode it to file directly (hardcoded will work but this is not recommended).
Keep in mind that "paysera" does not support multistore. You will be not able to use several projects in the same module for your multistore shop.
I can suggest better and cheaper solution than paysera. Contact https://www.kevin.eu/

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 8:56 pm
by straightlight
Or, to use a custom theme to make these modifications to avoid creating line conflicts with the default theme by other extensions that could affect the same line on the same file of the same directory.

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 9:03 pm
by by mona
kestas wrote:
Fri Sep 17, 2021 8:32 pm
The latest OC versions does not support OCMOD
Does it not? Mine does OC3.0.3.8
Nothing like making simple things become complicated
:laugh:

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 9:22 pm
by thekrotek
by mona wrote:
Fri Sep 17, 2021 9:03 pm
Does it not? Mine does OC3.0.3.8
Nothing like making simple things become complicated
:laugh:
This was always a feature of OC development: take what works good, make it work bad or replace with something stupid. Remove VQMod - add OCMod, remove TPL - add stupid TWIG, remove OCMod - force every OC user to install a 3rd party OCMod extension. Years go by, crazy OC development stays.

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 10:26 pm
by kestas
by mona wrote:
Fri Sep 17, 2021 9:03 pm
kestas wrote:
Fri Sep 17, 2021 8:32 pm
The latest OC versions does not support OCMOD
Does it not? Mine does OC3.0.3.8
Nothing like making simple things become complicated
:laugh:
Sorry I mean this latest version 4.0.0.0_b. You should to know that.
So it’s crazy, but "events" don’t seem to be a very good solution to solve all the problems.

Re: how to add Paysera payment gateway !!

Posted: Fri Sep 17, 2021 10:27 pm
by kestas
thekrotek wrote:
Fri Sep 17, 2021 9:22 pm
by mona wrote:
Fri Sep 17, 2021 9:03 pm
Does it not? Mine does OC3.0.3.8
Nothing like making simple things become complicated
:laugh:
This was always a feature of OC development: take what works good, make it work bad or replace with something stupid. Remove VQMod - add OCMod, remove TPL - add stupid TWIG, remove OCMod - force every OC user to install a 3rd party OCMod extension. Years go by, crazy OC development stays.
Completely agree ;)

Re: how to add Paysera payment gateway !!

Posted: Sat Sep 18, 2021 12:20 am
by agatha65
tarikvps256 wrote:
Fri Sep 17, 2021 6:12 pm
hello everybody , i want to add Paysera payment gateway , i added a new project and they told me
'' add the code to the site header <head> </head> area and press the '' check button'' !!
so where have i add this code in the script plz !!!!
thanks
It is just a verification meta tag.
Put it after the analytics script in admin analytics extension and it will appear in <head> section.

Re: how to add Paysera payment gateway !!

Posted: Sat Sep 18, 2021 12:34 am
by tarikvps256
sorry i use v3.0.2.0 and default theme ...
and extension https://www.opencart.com/index.php?rout ... ch=paysera

thanks