paradox1914 Posted June 11, 2010 Share Posted June 11, 2010 Hello, guys.. My issue is how to put this converter - http://www.bestconverter.org/unitconverter_widget.php?unit=length , under my product's descriptions? I tryed to paste it in "edit HTML source" in description but no success..Thank you,Best Regards! Link to comment Share on other sites More sharing options...
rocky Posted June 12, 2010 Share Posted June 12, 2010 Will this converter be displayed on all pages? If it will, then I suggest that you add it in the div on line 340 of product.tpl (in PrestaShop v1.3): {$product->description} Link to comment Share on other sites More sharing options...
paradox1914 Posted June 12, 2010 Author Share Posted June 12, 2010 Yes, I want to be displayed in all products. Link to comment Share on other sites More sharing options...
paradox1914 Posted June 12, 2010 Author Share Posted June 12, 2010 Can you tell me what I have to do step by step.Thank you,Best Regards Link to comment Share on other sites More sharing options...
rocky Posted June 12, 2010 Share Posted June 12, 2010 That code you linked to is very messy. I cleaned up a bit, but it is still pretty messy. It does appear to work though. Change the product description line I mentioned above from: {$product->description} to: > <div id="idTab1" class="rte">{$product->description} <style type="text/css">#mort_cal_1 br{ldelim}display:none{rdelim}</style> <div style="width:210px;text-align:center"> <div style="border:1px solid #000;background-color:#fefefe;padding:0;margin:0;align:center;text-align:center;overflow:hidden"> <div id="xcolor1_1" style="font-size:12px;color:#173a00;line-height:16px;font-family:arial;font-weight:bold;background:#94abf0;padding:3px 1px;text-align:center"> <a href="http://www.bestconverter.org/unitconverter_length.php" alt="Length Converter" title="Length Converter" id="upper_link" style="color:#000;font-size:14px;text-decoration:none;line-height:16px;font-family:arial;">Length Converter <script type="text/javascript" src="http://www.bestconverter.org/js/unitconverter_length2.js"></script> </pre> <table width="99%" align="center" style="text-align:left;background-color:#fefefe;color:#222;">From:<input type="text" size="20" name="valuefromlength2" id="valuefromlength2" value="1" onkeyup="cc_length2();"></td><script type='text/javascript'>ins_length2('selectfromlength2');</script>To:<input type="text" size="20" name="valuetolength2" id="valuetolength2" value="1" onkeyup="cc_length2();"></td><script type='text/javascript'>ins_length2('selecttolength2');</script>Result:</table> <br><br><br This will add the length converter after the product description. Link to comment Share on other sites More sharing options...
paradox1914 Posted June 12, 2010 Author Share Posted June 12, 2010 Thanks, but I have difficulties to find - product.tpl ? I am with the latest version of prestashop. Link to comment Share on other sites More sharing options...
rocky Posted June 13, 2010 Share Posted June 13, 2010 It is in themes/yourtheme. Link to comment Share on other sites More sharing options...
paradox1914 Posted June 13, 2010 Author Share Posted June 13, 2010 unfortunately this method is not working ;( Link to comment Share on other sites More sharing options...
paradox1914 Posted June 13, 2010 Author Share Posted June 13, 2010 Any Ideas how to put centimetres to Inches converter ? Link to comment Share on other sites More sharing options...
rocky Posted June 14, 2010 Share Posted June 14, 2010 It's working on my test site. What's going wrong? Can you provide a link to your site? Link to comment Share on other sites More sharing options...
paradox1914 Posted June 14, 2010 Author Share Posted June 14, 2010 It is calculaing after I press "Reload/Refresh" to the page.It is not calculating automatically.. Link to comment Share on other sites More sharing options...
rocky Posted June 14, 2010 Share Posted June 14, 2010 It is working automatically on my test site. Are there any Javascript errors on your product page? Check whether it says "Done, with errors" in the bottom-left corner in IE. Link to comment Share on other sites More sharing options...
rocky Posted June 16, 2010 Share Posted June 16, 2010 I've made a correction to my code above. Link to comment Share on other sites More sharing options...
paradox1914 Posted June 16, 2010 Author Share Posted June 16, 2010 EXCELLENT! Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts