Announcement
Collapse
No announcement yet.
Need some really basic help with template based batch reports
Collapse
X
-
The existing Template Based Batch Reports will also have some examples of gathering pretty much everything you would want from the orders.
- 1 like
-
Here is a code snippet to see the variables and values of an array:
Code:<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(VARIABLE FOR ARRAY HERE), ',', '<br>'))" />
The snippet below will output the variables and values of a product within the item array.
Code:<!-- EXAMPLE: --> <mvt:foreach iterator="order" array="admin_order:orders"> <mvt:foreach iterator="item" array="order:items"> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:item), ',', '<br>'))" /> </mvt:foreach> </mvt:foreach>
Last edited by Nick; 12-10-19, 09:32 AM.
- 1 like
Leave a comment:
-
Need some really basic help with template based batch reports
I'm trying to build a custom .csv with a batch report template. Found some help here, but I'm bad so I need more help with the template language... I can see it has a loop for orders which is perfect:
Code:<mvt:foreach iterator="order" array="admin_order:orders"> </mvt:foreach>
Code:<mvt:foreach iterator="???" array="???"> </mvt:foreach>
Leave a comment: