Jump to content

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

Customizing Vendor.php? Rate Topic   - - - - -

 
  • boy
  • Member
  • Trial users
  • Join Date: 19-Oct 18
  • 20 posts

Posted 19 October 2018 - 03:22 PM #1

Hi,

 

the default vendor.php backend is pretty complicated for our vendors. We dont want to hold our vendors' hands while they're setting up their payment, shipment and products - but with the default backend a lot of explanation is necessary.

 

Thats why we want to make changes to the backend. For instance:

 

Vendors have access to some options that should be admin only

Vendors have access to confusing options that are unecessary for them to change

  • Options type, Exceptions type, and a lot of stuff on the "create product" page.
  • Taxes. We only have 1 tax that should always be selected.

Many of the menu items serve no real purpose for vendors

Unfortunately after searching these forums I couldnt find a plausible way to make changes like this to the backend, as this would require going through hundreds of scattered files, using smarty compiler which Im unfamiliar with.

 

My question is, is there any way to make changes to /vendor.php like I described?

 

Assuming there is no better way than going into the files, can someone suggest ways to make this easier for unexperienced devs? Like, where can I find the scripts used in "add product"?

 

I urge the cs cart team to make changing the vendor backend possible! Its a big problem that could make your amazing software much better.

 

Thanks for any help.



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

Posted 24 October 2018 - 12:56 PM #2

Hello

 

Maybe it will be useful?

https://marketplace....permission.html

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

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


 
  • boy
  • Member
  • Trial users
  • Join Date: 19-Oct 18
  • 20 posts

Posted 25 October 2018 - 03:12 PM #3

Even though I have accomplished what I need by editing core files, this plugin might be useful.

 

Does it also hide items from home dashboard? For example, I have hidden "Website" from my menu, but it still appears on the Dashboard below "Vendors".

 

Can you control some permissions like product popularity? Is it compatible with addons?

 

Thanks for your help



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11998 posts

Posted 25 October 2018 - 09:33 PM #4

The only core files you should have to change for these type of modifications are any addon menu schemas that add addons to the menus.  There are ways to get around it, but they are a bit kludgy. 

 

The issue is the priority at which addons run determines their load order.  Higher priority runs last in php but runs first in templates.  So it's entirely possible that addons might be adding their menu items after you've effectively disabled them.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.