Order data in ORDER_SAVED massage.

fb2003

No avatar

2007-02-28 01:21

Hello,

I customized order.php so every order gets an random 6 character OrderCode. This all went pretty smooth.

I want to display this OrderCode directly after an order is saved. So I added $aData[sOrderCode] to the <!-- BEGIN ORDER_SAVED --> section in messages.tpl but the code isn't printed. After that I edited the destination of the order_delivery form , from "?p=$p" to "?p=$p&amp;iOrder=$iOrder".
But still the code isnt shown. And I know for sure it's saved properly.

Can somebody help me with this?

Frank.

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-02-28 08:49

fb2003 - this $aData[sOrderCode] is defined in actions_client/orders.php in elseif( $a == 'Delivery' ){ section?

fb2003

No avatar

2007-02-28 12:46

treewood - No I defined $OrderCode in core/orders.php and set it to be saved as $aData[sCompanyName]. So where I earlier said (post #1) I used $aData[sOrderCode] I actually use $aData[sCompanyName].

Should I place the code generator function in actions_client/orders.php?

treewood (OpenSolution)

Avatar: treewood

2007-02-28 13:16

Then if $aData[sCompanyName] is sOrderCode then display $aData[sCompanyName] not $aData[sOrderCode]

fb2003

No avatar

2007-02-28 20:18

I only used sOrderCode so I didn't cause any confusion to the people who read it. I fully integrated the OrderCode function in the admin section, orders_print, etc. The only thing I have trouble with is the diplaying of the OrderCode in the ORDER_SAVED message (.tpl)

what do you suggest?

fb2003

No avatar

2007-03-09 14:14

anybody?

treewood (OpenSolution)

Avatar: treewood

2007-03-09 14:58

fb2003 - try then this $_POST[sOrderCode] in this template

Back to top
about us | contact