Skip to main content
5 events
when toggle format what by license comment
Oct 31, 2016 at 5:28 comment added Nimbuz set_stock works for me but set_price doesn't, not sure whats wrong.
Nov 20, 2015 at 20:46 comment added pjv Arggghh. Never mind the comment above. I was trying to set_stock() on a product that did not have managing_stock set to yes. Toggled that and now this works perfectly.
Nov 20, 2015 at 20:11 comment added pjv This answer doesn't work for me. I have the product (I'm logging it out and I can see all its attributes), $stock is a valid integer, and I get no errors in the log when I do $product->set_stock($stock); but the change is just not written to the DB. What could be going wrong?
Nov 10, 2015 at 17:23 vote accept Josef Rosel
Nov 9, 2015 at 16:58 history answered akasapriya CC BY-SA 3.0