m-xn Posted January 13, 2006 Posted January 13, 2006 Hi all, maybe someone can point me to a solution? When someone is logged into the shop and put some intems into the cart, items showed up into shopping_cart.php, not with the quantity. The form field is empty. Btw. the shopping cart box shows the right amount of each items, but not the shoping_cart.php page. I tried to change the file to the distribution version, but this didn't helped. Maybe I have broken something somewhere else? Thanks for any help. m-xn
draxion Posted February 25, 2006 Posted February 25, 2006 Hey, I had a similar problem. Take a look at your /includes/functions/html_output.php file. I made changes to this file a while back in order to implement the contact us xss fix but I changed the wrong area. Here's what I looked for and fixed. Here's the original code that fixed my problem: <code> // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } elseif (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } </code> hope that helps. Shayne
Recommended Posts
Archived
This topic is now archived and is closed to further replies.