Guest Manic056 Posted July 19, 2007 Share Posted July 19, 2007 I have no idea what is going on here, I have Estelles Stock Levels' for Product Options installed. Although... as you can see there are two main problems. First being that the "Add to basket" button is not working. As seen here: http://www.manicglow.com/index.php?act=vie...amp;productId=2 Second being that the stock levels aren't actually showing up on the page! (As you can see in link above.) I think they may be related in some way. Although I'm not sure what the problem is. I thought it was the viewprod although that seems to be fine in accordance with her instructions. Extra information that might help you to help me solve the problem: E-mail from Estelle about how to install the mod in the viewprod. THIS IS THE MAIL I SENT HER: (Her responce is below the mail) Lines 1-4 <!-- BEGIN: view_prod --> <!-- BEGIN: prod_true --> <div class="boxContentd"> <strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR} Quite similar, I'm pretty sure about where to do this bit, I just want to be 100% Lines 25-34 <!-- BEGIN: repeat_options --> <tr> <td><strong>{VAL_OPTS_NAME}</strong> </td> <td> <select name="productOptions[]"> <!-- BEGIN: repeat_values --> <option value="{VAL_ASSIGN_ID}"> {VAL_VALUE_NAME} <!-- BEGIN: repeat_price --> ({VAL_OPT_SIGN}{VAL_OPT_PRICE}) Similar, but you can never be too careful with these things. Line 53-70 <br /> <strong>{LANG_PRODCODE}</strong><br /> {TXT_PRODCODE} <div> {TXT_INSTOCK}<span style="font-size: 12px; font-weight: bold; color: #FF0000;"></span> <!-- BEGIN: buy_btn --> <div>{LANG_QUAN} <input name="quan" type="text" value="1" size="2" class="textbox" style="text-align:center;" /><br /><br/> <a href="java script:submitDoc('addtobasket');" class="txtButton" style="line-height: 20px";>{BTN_ADDBASKET}</a> <!-- END: buy_btn --> </div></div> <div></div> <input type="hidden" name="add" value="{PRODUCT_ID}" /> </form> Seems to be the area in question. Thanks, Antony. THIS IS THE MAIL SHE SENT ME: Replace the areas you sent me with these... <!-- BEGIN: view_prod --> <!-- start mod: Stock Levels for Product Options --> <!-- by Estelle and DanV - cubecart.expandingbrain.com --> {STOCKOPTION_SCRIPT} <!-- end mod: Stock Levels for Product Options --> <!-- BEGIN: prod_true --><div class="boxContentd"> <strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <!-- BEGIN: repeat_options --> <tr> <td><strong>{VAL_OPTS_NAME}</strong> </td> <td> <select name="productOptions[]" onChange="{JS_UPDATE_PRICE} {JS_UPDATE_STOCK_LEVEL}"> <!-- BEGIN: repeat_values --> <option value="{VAL_ASSIGN_ID}"> {VAL_VALUE_NAME} <!-- BEGIN: repeat_price --> ({VAL_OPT_SIGN}{VAL_OPT_PRICE}) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <br /> <strong>{LANG_PRODCODE}</strong><br /> <span id="prodCode">{TXT_PRODCODE}</span> <div id="stock"> <span id="inStock">{TXT_INSTOCK}</span><span id="outOfStock" style="font-size: 12px; font-weight: bold; color: #FF0000;">{TXT_OUTOFSTOCK}</span> <!-- BEGIN: buy_btn --> <div>{LANG_QUAN} <input name="quan" type="text" value="1" size="2" class="textbox" style="text-align:center;" /><br /><br/> <a href="java script:{JS_VERIFY_STOCK} submitDoc('addtobasket');" class="txtButton" style="line-height: 20px";>{BTN_ADDBASKET}</a> <!-- END: buy_btn --> </div></div> <div></div> <input type="hidden" name="add" value="{PRODUCT_ID}" /> </form> Quote Link to comment Share on other sites More sharing options...
Guest Posted July 19, 2007 Share Posted July 19, 2007 hey does that mod have an extrenal javascript file you neeed to put into the header? this is the error your getting ale is not defined [break on this error] ale(updateStockLevel); index.php (line 173) gv is not defined checkStock()index.php (line 181) [break on this error] var a = gv(e); Which means its not finding a function that should be there. edit: after a closer look, it looks like your functions are here http://www.manicglow.com/js/estelles_mod_store.js Quote Link to comment Share on other sites More sharing options...
Guest Manic056 Posted July 19, 2007 Share Posted July 19, 2007 hey does that mod have an extrenal javascript file you neeed to put into the header? this is the error your getting ale is not defined [break on this error] ale(updateStockLevel); index.php (line 173) gv is not defined checkStock()index.php (line 181) [break on this error] var a = gv(e); Which means its not finding a function that should be there. edit: after a closer look, it looks like your functions are here http://www.manicglow.com/js/estelles_mod_store.js I see, but umm... here's the biggy: How do I fix it?!? :) Quote Link to comment Share on other sites More sharing options...
Guest Posted July 19, 2007 Share Posted July 19, 2007 save that js file into your /js/ folder then put this in your header skins/yourskin/styleTemplates/global/index.tpl find <script language="javascript" src="/js/jslibrary.js" type="text/javascript"></script> insert after <script type="text/javascript" src="/js/estelles_mod_store.js"></script> you may need to fix the path to your store js folder Quote Link to comment Share on other sites More sharing options...
Guest Manic056 Posted July 19, 2007 Share Posted July 19, 2007 save that js file into your /js/ folder then put this in your header skins/yourskin/styleTemplates/global/index.tpl find <script language="javascript" src="/js/jslibrary.js" type="text/javascript"></script> insert after <script type="text/javascript" src="/js/estelles_mod_store.js"></script> you may need to fix the path to your store js folder Ahhh mate! Thanks alot, me and my friend Steven couldnt figure out the problem. You're a legend. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 19, 2007 Share Posted July 19, 2007 not a problem man, glad it worked :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.