I would like to configure Phone Order Manager so that I can copy entire orders into the basket to make "re-ordering" easier. Can I do this?
This is possible (and relatively simple) if you're using our Order Status Manager.
Here's how to go about setting it up:
On the Phone Order Manager's "Third party tokens" tab register the Order Status Manager (enter BROK_ORDERSTATUS for both the module and token fields). Then in the "Process update tokens" field add:
%module1|BROK_ORDERSTATUS|copy_order|%
Then in the "Main page template" on the "Main page" tab add the code (where you want to display the field into which you enter the Order id):
Copy Order: %module|BROK_ORDERSTATUS|copy_field|%
%updatebutton%
And that's all that's necessary.
The token:
%module|BROK_ORDERSTATUS|copy_field|%
displays a text field:
which collects the order to copy. The token
%updatebutton%
simply displays the "Update" button and can be replaced with any "submit" button. For example:
Similarly, instead of using the token %module|BROK_ORDERSTATUS|copy_field|% you could use your own form field with the name CopyOrder to change the size, set a maximum, etc.
If you enter an incorrect Order ID the module will define a message which will be displayed right above the %module|BROK_ORDERSTATUS|copy_field|% token. If you would prefer to display the message differently you can check the variable g.OrderNotFound to determine if the order was not found and then display whatever you want:
%begin_if|g.OrderNotFound|%
the order wasn't found!
%end_if%
Similarly, if you would like to display the message itself somewhere else, you will find it in the variable g.OrderCopyMessage and you can display it with:
%var|g.OrderCopyMessage|%
If the order is sucesffully copied the variable g.OrderCopied will be set to 1, so you could use this in a test such as:
%begin_if|g.OrderCopied|%
Order %var|g.CopyOrder|% was succesfully copied
%end_if%
Message
Last update: 2007-11-27 15:04
Author: Thor
Revision: 1.1
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2939 views:
Adding Tokens to Evaluate Expressions - 2867 views:
Is there a way to "Limit" the number of ... - 2791 views:
Why won't you call me for technical support? I ... - 2678 views:
Are license keys valid for more than one store? ... - 2577 views:
I'm trying to enter a license key and get ... - 2566 views:
How do I install a module? - 2409 views:
How do I check for a module upgrade? - 2372 views:
How can display and change the parameters of an ... - 2218 views:
The total on my checkout pages are not correct. ... - 2016 views:
I have select and radio type attributes in my ...
















