dstebo Posted October 1, 2011 Posted October 1, 2011 Hi, I am using the contribution http://addons.oscommerce.com/info/2618 how do I receive the text input in the form this code: require('includes/application_top.php'); if ($cart->count_contents() == 0) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); } $produtos = $cart->get_products(); $subject = "Contact"; $message = '<HTML><HEAD><TITLE>email</TITLE></HEAD><BODY><FONT face="Tahoma, Verdana, Arial" size=2> <br><b>Products<b/><br></font><table border=1 width=100%>';$prod_lin = ' <TR bgColor="#ffffcc"><TD width=361><FONT face="Tahoma, Arial" size=1><STRONG>Product</STRONG></FONT></TD> <TD width=105><FONT face="Tahoma, Verdana, Arial" size=1><STRONG>Color</STRONG></FONT></TD> <TD width=105><FONT face="Tahoma, Verdana, Arial" size=1><STRONG>Cod</STRONG></FONT></TD> <TD width=69><FONT face="Tahoma, Verdana, Arial" size=1><STRONG>Qts</STRONG></FONT></TD> <TD width=89><FONT face="Tahoma, Verdana, Arial" size=1><STRONG>Price</STRONG></FONT></TD> <TD width=80><FONT face="Tahoma, Verdana, Arial" size=1><STRONG>Price Total</STRONG></FONT></TD></TR>';for($i=0;$i<sizeof($produtos);$i++) { $prod_pric = ($produtos[$i]['price']==0?'Price':$currencies->format($produtos[$i]['price'])); $prod_tota = ($produtos[$i]['price']==0?'Price':$currencies->format($produtos[$i]['price'] * $produtos[$i]['quantity'])); $prod_lin .= '<TR><TD><FONT face="Tahoma, Verdana, Arial" size=1>' .$produtos[$i]['name'].' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>' .$produtos[$i]['products_text_attributes_name'].' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>' .$produtos[$i]['model'].' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>' .$produtos[$i]['quantity'].' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>' .$prod_pric.' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>'.$prod_tota.' </FONT></TD></TR>'; } $prod_lin .= '<TR bgColor="#cccccc"><TD><FONT face="Tahoma, Verdana, Arial" size=2><STRONG>TOTAL</STRONG></FONT></TD><TD> </TD><TD> </TD><TD> </TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>'.$currencies->format($cart->show_total()).' </FONT></TD></TR>'; $message .= $prod_lin; $message .= '</table></body></html>'; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: $firstname <$email_address>\n"; mail(STORE_OWNER_EMAIL_ADDRESS, $subject, $message, $headers); $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "To: $firstname <$email_address>\n"; $headers .= "From: ".STORE_OWNER."<".STORE_OWNER_EMAIL_ADDRESS.">\n"; mail($email, $subject, $message, $headers); $cart->reset(TRUE); tep_session_unregister('sendto'); tep_session_unregister('comments'); well placed but have not received information entered in input field .$produtos[$i]['products_text_attributes_name'].' </FONT></TD><TD><FONT face="Tahoma, Verdana, Arial" size=2>'
dstebo Posted October 3, 2011 Author Posted October 3, 2011 when I receive email appears in the input that was filled as ARRAY
Recommended Posts
Archived
This topic is now archived and is closed to further replies.