deech123 Posted August 24, 2010 Share Posted August 24, 2010 Hi guys,I saw a small "bug" or not correct stuff on my shopbasket.If I order a product that's not longer in stock and this is mentionend on the detail fiche also that the product is out of stock. then still I see a green bullet in the shopping basket (see pictures)I set the option in the backoffice to use product administration (in dutch : voorraadbeheer :-) )anyone who can give me a clue why this is green?in my example the last article is not available.thx Link to comment Share on other sites More sharing options...
rocky Posted August 24, 2010 Share Posted August 24, 2010 If you have "Allow ordering of out-of-stock product" set to "Yes" on the Preferences tab, then the bullet will always be green, since you can order the product even when the quantity is 0. You can change the following line 11 of shopping-cart-product-line.tpl in your theme's directory to change this behaviour: {if $product.active AND ($product.allow_oosp OR $product.stock_quantity > 0)} To make the bullet always be red if the product is out of stock, change it to: {*{if $product.active AND ($product.allow_oosp OR $product.stock_quantity > 0)}*} {if $product.active AND $product.stock_quantity > 0} Link to comment Share on other sites More sharing options...
deech123 Posted August 24, 2010 Author Share Posted August 24, 2010 Rockythanks for your answer.I do now understand why even not in stock still green :-)logical if I see it in that way :-)thx m8 Link to comment Share on other sites More sharing options...
SK01 Posted August 24, 2010 Share Posted August 24, 2010 Deech123, I'm glad that you solved the problem.May u please put "SOLVED" on the title? 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