Business Desk - Changing Order Status From BizDesk

This is Interesting: Free IT Magazines  
Home > Archive > Business Desk > February 2004 > Changing Order Status From BizDesk





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing Order Status From BizDesk
andrew

2004-02-07, 9:38 am

To change order code from BizDesk we make the following changes to the
Retail site files, order list is now displayed in order details, but
changes to order code are always lost (there is always New Order
status). We appreciate any comments and suggestions. All we need is to
make possible change order status from BizDesk for the specific order
to custom value (Completed e.t.c.).

in config/orders.xml
chaged code to add new buttons

<tasks>
<task icon='taskback.gif' id='back'>
<goto action='orders/orderstatus_list.asp' />
<name>&lt;U&gt;B&lt;/U&gt;ack</name>
<key>b</key>
<tooltip>Back to Order Status List</tooltip>
</task>
<task icon='tasksaveback.gif' id='saveback'>
<postto action='orders/orderstatus_view.asp'
formname='saveform' />
<name>Bac&lt;U&gt;k&lt;/U&gt;</name>
<key>k</key>
<tooltip>Save Order Status and back to Order Status
List</tooltip>
</task>
<task icon='tasksave.gif' id='save'>
<postto action='orders/orderstatus_view.asp'
formname='saveform' />
<name>&lt;U&gt;S&lt;/U&gt;ave</name>
<key>s</key>
<tooltip>Save Order Status</tooltip>
</task>
</tasks>

2. in orders/orderstatus_view.asp
a.
in sub GetOrderFormData()
after loading order

insert lines

if Request.Form("update")="true" then
With g_oOrderGroup

..value("order_status_code")=Request.Form("order_status_code")
.saveasorder
end with
end if

b.
in function GetXMLOrderSummaryData(RandomOrderForm)
change function to retrive order_status_code instead of
status names

sBuffer = sBuffer & "<order_status_code>" &
g_oOrderGroup.Value("order_status_code") &"</order_status_code>"


c.
in html head on this page add procedure to update buttons
view

<SCRIPT LANGUAGE='VBScript'>
sub showbutt()
EnableTask("save")
EnableTask("saveback")
end sub
</SCRIPT>

d.
in xml code change

<select id='order_status_code' required='yes'
onchange='showbutt'>
<name><%=L_OrderStatusLabel_Text%> </name>
<tooltip><%=L_OrderStatus_ToolTip%> </tooltip>
<select id='order_status_code'>
<option value='4' >New Order</option>
<option value='8' >Our Custom Order</option>
</select>
</select>


e.
on buttom of page change form name to "saveform"
add to hidden fields
<INPUT TYPE='hidden' ID='ordergroup_id'
NAME='ordergroup_id'
value='<%=g_sOrderGroupId%>'>
<INPUT TYPE='hidden' ID='update' NAME='update'
value='true'>
Max Akbar

2004-02-07, 9:38 am

When you submit the change you need to get the Order Data then update the
OrderForm with your Order Status Code then save the Order Data.

Good luck,
-Max

"andrew" <avl58ripn@yahoo.com> wrote in message
news:70531102.0312250713.323c9d2b@posting.google.com...
> To change order code from BizDesk we make the following changes to the
> Retail site files, order list is now displayed in order details, but
> changes to order code are always lost (there is always New Order
> status). We appreciate any comments and suggestions. All we need is to
> make possible change order status from BizDesk for the specific order
> to custom value (Completed e.t.c.).
>
> in config/orders.xml
> chaged code to add new buttons
>
> <tasks>
> <task icon='taskback.gif' id='back'>
> <goto action='orders/orderstatus_list.asp' />
> <name>&lt;U&gt;B&lt;/U&gt;ack</name>
> <key>b</key>
> <tooltip>Back to Order Status List</tooltip>
> </task>
> <task icon='tasksaveback.gif' id='saveback'>
> <postto action='orders/orderstatus_view.asp'
> formname='saveform' />
> <name>Bac&lt;U&gt;k&lt;/U&gt;</name>
> <key>k</key>
> <tooltip>Save Order Status and back to Order Status
> List</tooltip>
> </task>
> <task icon='tasksave.gif' id='save'>
> <postto action='orders/orderstatus_view.asp'
> formname='saveform' />
> <name>&lt;U&gt;S&lt;/U&gt;ave</name>
> <key>s</key>
> <tooltip>Save Order Status</tooltip>
> </task>
> </tasks>
>
> 2. in orders/orderstatus_view.asp
> a.
> in sub GetOrderFormData()
> after loading order
>
> insert lines
>
> if Request.Form("update")="true" then
> With g_oOrderGroup
>
> .value("order_status_code")=Request.Form("order_status_code")
> .saveasorder
> end with
> end if
>
> b.
> in function GetXMLOrderSummaryData(RandomOrderForm)
> change function to retrive order_status_code instead of
> status names
>
> sBuffer = sBuffer & "<order_status_code>" &
> g_oOrderGroup.Value("order_status_code") &"</order_status_code>"
>
>
> c.
> in html head on this page add procedure to update buttons
> view
>
> <SCRIPT LANGUAGE='VBScript'>
> sub showbutt()
> EnableTask("save")
> EnableTask("saveback")
> end sub
> </SCRIPT>
>
> d.
> in xml code change
>
> <select id='order_status_code' required='yes'
> onchange='showbutt'>
> <name><%=L_OrderStatusLabel_Text%> </name>
> <tooltip><%=L_OrderStatus_ToolTip%> </tooltip>
> <select id='order_status_code'>
> <option value='4' >New Order</option>
> <option value='8' >Our Custom Order</option>
> </select>
> </select>
>
>
> e.
> on buttom of page change form name to "saveform"
> add to hidden fields
> <INPUT TYPE='hidden' ID='ordergroup_id'
> NAME='ordergroup_id'
> value='<%=g_sOrderGroupId%>'>
> <INPUT TYPE='hidden' ID='update' NAME='update'
> value='true'>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com