SimpleCart doesn’t save parts of oder address and also no delivery address fields. The order is created successfully and also 2 address entries in simplecart_orders_addresses
table. The problem is both address entries have the same field values (of order address) and address1
+ address2
fields are empty.
The missing fields are written to the simplecart_orders_fields
table although the &orderAddress
and &deliverAddress
snippet params are set correctly.
This is the part of my last checkout step which should finish the order and save both order + delivery address fields!
Whats wrong here?
&placeholderPrefix=`order.`
&storeLocation=`session`
&redirectToOnNotFound=`[[*parent]]`
]]
[[!FormIt?
&submitVar=`doOrder`
&store=`1`
&storeTime=`1500`
&storeLocation=`session`
&hooks=`scCreateOrder,redirect`
&redirectTo=`[[*id:scFirstChild]]`
&orderAddress=`
salutation:gender,
firstname:firstname,
lastname:lastname,
address1:street,
address2:nr,
city:city,
zip:zip,
country:country,
phone:phone,
email:email`
&deliverAddress=`
salutation:gender2,
firstname:firstname2,
lastname:lastname2,
address1:street2,
address2:nr2,
city:city2,
zip:zip2,
country:country2,
phone:phone2,
email:email2`
&placeholderPrefix=`order.`
]]
<form action="[[~[[*id]]]]" method="post">
<input type="hidden" name="doOrder" value="1">
<input type="hidden" name="checkoutprogress" value="1">
<input type="hidden" name="deliveryMethod" value="[[+order.deliveryMethod]]">
<input type="hidden" name="paymentMethod" value="[[!+order.paymentMethod]]">
<input type="hidden" name="gender" value="[[!+order.gender]]">
<input type="hidden" name="firstname" value="[[!+order.firstname]]">
<input type="hidden" name="lastname" value="[[!+order.lastname]]">
<input type="hidden" name="street" value="[[!+order.street]]">
<input type="hidden" name="nr" value="[[!+order.nr]]">
<input type="hidden" name="city" value="[[!+order.city]]">
<input type="hidden" name="zip" value="[[!+order.zip]]">
<input type="hidden" name="country" value="[[!+order.country]]">
<input type="hidden" name="phone" value="[[!+order.phone]]">
<input type="hidden" name="email" value="[[!+order.email]]">
<input type="hidden" name="vatid" value="[[!+order.vatid]]">
<input type="hidden" name="gender2" value="[[!+order.gender2]]">
<input type="hidden" name="firstname2" value="[[!+order.firstname2]]">
<input type="hidden" name="lastname2" value="[[!+order.lastname2]]">
<input type="hidden" name="street2" value="[[!+order.street2]]">
<input type="hidden" name="nr2" value="[[!+order.nr2]]">
<input type="hidden" name="city2" value="[[!+order.city2]]">
<input type="hidden" name="zip2" value="[[!+order.zip2]]">
<input type="hidden" name="country2" value="[[!+order.country2]]">
<input type="hidden" name="phone2" value="[[!+order.phone2]]">
<input type="hidden" name="email2" value="[[!+order.email2]]">
<div class="next-step">
<a href="[[~[[*parent]]]]" class="btn btn-default btn-round btn-colored pull-left ns-prev" role="button"><i class="fa fa-arrow-left" aria-hidden="true"></i> Bezahlung</a>
<button type="submit" class="btn btn-default btn-round btn-colored pull-right ns-next">Jetzt bestellen!</button>
</div>
</form>