//keep post values //input|value = /* input elements */ input[type="text"]|value = checkout@@macro postNameToArrayKey("@@__name__@@")@@ ?? ''; $value = '@@__value__@@'; if ($post) { $value = $post; } echo htmlspecialchars($value); ?> input[type="email"]|value = checkout@@macro postNameToArrayKey("@@__name__@@")@@ ?? ''; $value = '@@__value__@@'; if ($post) { $value = $post; } echo htmlspecialchars($value); ?> input[type="password"]|value = checkout@@macro postNameToArrayKey("@@__name__@@")@@ ?? ''; $value = '@@__value__@@'; if ($post) { $value = $post; } echo htmlspecialchars($value); ?> /* textarea elements */ textarea = checkout@@macro postNameToArrayKey("@@__name__@@")@@ ?? ''; $value = '@@__value__@@'; if ($post) { $value = $post; } echo htmlspecialchars($value); ?> input[name="register"]|addNewAttribute = input[name="terms"]|addNewAttribute = input[name="newsletter"]|addNewAttribute = input[name="different_shipping_address"]|addNewAttribute = #billing_address_new|addNewAttribute = [data-v-address] input[name="billing_address_id"]|addNewAttribute = [data-v-payment] input[name="payment_method"]|addNewAttribute = checkout['payment_method'] ?? ''; if ($payment_method == $payment['name']) echo ' checked'; ?> [data-v-shipping] input[name="shipping_method"]|addNewAttribute = checkout['shipping_method'] ?? ''; if ($shipping_method == $shipping['name']) echo ' checked'; ?> @country = [data-v-countries] option @country|deleteAllButFirstChild [data-v-countries]|before = checkout["@@__id__@@"] ?? false; ?> @country|before = countries) && is_array($this->countries)) { foreach ($this->countries as $country_index => $country) {?> [data-v-country-*]|innerText = $country['@@__data-v-country-(*)__@@'] option[data-v-country-*]|value = $country['@@__data-v-country-(*)__@@'] @country|innerText = $country['name'] @country|value = $country['country_id'] @country|addNewAttribute = @country|after = @region = [data-v-regions] option @region|deleteAllButFirstChild [data-v-regions]|before = checkout["@@__id__@@"] ?? false; ?> @region|before = regions) && is_array($this->regions)) { foreach ($this->regions as $region_index => $region) {?> [data-v-region-*]|innerText = $region['@@__data-v-region-(*)__@@'] option[data-v-region-*]|value = $region['@@__data-v-region-(*)__@@'] @region|innerText = $region['name'] @region|value = $region['region_id'] @region|addNewAttribute = @region|after = import(common.tpl)