ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Handle array

vismay 17 Jan, 2018
Hello,

with a multiplier I manage to get the following result:

 [Model] => Array
        (
            [0] => Array
                (
                    [colore] => 01
                    [taglia] => XXS
                    [quantita] => 45
                )

            [1] => Array
                (
                    [colore] => 02
                    [taglia] => XXS
                    [quantita] => 34
                )

        )

How can I get now the list in readable form in a email?

In attachment how I set up the field name and ID.

Thanks
Max_admin 19 Jan, 2018
Answer
Hi vismay,

You will need to use a "Loop" action, set the "data provider" to {data:Model}, and enable the "return result as var", make sure the loop is before the email, then use your code in the loop body:
Color#{var:loop_name.key}: {var:loop_name.row.colore}<br>

In the email body you can now use {var:loop_name} to get the full output of the loop.

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com