I'm working on converting as store using this module to using "default" coding. The way the module handled it seems so easy. Additional Customer information is being collected when a customer creates an account on the ACAD screen. Then that same information is displayed on the ACED screen and can also be updated there.
Here's an example of one of many additional fields
There is a Custom Customer Field "TYPE" and to collect the data this is used:
To display the content on the ACED screen, this code is used:
Something else I have noticed with this code, if an error message reloads the page, all the content entered into these fields is wiped out. Very very frustrating.
So is there an easy peasy method to replace this code? And will that method retain the information in the field if the page reloads due to an error?
Here's an example of one of many additional fields
There is a Custom Customer Field "TYPE" and to collect the data this is used:
Code:
<mvt:item name="custedit" param="TYPE" /> <mvt:if expr="g.error_messages AND ISNULL l.settings:custedit:current:value"> <div class="&mvte:global:BillFirstName_Row; invalid"> <label class="required" for="l-Customer_&mvt:custedit:current:name;"><strong><span style="color:#FF0000;">&mvt:custedit:current:name;:</span></strong></label> <mvt:else> <div class="&mvte:global:BillFirstName_Row;"> <label class="required" for="l-Customer_CCF_TYPE"><strong>&mvt:custedit:current:name;:</strong></label> </mvt:if> <input type="text" size="25" name="Customer_CCF_TYPE" value="&mvte:custedit:current:value;" id="l-Customer_CCF_TYPE" class="input"> </div>
To display the content on the ACED screen, this code is used:
Code:
<div class="&mvte:global:BillFirstName_Row;"> <label class="required" for="l-Customer_ShipFirstName">Type of Business?:</label> <input type="text" size="25" name="Customer_CCF_TYPE" value="&mvte:global:Customer_CCF_TYPE;" class="input"> </div>
Something else I have noticed with this code, if an error message reloads the page, all the content entered into these fields is wiped out. Very very frustrating.
So is there an easy peasy method to replace this code? And will that method retain the information in the field if the page reloads due to an error?
Comment