Drupal website specialists.

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.