Gandalf Grey Posted September 30, 2010 Share Posted September 30, 2010 Hi, allI'm going crazy about this problem! I'm trying to find where to modify code so you can add products to your cart from Wishlist no matter if they are in stock or not. Please does anybody have the solution? I'm lost!The button "add to cart" from "My wishlist/View/product" doesn't work if the item is not in stock.. many thanxx Link to comment Share on other sites More sharing options...
rocky Posted October 1, 2010 Share Posted October 1, 2010 There is a known bug where the "Add to cart" button is disabled for products without attributes. See my post here for the fix. If you want to make the button always enabled, you could comment out lines 44 and 56-58 of modules/blockwishlist/view.tpl: {*{if $product.attribute_quantity AND $product.attribute_quantity >= 1}*} ... {*{else} {l s='Add to cart' mod='blockwishlist'} {/if}*} Link to comment Share on other sites More sharing options...
Gandalf Grey Posted October 1, 2010 Author Share Posted October 1, 2010 Thank you so much!! I'll try that as soon as I'm back from tour! Great! Link to comment Share on other sites More sharing options...
Gandalf Grey Posted October 3, 2010 Author Share Posted October 3, 2010 PROBLEM SOLVED ! When I changed the value to "0" in the modified code that you posted!{if isset($product.attribute_quantity) AND $product.attribute_quantity >= 0 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 0} Thanxx a lot for this help! Link to comment Share on other sites More sharing options...
rocky Posted October 3, 2010 Share Posted October 3, 2010 Glad it worked for you. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
fixgear Posted December 28, 2013 Share Posted December 28, 2013 THIS SAVED ME! THANKS GUYS! jez... Link to comment Share on other sites More sharing options...
vekia Posted December 29, 2013 Share Posted December 29, 2013 THIS SAVED ME! THANKS GUYS! jez... hello just wondering what ps version you use? topic is from 2010, so it is related to 1.3 version you've got 1.3? 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