Jump to content

Green bullets on shopping basket even when a product is not in stock?


Recommended Posts

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

28742_q78GCOQPrAkxIsO1kPxJ_t

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...