sharkyb Posted April 7, 2011 Share Posted April 7, 2011 Hi,A few months ago I did something to get rid of the 'Out of Stock' message that appears when the stock level drops to '0'.I need to change this back so that the message appears again but I can't for the life of me remember what I did. I thought it was a simple setting in admin but after searching high and low and to no avail I am now worried I may have changed the code.Here is an example of an 'out of stock' product...http://www.sharkbait.co.uk/shop/product.php?id_product=45If anyone has any ideas it would be soo much appreciated!Cheers,J Link to comment Share on other sites More sharing options...
ChrisLNZ Posted April 7, 2011 Share Posted April 7, 2011 Go to the item in catalogue>info part way down is the section for out of stock Link to comment Share on other sites More sharing options...
sharkyb Posted April 8, 2011 Author Share Posted April 8, 2011 Thanks Chris, but I think what I've done isn't as simple as that a it appears to be product wide.This makes me think there is either a global setting (which I can't find) or worst case scenario, I changed some code! Link to comment Share on other sites More sharing options...
Dan1 Posted April 10, 2011 Share Posted April 10, 2011 I'm having the same problem. "out of stock" would show in the past but now it doesn't. I may have changed a setting but I can't remember. Can someone please suggest a solution to get "out of stock" back on the product page? Link to comment Share on other sites More sharing options...
UKclearancecentre Posted April 15, 2011 Share Posted April 15, 2011 Hi, i have another fix that doesn't involve you having to alter any code but makes changes on the database which was my prefered choice as if i change the code i have to remember what i have changed if i upgrade presta to a new version.If you run the following sql query in phpmyadmin (or your database management software of choice) UPDATE `ps_product_lang` SET `available_later` = IFNULL(available_later, "Not in stock") What this will do is put the text 'not in stock' in the Displayed text when allowed to be back-ordered for every product that currently doesnt have anything in that box. For some reason the text saying 'Availability: This product is no longer in stock' will then show for out of stock products in the front office.The phrase "Not in stock" in the code can be changed to whatever text you want as it wont be displayed unless you change the setting to allow ordering of out of stock products Link to comment Share on other sites More sharing options...
UKclearancecentre Posted April 15, 2011 Share Posted April 15, 2011 I realised after running my code that some items didn't have a value of NULL but instead an empty field. this code below should short those one UPDATE `ps_product_lang` SET `available_later` = replace(char_length(`available_later`)>0, `available_later`, 'Not in stock') Link to comment Share on other sites More sharing options...
salko Posted April 18, 2011 Share Posted April 18, 2011 First my appologies for borrowing this thread ...I have Prestashop 1.4 and I have problems with availability of the product: I got one product which is currently out-of-stock and I have enabled ordering out of stock products. On product page of this product it says "Available" even that product is not in stock and even that on catalog page under particulat product settings I have "On stock" text under the 'Displayed text when in-stock:' field. If I put this product to the cart I see a green circle under 'Availability' in cart summary, even that product is not in stock, so this will clearly confuse the customers ... AFAIK particular 'out of stock' product should have a red light or something like that to visually express his not-availability at the moment ... So, can anyone help me with this?? I'm strugelling 0:-I Link to comment Share on other sites More sharing options...
salko Posted April 19, 2011 Share Posted April 19, 2011 @salkoI would first double check and make sure that no quantity is still available by checking Quantity in Stock on Product Info page. Of course, it has to be zero.If you allow ordering of out-of-stock items, then the displayed text should be what you define in Displayed Text When Allowed to be Back-ordered. If quantity IS zero, but no text is defined for this field, then *nothing* regarding availability should display, because the IF statement will trigger display:none.See screenshot.If your out-of-stock item still shows as Available, then something strange is happening, and we will have to look further to see what is wrong. I have double checked and quantity in stock is zero. I have 'Displayed text when allowed to be back-ordered:' set as '7 to 14 days' and 'Displayed text when in-stock:' set as 'On stock!'. But on the category page (not on product page) it says 'Available' just below the price ... but when I switch 'When out of stock:' from 'Allow orders' to 'Deny orders' then product says 'Out of stock' and 'add to cart' is disabled. So why I get this 'Available' text when out of stock and allow ordering?? Another disturbing thing is that green circle in cart summary which indicates product in stock even if it is out of stock ... Thank you for help! Link to comment Share on other sites More sharing options...
salko Posted April 19, 2011 Share Posted April 19, 2011 Ok, I have changed this 'Available' term into 'Available for pre-order' in language translator to make it more understandable for customers ... the only thing left which driving me nuts is this green circle in cart summary. It would be a lot better if this circle would show availability of stock (and not availability for order) and to be red if products are out of stock, yellow if there are last products in stock and green if enough products are in stock. Now it doesn't make any sense, if you put 'deny orders' on out-of-stock products, then you cannot put this product into the cart anyway, that means these circles are always green and they are showing unuseful information ... Am I right? Link to comment Share on other sites More sharing options...
salko Posted April 20, 2011 Share Posted April 20, 2011 The green circle then merely means that you are allowing the purchase. When the product can be put in the cart this automatically means that is available for order (and is not neccessary in stock) so I don't see the point showing information again with green circles and making a confusion if item is on stock or not ... don't you think? Link to comment Share on other sites More sharing options...
salko Posted April 23, 2011 Share Posted April 23, 2011 Is there a way to remove a 'Avail.' column (including these green circles) from cart summary? Link to comment Share on other sites More sharing options...
Recommended Posts