Post by tarikvps256 » 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
my opencart v 3.0.2.0 and default theme
and extension https://www.opencart.com/index.php?rout ... ch=paysera
Last edited by tarikvps256 on Sun Sep 19, 2021 5:42 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jan 13, 2018 1:42 am

Post by straightlight » Fri Sep 17, 2021 6:38 pm

WTH. OC version.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by by mona » 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

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by straightlight » Fri Sep 17, 2021 6:43 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kestas » Fri Sep 17, 2021 8:32 pm

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/

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by straightlight » Fri Sep 17, 2021 8:56 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by by mona » 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:

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by thekrotek » 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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by kestas » Fri Sep 17, 2021 10:26 pm

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.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by kestas » Fri Sep 17, 2021 10:27 pm

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 ;)

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by agatha65 » Sat Sep 18, 2021 12:20 am

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.

Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
Image


User avatar
Active Member

Posts

Joined
Fri Mar 16, 2012 10:18 am
Location - Canada, QC

Post by tarikvps256 » Sat Sep 18, 2021 12:34 am

sorry i use v3.0.2.0 and default theme ...
and extension https://www.opencart.com/index.php?rout ... ch=paysera

thanks

New member

Posts

Joined
Sat Jan 13, 2018 1:42 am
Who is online

Users browsing this forum: No registered users and 50 guests