[TYPO3-commerce] Broken html generated

Morten Olesen mo at idefa.dk
Fri Jun 13 15:15:55 CEST 2008


Hello,

When viewing a product the html code generated comtains a structure like

<form>
<input type="hidden" name="tx_commerce_pi1[catUid]" value="3" />
    <form name="attList_3" id="attList_3">
...dropdowns...
    </form>
      <input type="input" class="com-input-qty" value=""
name="tx_commerce_pi1[artAddUid][8][count]" size="3"/>
     <input type="submit" value="Submit"/>
</form>

This is "illegal" - you are not allowed to nest form elements.

Firefox solves this by ignoring the inner form - wich in turn causes a
javascript error every time you change your choice in the dropdowns.
Removing the outer form ( the inner one being hardcoded ) means the drop
downs works - with two+ the last one you choce anything from now show
the full length names of the attributes even - sadly altering another
drop down and it's back down to single letters. ofcourse since the
submit button, etc is outside the form you can no longer buy anything...


However even hand crafting an url ( by taking all the form elements and
putting them after the action url of the outer form ) the product added
to the basket does not show or use the chosen attributes ( subsequent
products with different attribute values will override the initial
product ).

I'm using the templates  from the latest nightly build (13/6) - so I'm
thinking either the templates in svn are not up to date, or product
attributes are not in a state where they are usable.


/Morten Olesen


More information about the TYPO3-project-commerce mailing list