votrechien Posted May 3, 2008 Posted May 3, 2008 Here's one for you guys... I'm trying to include a form in my product description (just a simple calculator). However, when I try to do this, OS commerce will not let me update the product description- the "Update" button just becomes inoperational. You can try this for yourself, try adding the </form> tag anywhere in your product description. Your "update" button will either be grayed out in I.E. or you'll be returned an error in other browsers. The problem originates from the fact OS Commerce is detecting an end to the add product form before it actually exists. Any geniuses out there have a solution for this? :)
prafulkr Posted May 3, 2008 Posted May 3, 2008 Here's one for you guys... I'm trying to include a form in my product description (just a simple calculator). However, when I try to do this, OS commerce will not let me update the product description- the "Update" button just becomes inoperational. You can try this for yourself, try adding the </form> tag anywhere in your product description. Your "update" button will either be grayed out in I.E. or you'll be returned an error in other browsers. The problem originates from the fact OS Commerce is detecting an end to the add product form before it actually exists. Any geniuses out there have a solution for this? :) Actualy update button is within <form> tag and you add new form in between these form so update button does not work. If you want to use calculator then use javascript calc. When I was born, I was cryed and everyone around me was smiling. Live our life so at the end, I am the one who is smiling and everyone around me is crying.
votrechien Posted May 3, 2008 Author Posted May 3, 2008 Hi Prafulkr, I'm not sure what you mean by "If you want to use calculator then use javascript calc."
arietis Posted May 7, 2008 Posted May 7, 2008 anyoneeee? i think prafulkr has hit on it. you have a form within a form like this: form ...your product description... buttons /form so if you have a form in your product description, it will then look like this: form ...descrption form .. your calculator ... /form buttons /form so the /form in your product description is seen by the browser before the button, therefore making the browser think that the buttons are not within the form. as prafulkr mentioned, using javascript can be helpful but i don't think it's everything. first, i'd remove the <form> tags from your description. the description is already within a form, so you don't need to create another one. how are you doing the calculations now? can you give an example of what you're putting into the product description? does it require posting the data to the server? this may be part of your problem. if you can provide the example, someone here may be able to show you how to do it with javascript and get it working the way you want it to.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.