Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Miva - OSEL Create Account Iframe
<mvt:if expr="g.CustomerCreate">
<iframe name="processCreate" id="js-process-create" class="all-hidden"></iframe>
<form action="&mvt:global:secure_sessionurl;" method="post" target="processCreate" id="js-create-account" class="all-hidden">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
<input type="hidden" name="Action" value="ICST" />
<input type="hidden" name="Screen" value="ACED" />
<input type="hidden" name="PrevPage" value="INVC" />
<input type="hidden" name="Customer_LoginEmail" value="&mvte:global:Basket:ship_email;" />
<input type="password" name="Customer_Password" value="&mvte:global:CustomerCreate;" />
<input type="password" name="Customer_VerifyPassword" value="&mvte:global:CustomerCreate;" />
<input type="hidden" name="Customer_PasswordEmail" value="&mvte:global:Basket:ship_email;" />
<input type="hidden" name="Customer_ShipFirstName" value="&mvte:global:Basket:ship_fname;" />
<input type="hidden" name="Customer_ShipLastName" value="&mvte:global:Basket:ship_lname;" />
<input type="hidden" name="Customer_ShipEmail" value="&mvte:global:Basket:ship_email;" />
<input type="hidden" name="Customer_ShipPhone" value="&mvte:global:Basket:ship_phone;" />
<input type="hidden" name="Customer_ShipAddress1" value="&mvte:global:Basket:ship_addr1;" />
<input type="hidden" name="Customer_ShipAddress2" value="&mvte:global:Basket:ship_addr2;" />
<input type="hidden" name="Customer_ShipCity" value="&mvte:global:Basket:ship_city;" />
<input type="hidden" name="Customer_ShipState" value="&mvte:global:Basket:ship_state;" />
<input type="hidden" name="Customer_ShipZip" value="&mvte:global:Basket:ship_zip;" />
<input type="hidden" name="Customer_ShipCountry" value="&mvte:global:Basket:ship_cntry;" />
<input type="hidden" name="Customer_BillFirstName" value="&mvte:global:Basket:bill_fname;" />
<input type="hidden" name="Customer_BillLastName" value="&mvte:global:Basket:bill_lname;" />
<input type="hidden" name="Customer_BillEmail" value="&mvte:global:Basket:bill_email;" />
<input type="hidden" name="Customer_BillPhone" value="&mvte:global:Basket:bill_phone;" />
<input type="hidden" name="Customer_BillAddress1" value="&mvte:global:Basket:bill_addr1;" />
<input type="hidden" name="Customer_BillAddress2" value="&mvte:global:Basket:bill_addr2;" />
<input type="hidden" name="Customer_BillCity" value="&mvte:global:Basket:bill_city;" />
<input type="hidden" name="Customer_BillState" value="&mvte:global:Basket:bill_state;" />
<input type="hidden" name="Customer_BillZip" value="&mvte:global:Basket:bill_zip;" />
<input type="hidden" name="Customer_BillCountry" value="&mvte:global:Basket:bill_cntry;" />
</form>
<script>
function accountSubmit() {
var hiddenForm = document.getElementById('js-create-account');
hiddenForm.submit();
};
window.onload = accountSubmit();
</script>
</mvt:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment