Wprowadzenie kraju ostatniego zamówienia do localStorage i sprawdzenie go przy uzupełnianiu danych o płatnościach i dostawie

This commit is contained in:
2024-01-16 13:09:02 +01:00
parent 8462d4932c
commit d3582a5c50
4 changed files with 107 additions and 38 deletions

View File

@@ -379,7 +379,7 @@
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="client_street" class="f-label">
<iai:variable vid="Adres"/>
<iai:variable vid="Ulica i numer"/>
</label>
<span class="form-control-feedback"/>
</div>
@@ -656,7 +656,7 @@
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_street" class="f-label">
<iai:variable vid="Adres"/>
<iai:variable vid="Ulica i numer"/>
</label>
<span class="form-control-feedback"/>
</div>
@@ -709,9 +709,19 @@
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="@vat"/></iaixsl:attribute>
<iaixsl:if test="(@id = /shop/page/client-data/delivery_data/@region) or (@id = /shop/page/options/countries/@delivery_active)">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
<!--<iaixsl:if test="(@id = /shop/page/client-data/delivery_data/@region) or (@id = /shop/page/options/countries/@delivery_active)">-->
<!-- <iaixsl:attribute name="selected">selected</iaixsl:attribute>-->
<!--</iaixsl:if>-->
<iaixsl:choose>
<iaixsl:when test="/shop/page/client-data/invoice_data/@region > 0">
<iaixsl:if test="@id = /shop/page/client-data/invoice_data/@region">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
</iaixsl:when>
<iaixsl:when test="@id = /shop/page/options/countries/@delivery_active">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:when>
</iaixsl:choose>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>