Quick quote

close

Please do not contact Neubreed offering recruitment OR outsourcing services

To request a call back to discuss your project, please complete this form.

Alternatively, please call: (02) 8007 0218

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Drupal website specialists. Call us about your project on (02) 8006 3402

Magento add to cart button disabled after LightSpeed update

Posted 06/March/2013 by neubreed

When using LightSpeed POS for a brick and mortar store and then Magento for the online store, you are bound to run into a couple of issues.

Until about a few weeks ago whenever product updates are pushed from LightSpeed, we had to re-enable stock configuration for all the products just so they can be added to the cart. Since we do not manage LightSpeed updates and we take care of the Magento store only we wanted an automatic way of re-enabling them. Working on a very tight schedule we threw in an updater that runs on regular intervals to update the stock configuration.

The quick fix?

 

                 UPDATE 

                      cataloginventory_stock_item

                SET

                     use_config_manage_stock = 1

 

 

 

Assuming you already know how to create a cron job, just chuck this in there. This was done on Magento 1.7. and run every half an hour.

Of course an even better solution would be to attach a trigger to the LightSpeed updater so it only runs when the update completes and products are pushed successfully. But that's for another time.