Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

403 Access Denied Error When Accessing Custom Dispatch In Vendor Panel Rate Topic   - - - - -

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 04 February 2020 - 09:39 AM #1

Hi!

 

I'm attempting to create a custom dispatch for the backend of the site. I have a controller that I placed in app/addons/my_changes/backend, and I placed the .tpl file in design/backend/templates/addons/my_changes/views/<name of my custom dispatch>. 

 

I'm able to access and view the page on the admin panel, however when I tried going to the same page on the vendor panel, I get a 

 

403 Access denied
You don't have permission to access the page.

 

 

Any idea why the vendor panel can't see my custom dispatch?



 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1400 posts

Posted 04 February 2020 - 02:06 PM #2

Hello

 

Please try

 

design/backend/templates/addons/my_changes/views/my_changes/<name of my custom dispatch>. tpl

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 05 February 2020 - 02:45 AM #3

Hello

 

Please try

 

design/backend/templates/addons/my_changes/views/my_changes/<name of my custom dispatch>. tpl

 

Best regards

Robert

 

 

Hi, sorry tried creating that directory and placing the tpl file straight there, that didn't work. Transferring the .tpl files there actually made it 404 even in the admin panel.

 

Right now I have I have a .tpl named view.tpl, which is stored in

 

design/backend/templates/addons/my_changes/views/<name of my custom dispatch>/view.tpl

 

When I go to

 

<admin_panel>?dispatch=<custom_dispatch>.view 

 

it works. But when I go to

 

<vendor_panel>?dispatch=<custom_dispatch>.view 

 

it gives me the error.

 

 

Is this a permissions thing? If so, where do I change it?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21786 posts

Posted 05 February 2020 - 07:59 AM #4

Yes, you should extend the following schema with vendor permissions

 

app/schemas/permissions/vendor_multivendor.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 05 February 2020 - 08:10 AM #5

Yes, you should extend the following schema with vendor permissions

 

app/schemas/permissions/vendor_multivendor.php

 

 

That worked, thank you!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21786 posts

Posted 05 February 2020 - 01:24 PM #6

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)