cgzhang / rayfox_catalog Goto Github PK
View Code? Open in Web Editor NEWSort Products, Automatically sort by stock
Home Page: http://www.magentocommerce.com/magento-connect/sort-products-automatically-sort-by-stock.html
Sort Products, Automatically sort by stock
Home Page: http://www.magentocommerce.com/magento-connect/sort-products-automatically-sort-by-stock.html
First I want to thank you for your great extension
As I test, if we enabled "Amasty Improved Layered Navigation" or "Amasty Improved Sorting" extensions and then use your extension too and enable it for sorting products and we have configurable products, then we got error in categories!
If disable your extension or disable one of the Amasty's extensions, then errors gone and category load fine!
You can see code below(error that I got it)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'stock_status.stock_status' in 'field list', query was: select SUM(stock.salable) as in_stock, COUNT(stock.salable) - SUM(stock.salable) as out_stock from (SELECT
stock_status
.stock_status
ASsalable
FROMcatalog_product_entity
ASe
INNER JOINcatalog_category_product_index
AScat_index
ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '44' AND cat_index.is_parent=1
INNER JOINcatalog_product_index_price
ASprice_index
ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0
LEFT JOINcataloginventory_stock_status
AScisi
ON (cisi.product_id=e.entity_id) AND (cisi.website_id = '1')) as stock
Hi,
I installed this extension, change the two new fields do YES, and nothing different happens. Still the same.
I'm using Porto theme. Ho can i debug this problem?
This extension sorts the out of stock products after the in-stock products.
What changes should I make if I want to have out of stock products before the on-stock products.
Hi. Thanks for the extension.
I am using it on Magento CE 1.9.1 and it is working OK, except that it is doing nothing on searches. I didn't find anything on the logs that could point to where the problem is. Is there any tests I can make? It is enabled for searches on the backend of course.
EDIT: I installed it from MagentoConnect. Is it the same version? Yes, it is.
EDIT2: The backend doesn't seem to cause any effect in my install. I can set anything there and the catalog listings will always have out-of-stocks as last and searches will never have them. Cleared the caches and rebuilt indexes many times.
Ok, so my problem is that this extension conflicts with Smartwave_AjaxCatalog, since they both rewrite the same files. For searches the problem is worse because they rewrite the same method as well. In the end, I have incorporated most of the code from this extension into the Smartwave one, mostly because they change the prepareProductCollection($collection) in the search Layer file (they don't even use the parent one). So I had to make the sorting on the collection prepared by them.
I tried making one Class extend the other (instead of the Mage one), remove the rewrite, but could not make it work. Disabling their extension breaks my site. I was trying for hours and then just realised it would be easier to sort their collection.
Thank for your work, but not working when the collection is filtered by layered navigation.
There is a way to do that?
Hello,
The module is working fine, but on my home page when i click on any product it goes to CART and doesn't add the product on the cart.
I have seen many errors on /var/log like this:
Notice Undefined offset 135 in /usr/share/nginx/html/app/code/core/Mage/Catalog/Model/Resource/Category/Flat.php on line 833
Please help me! thanks a lot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.