![]() |
Javascript Error - Help Needed
Hello,
We are getting a javascript error if a product has options (no options - no error). I've made changes to the product.tpl template but cannot seem to determine how to fix this error: Line: 809 Char: 2 Error: 'avail' is undefined That error relates to the line below. if((mq > 0 && avail > mq) || is_unlimit == 'Y') avail = mq; Has anyone seen this error before or give me a pointer where to look? Thanks, Louise |
Anyone have any idea about this error? Thanks
|
Why not paste your product.tpl here, maybe someone will be able to suss it out from the whole code?
|
Here is my product.tpl file:
Code:
{* $Id: product.tpl,v 1.96.2.24 2005/11/07 09:17:46 svowl Exp $ *} Thank you for any assistance. Louise |
I don't know if this is your answer, but at line 76 and 100 the variable avail is being defined and your error says that avail isn't defined.
As line 76 and 100 are in a section of code that is commented out you may want to try and put this code back in. I cannot see avail being defined anywhere else in the code that isn't being take out. |
Thanks Paul, I'll give that a try.
Louise |
All times are GMT -8. The time now is 09:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.