SDeAstis Posted February 2, 2017 Share Posted February 2, 2017 Hi,in my new shop (www.maraschiomoto.com) I have a lot of product with many combinations. Since we can not sustain the effort to have in stock all of them we want to allow customers to "order out of stock products". So I configured the option in the back office in "Product stock preferences". I also set up the policy "When out of Stock" as "allow order" at product creation in at the bottom of the combination tab. Although I've done all of these steps the products with quantities zero are not available and my customers cannot book them since the add to cart button is disabled. The functionality was available in PS 1.7.0.3. Please have a look into this and tell me if there is something wrong on my side or the latest PS release has an issue. It seems to be actually a theme problem of the Classic default theme. In particular the \themes\classic\templates\catalog\_partials\product-add-to-cart.tpl might have a problem at line 41:<button class="btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit" {if !$product.add_to_cart_url || $product.quantity_wanted>$product.quantity}disabled{/if}> What would be the best way to fix this line in order to make the add-to-cart button working also with out-of-stock products when the products are marked as "allowed for orders if out-of-stock"? Many thanks for your support! 1 Link to comment Share on other sites More sharing options...
rocky Posted February 9, 2017 Share Posted February 9, 2017 It's a bug that's been fixed in the next version of PrestaShop. You should remove the || $product.quantity_wanted>$product.quantity part of the line. 2 Link to comment Share on other sites More sharing options...
SDeAstis Posted February 15, 2017 Author Share Posted February 15, 2017 The problem was back in 1.7.0.5!!! I had to fix it again! What are we discussing here then??? Link to comment Share on other sites More sharing options...
rocky Posted February 15, 2017 Share Posted February 15, 2017 I'm not sure why the fix wasn't included in PrestaShop v1.7.0.5. Hopefully, it will be included in v1.7.1.0. You can try reporting this issue on the bug tracker to make sure. Link to comment Share on other sites More sharing options...
SDeAstis Posted February 16, 2017 Author Share Posted February 16, 2017 I opened the bug: http://forge.prestashop.com/browse/BOOM-2446 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now