[TYPO3-commerce] send commerce shopping cart via email with powermail ext.
Jordan Schaan
jordan at sensolutions.com
Fri Jan 29 01:23:36 CET 2010
Hi,
I'm trying to send a user's shopping cart with the 'powermail
extension'. Things are working as expected, except for the rendering of
the shopping cart when it's sent via email - I just get a
<!--INT_SCRIPT.d6c3471f6438d9fdf5c6600dabfd4808--> happening in the
source code of the email.
I've looked into the src code, and the powermail ext is rendering my TS
code with the 'cObjGetSingle()' function and apparently, it doesn't like
the USER_INT object or COA_INT objects. Instead, according to this form
linked below, you need to use the USER or COA object;
http://www.typo3forum.net/forum/powermail/37138-kein-dynamictyposcript-sender-recipient.html
Here's my TS code;
----------------
lib.minibasket = COA
lib.minibasket {
20 < plugin.tx_commerce_pi2
20.defaultCode >
20.defaultCode = QUICKVIEW
20.templateFile = {$templatePathCommerce}basket.tmpl
}
plugin.tx_powermail_pi1.dynamicTyposcript {
products < lib.minibasket
}
----------------
I thought I was ok because I was using a COA object, but when I dumped
the TS I found out that plugin.tx_commerce_pi2 is a USER_INT object. I
tried changing it to USER object but this didn't output anything;
----------------
lib.minibasket = COA
lib.minibasket {
20 < plugin.tx_commerce_pi2
20 = USER # tried to just overwrite to a USER
20.defaultCode >
20.defaultCode = QUICKVIEW
20.templateFile = {$templatePathCommerce}basket.tmpl
}
plugin.tx_powermail_pi1.dynamicTyposcript {
products < lib.minibasket
}
----------------
Any ideas on how to make this work?
Thanks,
Jordan
More information about the TYPO3-project-commerce
mailing list