Post by deveb » Tue Nov 08, 2016 4:22 pm

Hi, I have just started new project using Opencart 2.3.0.2 (latest avaialable version).

But when I tried to use extension my own extension or third party and save settings a I got an error

Code: Select all

You do not have permission to access this page, please refer to your system administrator.
This problem has been already discussed here viewtopic.php?t=169033, but this is just compatibility fix that will work with VQMod.

I have tried to find any guidelines, changelog or anything that can help to find out correct way of writing extensions for OpenCart 2.3.0.2, but unfortunately nothing.

Could someone provide any guidelines or changes to be done in existing extension to make it work.

P.S. If you check all permissions in User Groups (including installed extension) it will throw an error but save settings of this extension.

Newbie

Posts

Joined
Tue Nov 08, 2016 4:08 pm

Post by paulfeakins » Tue Nov 08, 2016 6:58 pm

deveb wrote:P.S. If you check all permissions in User Groups (including installed extension) it will throw an error but save settings of this extension.
What error?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by deveb » Tue Nov 08, 2016 11:14 pm

paulfeakins wrote:
deveb wrote:P.S. If you check all permissions in User Groups (including installed extension) it will throw an error but save settings of this extension.
What error?
The same error

Code: Select all

You do not have permission to access this page, please refer to your system administrator.
I have found that extensions should change POST part for example
It is

Code: Select all

		$this->response->redirect($this->url->link('extension/extension_name', 'token=' . $this->session->data['token'], 'SSL'));
But should be

Code: Select all

		$this->response->redirect($this->url->link('extension/extension', 'token=' . $this->session->data['token'], 'SSL'));

I've changed this line, and it really works, but redirects to the main extension page.

I am so disappointed, such a great community, but no information for developers how to write valid code for new version of OpenCart and weird solutions and one paid plugin.

Please add guidelines or any other information that helps to migrate and modify existing extensions.

Newbie

Posts

Joined
Tue Nov 08, 2016 4:08 pm

Post by OSWorX » Wed Nov 09, 2016 3:08 am

1. if you want to redirect to another page, then change that code to whatever you like:

Code: Select all

'extension/extension'
2. if you are developer, then you should be able to read the existing code and use that as base

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Wed Nov 09, 2016 3:09 am

deveb wrote:[I am so disappointed, such a great community, but no information for developers how to write valid code for new version of OpenCart and weird solutions and one paid plugin. Please add guidelines or any other information that helps to migrate and modify existing extensions.
Well, a Developer, familiar with the OpenCart MVC(L) Framework, VqMod and OcMod, should not have a Problem, to find out the differences between OC v.2.3.x and older OC Versions. A simple File Synchronizer like winMerge could be used, to easy find different Files/Content, and File Locations, in two Versions of OC, troughout the entire Software.

In addition, the Web is full of informations, it may just take some time, to find it all. It's like in real Life, hard work, at least, if one plan's, to someday know, work and act like a Dev!

But when it comes to paid Extensions, no-one else but the Mod-Creator, would, legally, be able to assist on such anyway, just to mention this!
Good Luck ;)
Ernie

viewtopic.php?f=24&t=131995
http://www.opencartexpress.com/how-to-use-ocmod
http://ocextensions.co.uk/ocmod/ocmod
viewtopic.php?f=183&t=165175#p628362
https://github.com/vqmod/vqmod
viewtopic.php?f=20&t=168491&p=640689#p640689
viewtopic.php?f=22&t=128115#p507217
https://code.tutsplus.com/tutorials/alt ... -cms-22330
https://multimerch.com/blog/modifying-o ... -vs-ocmod/
https://isenselabs.com/books/allbooks
http://docs.opencart.com/developer/module/

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 19 guests