Jump to content

[Solved] xxx items in stock -> many/few items in stock with attributes


Recommended Posts

I've altered the code to not show the exact stock levels, see http://mohsart.se/en/mahjong/840-chinese-mahjong-set-with-numbers-with-wooden-case.html
This, however, doesn't work when the product has attributes, see http://mohsart.se/en/skalar/830-woven-straw-bowls.html
Also, "tax incl" is not shown on a new line when there are attributes.
Actually, one sees the "correct" info * for a short moment before the faulty one appears.

* Except for that the stock level that flashes by is the product stock, not for the selected attribute (in the case above, "few in stock" flashes by before "50 items in stock" appears.

/Mats

Link to comment
Share on other sites

My code:

                
                   {* {$product->quantity|intval} *}
                   {if $product->quantity < 5}
                       {l s='Few'}
                   {else}
                       {l s='Many'}
                   {/if}


Are products with attributes handled by another file? (not product.tpl) I cannot find another place where stock quantity is handled.

/Mats

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...