atwitz3nd Posted June 14, 2011 Share Posted June 14, 2011 Does anyone know how to fix the Wishlist View.tpl so that it does enable the 'add to cart botton' for products which are out of stock, but ONLY if they are listed as 'allow orders when out of stock' in the DB table product.out_of_stock.Here is the present code: {if isset($product.attribute_quantity) AND $product.attribute_quantity >= 1 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 1} If i change the values to >=0, then obviously the button is there for all out of stock products, but it doesn't hide, if I then change the product to DENY orders in BO. So I can't win.Can anyone help? I normally just get tumble-weeds on here - boo hoo Link to comment Share on other sites More sharing options...
atwitz3nd Posted June 15, 2011 Author Share Posted June 15, 2011 Is this a bug, do you think? Should I add to bug tracker?Anyone? Link to comment Share on other sites More sharing options...
fixgear Posted December 28, 2013 Share Posted December 28, 2013 Any news on this? The add to cart button is on my wishlist for products out of stock but when clicked the product is not added to the cart?Any ideas how to make the button add to the cart even if the product is out of stock. On the regular shop it works but on the wishlist it does not Thanks, jer... Link to comment Share on other sites More sharing options...
fixgear Posted December 28, 2013 Share Posted December 28, 2013 Found a solution --> http://www.prestashop.com/forums/topic/71941-solved-wishlist-add-to-cart-doesnt-work-if-0-in-stock/?hl=%2Bwishlist+%2Bout+%2Bstock+%2Bproducts&do=findComment&comment=416058 jer... Link to comment Share on other sites More sharing options...
vekia Posted December 29, 2013 Share Posted December 29, 2013 and what ps version you use? also 1.3 as author of topic you mentioned? (or maybe 1.5?) Link to comment Share on other sites More sharing options...
fixgear Posted December 29, 2013 Share Posted December 29, 2013 hey vekia. i'm using 1.5.3.1 and it worked fine. just changed the 1 to 0. saludos, jez... 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