Mike Armas
12-12-2005, 01:56 PM
Iam trying to change some stuff on the cart. When you add stuff to your cart you can fill out a form.
Then that form is add to the cart when you view it.
GWA Generator Attendee Fee
This crap.
-> (Item 1) Salutation: Dr.
-> (Item 1) Visitor_Name: mike
End of crap
I found this in the pgm-add_cart.php
// Check for custom form data
$additional_data = "";
$form_data = "";
if ($FORMFLAG == "ON") {
for ($y=1;$y<=$FORMLOOP;$y++) {
reset($HTTP_POST_VARS);
while (list($name, $value) = each($HTTP_POST_VARS)) {
$tmp_lookfor = "Item-".$y."-";
if (eregi("$tmp_lookfor", $name)) {
$tmp_dat = "";
$tmp_dat = eregi_replace("$tmp_lookfor", "", $name);
$tmp_dat = ucwords($tmp_dat);
$tmp_val = ucwords($value);
$tmp_val = stripslashes($value);
$tmp_dat = "-> (Item $y) ".$tmp_dat.": $tmp_val:br:";
$additional_data .= $tmp_dat;
}
Iam guess this is where the info is pulled out of the from. And put in the view part of the cart.
How can i change the out put of the info it out puts like this
-> (Item 1) Salutation: Dr.
-> (Item 1) Visitor_Name: mike
How do i make it do this
Dr. mike
Can anyone help out ?
Then that form is add to the cart when you view it.
GWA Generator Attendee Fee
This crap.
-> (Item 1) Salutation: Dr.
-> (Item 1) Visitor_Name: mike
End of crap
I found this in the pgm-add_cart.php
// Check for custom form data
$additional_data = "";
$form_data = "";
if ($FORMFLAG == "ON") {
for ($y=1;$y<=$FORMLOOP;$y++) {
reset($HTTP_POST_VARS);
while (list($name, $value) = each($HTTP_POST_VARS)) {
$tmp_lookfor = "Item-".$y."-";
if (eregi("$tmp_lookfor", $name)) {
$tmp_dat = "";
$tmp_dat = eregi_replace("$tmp_lookfor", "", $name);
$tmp_dat = ucwords($tmp_dat);
$tmp_val = ucwords($value);
$tmp_val = stripslashes($value);
$tmp_dat = "-> (Item $y) ".$tmp_dat.": $tmp_val:br:";
$additional_data .= $tmp_dat;
}
Iam guess this is where the info is pulled out of the from. And put in the view part of the cart.
How can i change the out put of the info it out puts like this
-> (Item 1) Salutation: Dr.
-> (Item 1) Visitor_Name: mike
How do i make it do this
Dr. mike
Can anyone help out ?