Re: Pulling Custom Order Field data into the Template Based Batch Reports
Not sure I understand the question. I am reading the custom field the same exact way on the invc, batch rpt, conf emails. The custom field data is available and present in the manage orders. The same data isn't displayed when the order is placed and the conf email are generated, but show up when creating the conf email in manage orders.
So, why is it different when the same same template is executed when the order is placed compared to a post process in admin?
NOTES you might need to know if I haven't already explained:
The only differences might be that I've replaced &mvt: with &mvte:
I am obviously repeating and flagging in this code to decide on the global or the local var.
As I also mentioned, I am writing to the Basket in the OPAY screen and reading the order data in following screens.
It makes sense to me that once the basket data (all the data including the custom field data) is transferred to Order, then reading the Order on the invoice makes perfect sense.
It makes sense also that if I needed the custom order data prior to an order generated, I would read the basket data. Something I am not doing here.
Thanks.
Originally posted by Brennan
View Post
So, why is it different when the same same template is executed when the order is placed compared to a post process in admin?
Code:
<mvt:item name="customfields" param="Read_Order( g.order_id, 'addinfo' )" /> -*-&mvt:customfields;<br/> <mvt:comment>Not the global here</mvt:comment> <mvt:item name="customfields" param="Read_Order( l.settings:order:id, 'addinfo' )" /> *-* &mvt:customfields;<br/>
The only differences might be that I've replaced &mvt: with &mvte:
I am obviously repeating and flagging in this code to decide on the global or the local var.
As I also mentioned, I am writing to the Basket in the OPAY screen and reading the order data in following screens.
It makes sense to me that once the basket data (all the data including the custom field data) is transferred to Order, then reading the Order on the invoice makes perfect sense.
It makes sense also that if I needed the custom order data prior to an order generated, I would read the basket data. Something I am not doing here.
Thanks.
Comment