Page 1 of 1

Some wishes

Posted: 25 Oct 2016, 06:38
by eugene
Hello,

There are a few wishes on the improvement of aimeos.

1) Number of items in stock for Selection type products displayed for the product itself. I think it is not correct. It should be the number of items in stock for associated products.

2) It is desirable to be able to display the exact number of products in stock at detailed viewing.

3) It is convenient to be able to automatically exclude from the list view out of stock products.

Best regards,
Eugene.

Re: Some wishes

Posted: 25 Oct 2016, 10:08
by aimeos
eugene wrote:There are a few wishes on the improvement of aimeos.
Great and thank you very much! We love to get such feedback :-)
eugene wrote:1) Number of items in stock for Selection type products displayed for the product itself. I think it is not correct. It should be the number of items in stock for associated products.
You mean it should be the sum of the stock levels of all associated articles?
eugene wrote:2) It is desirable to be able to display the exact number of products in stock at detailed viewing.
That's already possible. You have to adapt the template for the catalog stock component to display the raw numbers instead: https://github.com/aimeos/ai-client-htm ... efault.php
eugene wrote:3) It is convenient to be able to automatically exclude from the list view out of stock products.
Fetching the stock levels is an asynchronous HTTP request which inserts the information after the page is loaded via Javascript. You could modify the template for the catalog stock component to hide out of stock products.

If you are able to change the catalog stock template and add two new configuration options for displaying raw numbers and hiding out of stock products, we would love to see a pull request on Github from you :-)

Re: Some wishes

Posted: 25 Oct 2016, 19:24
by eugene
You mean it should be the sum of the stock levels of all associated articles?
Yes, the sum of the stock levels of all articles, associated with "Selection" product.

Re: Some wishes

Posted: 02 Nov 2016, 19:10
by aimeos
The stock level calculation for selection products is now implemented as you've suggested:
https://github.com/aimeos/aimeos-core/c ... 1adad4cd3b