How can I give the seller one more chance to alter the total price of an order?
Hi,
I am currently working on a e-commerce website, and the basic workflow is as follows,
1) shopper adds products into the shopping cart;
2) shopper submit the order without payment;
3) seller reviews the orders submitted by shoppers, and is able to modify the total price of the order;
4) seller releases the orders back to shoppers, which might have been modified;
5) shopper pay for the order.
Obviously, steps 2~4 are different from the regular process, and I am wondering how can I accomplish these steps.
Any suggestions how/where to start? Any existing modules that can be used for this purpose?
Thanks in advance for help.
Comments
Since we're talking about
Since we're talking about Drupal Commerce, the answer is always "Yes, it can do that."
:D
So in your case, you could use the normal checkout workflow, with a few tweaks:
Now, you will need one pricing rule:
Event: Calculating the sell price of a product: admin/commerce/config/product-pricing/rules/add
Condition: "Entity has field" Parameter: Entity: [commerce-line-item:order], Field: field_lock_prices
Condition: "Entity has field" Parameter: Entity: [commerce-line-item], Field: field_locked_price
Condition: "NOT Data value is empty" Data to check: [commerce-line-item:field-locked-price:amount]
Condition: "Data comparison" Data to compare: [commerce-line-item:order:field-lock-prices], Data value: Price Locked
Action: "Set the unit price to a specific amount" Parameter: Line item: [commerce_line_item], Amount: [commerce-line-item:field-locked-price:amount]
And you could (optionally) set up your payment gateway to only show up if the order has "Price Locked" checked. And for a "No Payment" method to only show up for non-locked orders (see the 1.x branch of the "No Payment" module).
Checkout Process:
Note: I was able to get this up and running on a Kickstart 1 site in about 5 minutes. Took much longer to document the process.
Josh, thanks for the great
Josh, thanks for the great instructions !