Undoing Stock by Attributes Mod
I installed (or believe I did correctly) the 'Stock by Attributes' mod. And things seemed to work. BUT, I wanted to make sure that a person couldn't check out with an unavailable item in their basket. So I made sure the option in the configuration -> stock 'Allow Checkout' was set to FALSE but this didn't do anything as I was able to still checkout.
So my next plan was to try and implement the 'make the specific stock item disappear from the drop down list when the stock for THAT attribute is 0.' And I followed directions and believe I pieced together the code as well as possible, but since nothing has changed, I have to assume that I messed up somewhere.
Since I have gone back and forth and from 'fix' to 'fix' I have no clue where I may or may not have made a mistake. Sooooo....I figure the best thing to do is reverse the entire process but since I've never reversed anything else, I have no idea the proper way to do this.
Can anyone help???????????????????????????:cry:
Re: Undoing Stock by Attributes Mod
Re: Undoing Stock by Attributes Mod
Quote:
Originally Posted by
kuroi
OK now I'm truly perplexed. After going through the various files I thought I figured out that the header_php.php file in the 'checkout shipping' folder had somehow not been updated with your mod. So I then added it and things worked! It wouldn't allow me to checkout if there was an out of stock item in my cart. However...when all items in my basket were in stock, when I clicked to go to the checkout, the page just returned a completely blank header_php page. So I panicked because now I've really screwed things up so I went back and replaced that file with the original one...but it was still returning the blank page. So I panicked more and deleted the header_php all together and now EVERYTHING works??? This is great except that it makes no sense and I'm worried it's going to cause a problem...any idea why this is happening?