Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

buckman

Archived
  • Posts

    3
  • Joined

  • Last visited

About buckman

  • Birthday 12/04/1975

Profile Information

  • Real Name
    toni
  • Gender
    Male
  • Location
    Porto Cristo, Spain

buckman's Achievements

  1. First, sorry for my english, now go to the solution: I had the same problem, but I have the solution. The problem is when the servers run MySql 5, on MySql 4.xx works perfect. Well, you must add this code at line 87 in the quick_stockupdate.php file: $stock_update=$_POST['stock_update']; The result must be something like this: <?php //Line 86 $stock_update=$_POST['stock_update']; //Line 87 if ($HTTP_POST_VARS['stock_update']) { // Line 88 // Line 89 while (list($key, $items) = each($stock_update)) { //Line 90 -- stupid line>:( ouch!!. // update the quantity in stock // Line 91 etc... If you want download the contribution fixed I upload an update here: http://addons.oscommerce.com/info/3542 Bye
  2. Bueno me contesto a mi mismo por si a alguien le sirve de ayuda. El problema que yo tenia era que el servidor que yo empleo tiene instalado el MySql 5 y por lo visto hay algun problema con las variables y no puede leerlas bien, o algo asi. El codigo es correcto y no falla en servidores que emplean MySql 4.xx, pero bueno para los que tengan mi problema hay va la solucion: Hay que añadir esta linea de codigo sobre la linea 87 aprox. del archivo quick_stock update para definir la variable stock_update : $stock_update=$_POST['stock_update']; O sea antes de la linea 90 hay otra linea de codigo, pues hay que insertarlo justo antes de esa. Os deberia quedar asi: <?php $stock_update=$_POST['stock_update']; if ($HTTP_POST_VARS['stock_update']) { while (list($key, $items) = each($stock_update)) { // update the quantity in stock etc... Bueno gracias al JEFE de la Academia Global Centre d' Estudis (http://www.globalmanacor.com) que me ha solucionado el problema.
  3. Hola a todos. Lo instalo todo tal cual siguiendo las intrucciones y todo parece ir bien, pero cuando actualizo precios o stock o lo que sea, los cambios no se guardan y me da este error: Warning: Variable passed to each() is not an array or object in /homepages/12/d222128780/htdocs/admin/quick_stockupdate.php on line 90 La linea 90 a la que hace referencia el error es esta: while (list($key, $items) = each($stock_update)) { A que se debe?? Gracias
×
×
  • Create New...