Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / Allowing Manufacturers to loh in to Admin and view their sales

Allowing Manufacturers to loh in to Admin and view their sales

Started by prabhatm on 9 Aug 2015, 4:04 AM · Views: 4,146

Results 1 to 15 of 15
9 Aug 2015, 4:04 AM
#1
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #1 by prabhatm

Zencart gas support for Multiple manufacturers. One could sort products by "manufacturers", view the sales....etc. Great feature for supporting multiple vendors / manufacturers.

But.... if a manufacturer wants to view his own sales without any intervention of the site administrator ?

He can't !! He has to depend on the Site Administrator for all his reports.

====

It could be so simple, making life easy for everybody !

JUST ALLOW ONE MORE FIELD WHILE REGISTERING A MANUFACTURER IN THE ADMIN - ADD HIS "EMAIL" !!!

When we are allowing Manufacturer's name, Logo, Product details, we could also allow another field i.e. EMAIL !

With his email added in the Admin, the administrator could assign him a ROLE and the manufacturer can login with his email id and password, view his ORDERS independently !!! Even he can administrate his own customers !!!

====

I think adding an email field of the manufacturer to the database and filtering the orders based on his email should not be difficult.

I am new to Zencart. So I really don't want to fool around with my newly working site.

Can anybody help ?

9 Aug 2015, 8:53 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

ZenCart is not a mall script
It is designed for one to sell their own products

Zen-Venom Get Bitten

9 Aug 2015, 6:09 PM
#3
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #3 by prabhatm

Zencart allows multiple Manufacturers, right ?

9 Aug 2015, 6:49 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Zencart allows multiple Manufacturers, right ?
Allows you to enter a products manufacturer
It doe NOT allow multiple sellers to have access to their products

Zen-Venom Get Bitten

9 Aug 2015, 6:56 PM
#5
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #5 by prabhatm

When we do that, it takes load off the administrator because the Manufacturers can see their own sales and take report printout.

10 Aug 2015, 7:41 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

When we do that, it takes load off the administrator
As stated - ZenCart is not designed for this
One can not limit what they see to only their products
So if you allow them access you do it at your own risk

Zen-Venom Get Bitten

10 Aug 2015, 7:02 PM
#7
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #7 by prabhatm

If you look at the 1st Picture, you can SORT the order list. Now when the manufacturer logs in ( through ROLE ASSIGNMENT ), this list should be sorted automatically based on his email id.

In the 2nd picture, you can assign the features that he can view.

Attachment 15522

Attachment 15523

11 Aug 2015, 5:33 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

One can not limit what they see to only their products
So if you allow them access you do it at your own risk

Why not look for a mall script?

Zen-Venom Get Bitten

13 Aug 2015, 5:51 PM
#9
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #9 by prabhatm

When they are assigned ROLES, they can be restricted to what they can see. Please refer to the picture above.

When they log in the Orders are filtered based on their email. So they see the details of their own products. Again refer to the picture above.

We need just marginal extension. By adding an EMAIL field to the manufacturer's details and little modification here and there one could achieve the goal. We may not need a full mall script.

13 Aug 2015, 8:23 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #10 by kobra

You can add email to that table - but then you need code to get it and filter it and pages to represent it

Zen-Venom Get Bitten

18 Aug 2015, 4:14 PM
#11
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #11 by prabhatm

Since I am new to both PHP and Zen cart, looking for help.

19 Aug 2015, 9:19 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

prabhatM:

Zencart gas support for Multiple manufacturers. One could sort products by "manufacturers", view the sales....etc. Great feature for supporting multiple vendors / manufacturers.

But.... if a manufacturer wants to view his own sales without any intervention of the site administrator ?

He can't !! He has to depend on the Site Administrator for all his reports.

====

It could be so simple, making life easy for everybody !

JUST ALLOW ONE MORE FIELD WHILE REGISTERING A MANUFACTURER IN THE ADMIN - ADD HIS "EMAIL" !!!

