ollyno1uk2 Posted July 24, 2006 Posted July 24, 2006 Hi there I need to add some html code to my product description which does not work when I add it in the product description box. Where can I find the indiviual product listings to maually add some code in? My problem is I am trying to get some external data regarding stock quantities from another webpage. If I add the code for this into the decription it does not work. the code is as follows <form method="post" action="https://www.webpage.com/gateway/get_prod_info.asp"><input type="hidden" name="sku" value="FILL HERE"><input type="hidden" name="return_string" value="[stock_level]"><input type="hidden" name="reseller_id" value="[email protected]"><input type="hidden" name="reseller_pass" value="pass"><input type="submit" name="submit" value="submit"></form> This generates a button which sources the information. I would rather this information shows when entering the page but if this is not pssible then I would like this button to work Many thanks for your help
Guest Posted July 24, 2006 Posted July 24, 2006 Hi there I need to add some html code to my product description which does not work when I add it in the product description box. Where can I find the indiviual product listings to maually add some code in? My problem is I am trying to get some external data regarding stock quantities from another webpage. If I add the code for this into the decription it does not work. the code is as follows <form method="post" action="https://www.webpage.com/gateway/get_prod_info.asp"><input type="hidden" name="sku" value="FILL HERE"><input type="hidden" name="return_string" value="[stock_level]"><input type="hidden" name="reseller_id" value="[email protected]"><input type="hidden" name="reseller_pass" value="pass"><input type="submit" name="submit" value="submit"></form> This generates a button which sources the information. I would rather this information shows when entering the page but if this is not pssible then I would like this button to work Many thanks for your help Stay in your admin add product page and give a try to the technique that consists in splitting your form tags in java script: <script>document.write('<fo'+'rm> method="post" action="https://www.webpage.com/gateway/get_prod_info.asp">')</script> <input type="hidden" name="sku" value="FILL HERE"><input type="hidden" name="return_string" value="[stock_level]"><input type="hidden" name="reseller_id" value="[email protected]"><input type="hidden" name="reseller_pass" value="pass"><input type="submit" name="submit" value="submit"> <script><script>document.write('</fo'+'rm>')</script>
ollyno1uk2 Posted July 24, 2006 Author Posted July 24, 2006 Hi thanks for that however this still does not seem to work now I get method="post" action="https://www.webpage.com/gateway/get_prod_info.asp"> before the submit button appears. If I click the submit button that is generated it just adds the product to the cart rather than bringing back the stock levels. Any other ideas? Thanks again
Guest Posted July 24, 2006 Posted July 24, 2006 Hi thanks for that however this still does not seem to work now I get method="post" action="https://www.webpage.com/gateway/get_prod_info.asp"> before the submit button appears. If I click the submit button that is generated it just adds the product to the cart rather than bringing back the stock levels. Any other ideas? Thanks again my mistake, there was an unnecessary bracket after form: try <script>document.write('<fo'+'rm method="post" action="https://www.webpage.com/gateway/get_prod_info.asp">')</script> <input type="hidden" name="sku" value="FILL HERE"><input type="hidden" name="return_string" value="[stock_level]"><input type="hidden" name="reseller_id" value="[email protected]"><input type="hidden" name="reseller_pass" value="pass"><input type="submit" name="submit" value="submit"> <script><script>document.write('</fo'+'rm>')</script>
ollyno1uk2 Posted July 24, 2006 Author Posted July 24, 2006 Ok thanks. the line goes away but still If I click the submit button nothing happens apart from the item being added to the basket - is there a way for the information I require to come up in a small pop up box? Thanks for your input. Its appreciated
Guest Posted July 24, 2006 Posted July 24, 2006 Ok thanks. the line goes away but still If I click the submit button nothing happens apart from the item being added to the basket - is there a way for the information I require to come up in a small pop up box? Thanks for your input. Its appreciated could you send a URL where this is supposed to work?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.