Jump to content

 

boy

Member Since 19 Oct 2018
Offline Last Active Mar 01 2019 12:02 PM
*****

Topics I've Started

How To Hook Into Vendor Page

16 February 2019 - 01:43 PM

Hi,

 

i am writing a plugin that hooks into the vendor page.

 

My first question is: which template is responsible for the Vendor Page? If my store adress was cs-cart.com, then each "vendor x" has a page at cs-cart.com/vendor-x, cs-cart.com/vendor-y. Which template is this? If I click "more" on this page, I am redirected to dispatch companies.view of the company ID.

 

Second question: on dispatch=companies.view, there are some tabs that say "description", "reviews". I want to add more tabs there. However, I dont understand how the common/tabsbox.tpl determines which tabs are displayed. Is it not possible to use the companies:tabs hook to add more tabs?

 

Thanks!


Customizing Vendor.php?

19 October 2018 - 03:22 PM

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.