Developer forum

Forum » Ecommerce - Standard features » Override prices when placing order

Override prices when placing order

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have asituation where I need to allow the Sales Reps of a company to submit an order while impersonating another user but in the process they want to have the ability to override the prices. I am thinking an Input field on the orderline of the cart.

Is this something I can accomplish by using another parameter in the post? Something like CartCmd=Add&ProductID=PROD214&Quantity=3&ProductPrice=12.50 ?

Any other way of handling this? 

Thanks,

Adrian


Replies

 
Martin Vang
Martin Vang
Reply

Hi Adrian,

Do I understand it correctly, that you want to paying customer to impersonate somebody else and at the same time decide the price themselves?

BR

Martin

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

Not quite.

The User impersonating other user is the sales rep of the company.

This company sales building paintings. Some of their products have specific prices, while other products that are combined to form a specific color shade are very hard to estimate upfront. That's why their Sales reps are taking the orders for the customers and try to place the order  directly while correcting the price at the same time.

Usually, these orders are taken on the spot, on the construction place where the custimer does not have the ability to place the order online, as a quote so that the Sales Rep can adjust it and approve it later. That's why they requested that the Sales Rep will place the order directly.

The Price change will only be available for Sales Reps and not for the end user.

I know It might not make much sense in other use cases but in this case it's pretty useful.

I amnot saying you should develop this as a functionality, I was just wondering if it's possible and what would be the best way to do it.

Thank you,

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

Thinking more about it, I think my question was stupid to ask. Nobody should be able to override prices from URL.
We should probably use some sort of Notification to handle this.

Can you think about something along these lines?

Thank you,
Adrian

 
Martin Vang
Martin Vang
Reply

Hi Adrian,

I looked into it, and I actually have an idea: From backend, you can add a custom price to a product that is only available for a specific user. You could build some custom logic that allows a specific group of sales-people to access custom code, that creates/updates a price targeting another user. Then you can use the "normal" flow for logging on with that user and buying this product (I dont think impersonation is a good idea, when doing orders - then you allow the sales-person to create orders on behalf of somebody else without their consent).

Does this idea have any merit for you?

BR

Martin

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

It's a different approach than what I had in mind, but it might work. I will pass it to our backend devs and they will decided what option is best.

Thank you very much for your feedback.

Adrian

 

You must be logged in to post in the forum