Skip to content

Commit

Permalink
Merge pull request #303 from lmeyer1/fix-address-country
Browse files Browse the repository at this point in the history
Fix: changing the country creates a new address
  • Loading branch information
prestarocket authored Nov 23, 2022
2 parents 467998e + fbbb150 commit 7ded63d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/checkout/_partials/address-form.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
method="POST"
action="{url entity='order' params=['id_address' => $id_address]}"
data-id-address="{$id_address}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm', 'id_address' => $id_address]}"
class="needs-validation"
novalidate
>
Expand Down
2 changes: 1 addition & 1 deletion templates/checkout/_partials/steps/addresses.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<form
method="POST"
action="{url entity='order' params=['id_address' => $id_address]}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm', 'id_address' => $id_address]}"
{if $show_delivery_address_form || ($show_invoice_address_form && !$use_same_address)}class="needs-validation" autocomplete="false" novalidate{/if}
>
{if !$use_same_address}
Expand Down
2 changes: 1 addition & 1 deletion templates/customer/_partials/address-form.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
class="needs-validation"
action="{url entity='address' params=['id_address' => $id_address]}"
data-id-address="{$id_address}"
data-refresh-url="{url entity='address' params=['ajax' => 1, 'action' => 'addressForm']}"
data-refresh-url="{url entity='address' params=['ajax' => 1, 'action' => 'addressForm', 'id_address' => $id_address]}"
novalidate
autocomplete="false"
>
Expand Down

0 comments on commit 7ded63d

Please sign in to comment.