For a client I need to do a modification. The client wants to use the catalog (main site) to show products to the clients in the shop, but would have directly a link to the admin panel. (so that the admin panel opens and the client can change directly the stock or something else). (mainly the stock, because they have also a normal shop, and he would update the stock).
Thanks
Wouter
Technically, it could be done, by adding an admin User Group, individually, by defining either GLOBAL
credentials, or then individual access data, allowing them, to use SELECTED Admin Sections, by setting
the RIGHTS for such in the Admin User Group Section.
For this, use this first Code below, unchanged, either as OcMod, or then as VqMod as I do, (VqMOD v.2.6.x!)
to add a nice Admin Link Button onto the product page, visible only for logged-in Admin Users, in the
product.tpl file.
Clicking it will lead the logged Admin User directly to the Admin Section, as linked by Code Default.
See the image below!
---
Edit button in front-end free, it works without a single problem in my OC v.2.2 !
http://www.opencart.com/index.php?route ... n_id=21557
---
likely not, what you need, and just to mention it, a free multi-functional admin edit Extension:
Quik edit all what you want
http://www.opencart.com/index.php?route ... n_id=27312
---
Paid extensions for such:
---
Live edit product cart frontend without admin
http://www.opencart.com/index.php?route ... n_id=25501
---
Product statistics and Edit links in FrontEnd
http://www.opencart.com/index.php?route ... n_id=17036
---
Frontend edit
http://www.opencart.com/index.php?route ... n_id=25342
---
Just be aware, and make sure, that you only allow them, to see and 'handle', what they need to see !

Ernie
PS. A similar routine, in/for the Default 1.5.6.4 Theme, exists in the free russian OC Shop CMS v.1.5.6.4.1
Just to mention this !

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
https://www.torshammarens.se/vinthundsselar/italienska-vinthundselar/italiensk-vinthundsele.html-3
Code: Select all
http://www.torshammarens.se/vinthundsselar/italienska-vinthundselar/italiensk-vinthundsele.html-3
I only see in the extension, that it should be able, to handle both ways.
But if you access the admin section in http:// mode, possibly, this routine likely could be changed
the Uncoder-short-cut way, from:
Code: Select all
if (!$secure) {
$url = $this->domain;
} else {
$url = $this->ssl;
}
Code: Select all
if (!$secure) {
$url = $this->domain;
} else {
$url = $this->domain;
}
to:
Code: Select all
if (!$secure) {
$url = $this->ssl;;
} else {
$url = $this->ssl;
}
That's usually the way, how I find out on such, by simple trail and error !

Let me know!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
if (!$secure) {
$url = $this->domain;
} else {
$url = $this->domain;
}

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
$url = $this->domain;
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.

and since I could not test it, I just wanted to make sure, it works !
Thanks!

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: No registered users and 5 guests