Monday, March 8, 2010

A small bug(?) in product.tpl

I found that if I created a product that was allowed to be ordered when it is out of stock and it has combinations, or attributes, when I look on the product (product.tpl) the text about entering an email address to be "notified when the item is in stock" appears.
This is only if there are combinations added, so a little strange.

While debugging the code I found that by inserting
{if !$allow_oosp}

around the $HOOK_PRODUCT_OOS paragraph, right after < ! - - Out of stock hook - - >, the behaviour returns to normal.
(spaces added so as the code won't be interpreted as code...)

No comments:

Post a Comment