Sunday 26 November 2006 10:23:20 am
Im overriding user register for a shop user that buys a subscription to the website and for that he must register has a "normal user" but i dont want him to fill again the all form, so im using information of his shop account to pass this information to the user register. I solved it copying some code from user register.tpl into orderview.tpl wich is the final step of any buy. Had to include register.php in orderview.php so the functionas are called correctly. Has the loop woldnt solve my problem took this code from documentation and made some alteration so it may suite my conditions. Login Password and email are stored in database and the user is created but all other information never reaches the database, but i can see it's there for the line {$order.account_information.first_name} displays the correct information
{$content_attributes[13].contentclass_attribute.name} {attribute_edit_gui attribute=$content_attributes[13]}<br> {$content_attributes[14].contentclass_attribute.name} {attribute_edit_gui attribute=$content_attributes[14]}<br>
{$order.account_information.first_name}
<input type="text" name="ContentObjectAttribute_id[]" value="{$order.account_information.first_name}" />
<input type="text" name="ContentObjectAttribute_id[]" value="{$order.account_information.street2}" />
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$order.account_information.zip}" />
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$order.account_information.place}" />
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$content_attributes[13].id}" /> <input type="hidden" name="ContentObjectAttribute_id[]" value="{$content_attributes[14].id}" /> Can anybody tell me wat is wrong ? I'm not a programmer but the code seems to be correct and it shows all the informations...
|