Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Emailing Array Data onSubmit


Go to End


2 Posts   1100 Views

Avatar
novaweb

Community Member, 116 Posts

10 August 2011 at 4:54pm

Hey Team,

A little stuck on this one. We are working with eCommerce and wish to be able to email the contact details of the customer, as well as a summary of the products ordered.

These order details are held in ShoppingCart::get_items();

This is as far as we got, line 15 is the one we're trying to sort out! http://pastie.org/2348667

Avatar
Willr

Forum Moderator, 5523 Posts

10 August 2011 at 7:41pm

I think you want to use populateTemplate() to add variables - http://doc.silverstripe.org/sapphire/en/topics/email