VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Nicola1008 on October 11, 2017, 15:06:36 PM

Title: Agent management or change shopper
Post by: Nicola1008 on October 11, 2017, 15:06:36 PM
Good morning

I need to manage the agents, I try to explain myself better.

For example, I would like to create 5 "AGENT"accounts, and I should associate another 10 "SHOPPER" accounts with each of them.

In this way, when an "AGENT" account logs into the site, it should be able to choose to place an order for one of the "SHOPPER" associated to it (through, for example, the "CHANGE SHOPPER" function that Virtuemart has for the administrator account) (in the attachment).

In addition, it is also possible to identify when an order is placed autonomously by a "SHOPPER" account and when it is placed by the "AGENT" account using a "SHOPPER" account.

Thank you!
Title: Re: Agent management or change shopper
Post by: GJC Web Design on October 12, 2017, 00:16:03 AM
I assume each group of 10 would be in their own shopper group

then recode the over ridden cart default_shopperform.php to provide ONLY the appropriate shopper group depending on the agent logged in

use some hidden shopper field for marking agent orders
Title: Re: Agent management or change shopper
Post by: Nicola1008 on October 12, 2017, 09:24:31 AM
Quote from: GJC Web Design on October 12, 2017, 00:16:03 AM
I assume each group of 10 would be in their own shopper group

then recode the over ridden cart default_shopperform.php to provide ONLY the appropriate shopper group depending on the agent logged in

use some hidden shopper field for marking agent orders

Thank you to reply me.

Can you please explain it? I don't know very much how Virtuemart works so it's difficult for me. Can you teach me how to do it?

Also... how the "change shopper" works? How can change user without insert a password but only with a selection of the user in a list?

Thank you