Load -> new product -> update

Jurgen8e's picture
Offline
Joined: 10/02/2008
Juice: 87
Load -> new product -> update

Hi,

First I load the stockedit-page and then add a new SKU or product to Ubercart, then I update the stockedit-page. Wrong products has been updated. I thought this was happened, not sure.

I found it strange because, the code looks right for me.
db_query("UPDATE {uc_product_stock} SET active = %d, stock = %d, threshold = %d, ordercount = %d WHERE sku = '%s'", $form_values['active_'. $index], $form_values['stock_'. $index], $form_values['threshold_'. $index], $form_values['ordercount_'. $index], $model);

If somebody can clean our minds...

Multiple stock edit By: Al (27 replies) Tue, 07/01/2008 - 17:19