-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out of stock combinations #23
Comments
Hi there, thanks a lot for sharing the code, |
@eduardo-g-silva. There is nothing implemented regarding the stock level. The extension just keeps the value of the stock status flag. (In stock / out of stock). It does not keep the available qty. I guess you can do a similar thing and remember the stock qty and when an attribute is changed just update a section ( |
cool i changed a bit the getStockOptions on Block\Catalog\Product\View\Type\Configurable\Config.php to pass the quanty to jason insted 0 or 1 and then change isinstock on product.js to return the value. once finish tested i will add it here, |
Hi @tzyganu how to display product SKU, once the user has selected product based on Color attribute |
@rajeshkumar1404 You can't. The module does not support this. |
Thanks @tzyganu for your early reply, is it possible to add new method in Block\Catalog\Product\View\Type\Configurable\Config.php like 'getProductSku' which will access the sku based on product id, and can be access inside product.js using friendlly method |
@rajeshkumar1404 I will not add this feature because it's really specific. But feel free to fork this extension and do the modifications you need. |
This should be fixed in 2.0.1. I moved the out of stock logic on the server side where is easier to manipulate. |
"If you choose to make the out of stock combinations not selectable and you set for default configuration an out of stock simple product, on the initial page load the out of stock combination will still be selected. Any ideas on how to handle this are welcomed."
One solution could be to change the "default" radio button into a "default position" number field.
The lowest integer would be selected as default, if that product is out of stock, the next lowest integer will be default etc.
(Thanks for a very useful extension, will install as soon as the 1.9 issues are solved)
The text was updated successfully, but these errors were encountered: