Miva Merchant 4 Module FAQs » Order Status (BROK_ORDERSTATUS)


Adding Code to Insert Text Into a Notes Field Upon Order Creation

I would like to insert some text into the notes field for the order when it is created. How can I do that?

This isn't currently a feature of the module. However, if you're up for some light coding you can use the code:

<MvDO FILE="../fulfill/BROK_ORDERSTATUS.mv" NAME="l.opened" VALUE="{Status_Open_Store()}">
<MvFIND NAME="StatusOrders" VALUE="{g.Order_ID}" EXACT>
<MvIF EXPR="{NOT StatusOrders.d.EOF}">
<MvASSIGN NAME="StatusOrders.d.note" VALUE="{'Order received and being prepared for Shipping'}">
<MvUPDATE NAME="StatusOrders">

to insert the text (in this case: Order received and being prepared for Shipping) into the note.

Last update: 2003-07-30 01:32
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category