Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty quantity field in shopping_cart.php


m-xn

Recommended Posts

Posted

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

  • 1 month later...
Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...