When we are allowing Manufacturer's name, Logo, Product details, we could also allow another field i.e. EMAIL !

With his email added in the Admin, the administrator could assign him a ROLE and the manufacturer can login with his email id and password, view his ORDERS independently !!! Even he can administrate his own customers !!!

====

I think adding an email field of the manufacturer to the database and filtering the orders based on his email should not be difficult.

I am new to Zencart. So I really don't want to fool around with my newly working site.

Can anybody help ?
You could do that, provided you make the necessary code alterations to support your desired functionality. In addition to appropriately identifying the logged-in admin user as being authorized to a specific admin-profile, you would need to adjust all the related scripts which do database queries for data retrieval and/or reporting to specifically limit their results to the specified manufacturer. This would require first identifying the relevant manufacturers_id from the database based on their identification at login+authorization time, and then including a corresponding WHERE clause to every relevant query. Keep in mind that none of the order-related data is stored as being directly related to a given manufacturer. You would first need to look up the products on every order and use those products' product-id values to subsequently lookup the manufacturers id, and if there's a match include the order in the list to be presented later ... and then later do the real reporting/lookup process. It's a complex set of changes, but is certainly do-able if you have the skills to write the queries and the additional required code, and of course test the end results. Be sure to test whether someone can "fake" the system into revealing data they're not supposed to see, too, else you could run into some liability issues.
Hope that's helpful for steering you in the direction you need to go to meet your customized requirements.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Aug 2015, 3:35 AM
#13
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #13 by prabhatm

DrByte:

You could do that, provided you make the necessary code alterations to support your desired functionality. In addition to appropriately identifying the logged-in admin user as being authorized to a specific admin-profile, you would need to adjust all the related scripts which do database queries for data retrieval and/or reporting to specifically limit their results to the specified manufacturer. This would require first identifying the relevant manufacturers_id from the database based on their identification at login+authorization time, and then including a corresponding WHERE clause to every relevant query. Keep in mind that none of the order-related data is stored as being directly related to a given manufacturer. You would first need to look up the products on every order and use those products' product-id values to subsequently lookup the manufacturers id, and if there's a match include the order in the list to be presented later ... and then later do the real reporting/lookup process. It's a complex set of changes, but is certainly do-able if you have the skills to write the queries and the additional required code, and of course test the end results. Be sure to test whether someone can "fake" the system into revealing data they're not supposed to see, too, else you could run into some liability issues.
Hope that's helpful for steering you in the direction you need to go to meet your customized requirements.

I have been a ColdFusion user for a long time and been away from general coding for last few years. I have done full elearning system from the ground up for a very large base of concurrent users.

It's just that ZenCart has been working so wonderfully that I am perhaps simply refusing to learn a new language i.e. PHP. Because I don't need much. A few changes here and there would do the trick for me.

That's why I am seeking a little help from PHP and Zencart veterans.

Hope some help will come by.

20 Aug 2015, 4:00 AM
#14
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #14 by gilby

prabhatM:

It's just that ZenCart has been working so wonderfully that I am perhaps simply refusing to learn a new language i.e. PHP. Because I don't need much. A few changes here and there would do the trick for me.

That's why I am seeking a little help from PHP and Zencart veterans.

Hope some help will come by.Despite what you believe
What you asking for in NOT Trivial

imo: It will be a major task to provide this functionality and to test it thoroughly

Not to mention trying to keep it current with each upgrade

20 Aug 2015, 4:12 AM
#15
prabhatm avatar

prabhatm

New Zenner

Join Date:
Jun 2015
Location:
Delhi, India
Posts:
32
Plugin Contributions:
0

Post #15 by prabhatm

gilby:

Despite what you believe
What you asking for in NOT Trivial

imo: It will be a major task to provide this functionality and to test it thoroughly

Not to mention trying to keep it current with each upgrade

I respect your observations.

Since it was all about DATA READ ONLY, I thought the risk would be negligible.

Note : We are not writing anything to the DB except for the EMAIL ID of the Manufacturer. Rest is all about FILTER and DISPLAY of the data.