Magento-OutOfStockLast icon indicating copy to clipboard operation
Magento-OutOfStockLast copied to clipboard

Database table problem

Open JohnnyXiang opened this issue 10 years ago • 1 comments

Hi Ricardo

Thank you a lot for this great module. This is one issue i found.

In /app/code/community/RicardoMartins/OutofstockLast/Model/Catalog/Layer.php line 22

It's better to replace 'cataloginventory_stock_item' with $collection->getTable('cataloginventory/stock_item') since the table name may have prefix in some case.

Thank you

JohnnyXiang avatar Mar 21 '14 18:03 JohnnyXiang

Yes, good point. Can you make a pull request?

On Fri, Mar 21, 2014 at 3:35 PM, Johnny Xiang [email protected]:

Hi Ricardo

Thank you a lot for this great module. This is one issue i found.

In /app/code/community/RicardoMartins/OutofstockLast/Model/Catalog/Layer.php line 22

It's better to replace 'cataloginventory_stock_item' with $collection->getTable('cataloginventory/stock_item') since the table name may have prefix in some case.

Thank you

Reply to this email directly or view it on GitHubhttps://github.com/r-martins/Magento-OutOfStockLast/issues/2 .

r-martins avatar Mar 21 '14 18:03 r-martins