Non-numeric skus

park27's picture
Offline
Joined: 06/18/2009
Juice: 6
Non-numeric skus

I worked it out, the %d placeholder is for an integer, so if you change it to %s for a string it all works fine:

db_query("UPDATE {uc_product_stock} SET stock = %d WHERE sku = '%s'"

I was showing my Drupal ignorance there!

Stock & Price CSV Updater By: jorditr (12 replies) Thu, 08/06/2009 - 15:14