r-martins / Magento-OutOfStockLast

This extension modify all product lists in order to put out of stock products in last positions.
18 stars 26 forks source link

Database table problem #2

Open JohnnyXiang opened 10 years ago

JohnnyXiang commented 10 years ago

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

r-martins commented 10 years ago

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

On Fri, Mar 21, 2014 at 3:35 PM, Johnny Xiang notifications@github.comwrote:

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 .