Wprowadzenie zmian związanych z walidacją telefonu

This commit is contained in:
2024-06-28 09:00:09 +02:00
parent effa463126
commit 5d1eab59d9
5 changed files with 3653 additions and 3085 deletions

View File

@@ -55,6 +55,9 @@
</iaixsl:attribute> </iaixsl:attribute>
<iai:variable vid="Kontynuuj zakupy w sklepie"/> <iai:variable vid="Kontynuuj zakupy w sklepie"/>
</a> </a>
<div class="bm-oscop__container" id="place-order"> <div class="bm-oscop__container" id="place-order">
<div class="bm-oscop__form-data"> <div class="bm-oscop__form-data">
<!-- DANE KLIENTA --> <!-- DANE KLIENTA -->
@@ -129,10 +132,13 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="has-feedback f-feedback"> <div class="has-feedback f-feedback --phone">
<iaixsl:if test="not(/shop/page/client-data/profile_data/@login = '')"> <iaixsl:if test="not(/shop/page/client-data/profile_data/@login = '')">
<iaixsl:attribute name="class">has-feedback f-feedback --success has-success</iaixsl:attribute> <iaixsl:attribute name="class">has-feedback f-feedback --success has-success --phone</iaixsl:attribute>
</iaixsl:if> </iaixsl:if>
<div class="phone_number__code">
+<input class="phone_number__code_number" disabled="true"></input>
</div>
<input id="client_phone" type="tel" class="form-control validate f-control" name="client_phone" data-serialize="#client_region"> <input id="client_phone" type="tel" class="form-control validate f-control" name="client_phone" data-serialize="#client_region">
<iaixsl:if test="/shop/basket/@login"> <iaixsl:if test="/shop/basket/@login">
<iaixsl:attribute name="disabled">disabled</iaixsl:attribute> <iaixsl:attribute name="disabled">disabled</iaixsl:attribute>
@@ -784,10 +790,13 @@
</iaixsl:for-each> </iaixsl:for-each>
<div class="form-group --hide"> <div class="form-group --hide">
<div class="has-feedback f-feedback"> <div class="has-feedback f-feedback --phone">
<iaixsl:if test="@use = 'yes' and not(@phone = '')"> <iaixsl:if test="@use = 'yes' and not(@phone = '')">
<iaixsl:attribute name="class">has-feedback f-feedback has-success --success</iaixsl:attribute> <iaixsl:attribute name="class">has-feedback f-feedback has-success --success --phone</iaixsl:attribute>
</iaixsl:if> </iaixsl:if>
<div class="phone_number__code">
+<input class="phone_number__code_number" disabled="true"></input>
</div>
<input id="delivery_phone" type="text" class="form-control validate f-control" name="delivery_phone" data-serialize="#delivery_region"> <input id="delivery_phone" type="text" class="form-control validate f-control" name="delivery_phone" data-serialize="#delivery_region">
<iaixsl:if test="@use = 'yes' and not(@phone = '')"> <iaixsl:if test="@use = 'yes' and not(@phone = '')">
<iaixsl:attribute name="class">form-control validate f-control focused</iaixsl:attribute> <iaixsl:attribute name="class">form-control validate f-control focused</iaixsl:attribute>
@@ -921,26 +930,28 @@
<h2><i class="icon-list1"></i> <iai:variable vid="Podsumowanie"/></h2> <h2><i class="icon-list1"></i> <iai:variable vid="Podsumowanie"/></h2>
<div class="summary__products"> <div class="summary__products">
<iaixsl:for-each select="basket/product"> <iaixsl:for-each select="basket/product">
<div class="cop_product_wrap"> <div class="oscop_product_wrap">
<iaixsl:if test="position() &gt; 2"><iaixsl:attribute name="class">cop_product_wrap --hide</iaixsl:attribute></iaixsl:if> <iaixsl:attribute name="data-id"><iaixsl:value-of select="@id"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:if test="position() = '2' and not(position() = last())"><iaixsl:attribute name="class">cop_product_wrap --last-visible</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="position() = last()"><iaixsl:attribute name="class">cop_product_wrap --last</iaixsl:attribute></iaixsl:if> <iaixsl:if test="position() &gt; 2"><iaixsl:attribute name="class">oscop_product_wrap --hide</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="position() = last() and not(position() &lt; 3)"><iaixsl:attribute name="class">cop_product_wrap --hide --last-hidden</iaixsl:attribute></iaixsl:if> <iaixsl:if test="position() = '2' and not(position() = last())"><iaixsl:attribute name="class">oscop_product_wrap --last-visible</iaixsl:attribute></iaixsl:if>
<a class="cop_icon"> <iaixsl:if test="position() = last()"><iaixsl:attribute name="class">oscop_product_wrap --last</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="position() = last() and not(position() &lt; 3)"><iaixsl:attribute name="class">oscop_product_wrap --hide --last-hidden</iaixsl:attribute></iaixsl:if>
<a class="oscop_icon">
<iaixsl:attribute name="href"> <iaixsl:attribute name="href">
<iaixsl:value-of select="@link"/></iaixsl:attribute> <iaixsl:value-of select="@link"/></iaixsl:attribute>
<iaixsl:attribute name="title"> <iaixsl:attribute name="title">
<iaixsl:value-of select="name/text()"/></iaixsl:attribute> <iaixsl:value-of select="name/text()"/></iaixsl:attribute>
<img class="cop_icon-img" width="90" height="90"> <img class="oscop_icon-img" width="90" height="90">
<iaixsl:attribute name="src"> <iaixsl:attribute name="src">
<iaixsl:value-of select="icon/text()"/></iaixsl:attribute> <iaixsl:value-of select="icon/text()"/></iaixsl:attribute>
<iaixsl:attribute name="alt"> <iaixsl:attribute name="alt">
<iaixsl:value-of select="name/text()"/></iaixsl:attribute> <iaixsl:value-of select="name/text()"/></iaixsl:attribute>
</img> </img>
</a> </a>
<div class="cop_product_wrap_r"> <div class="oscop_product_wrap_r">
<iaixsl:if test="size/@ordered or size/@ordered_points"> <iaixsl:if test="size/@ordered or size/@ordered_points">
<strong class="cop_quantity"> <strong class="oscop_quantity">
<iaixsl:choose> <iaixsl:choose>
<iaixsl:when test="size/@ordered"> <iaixsl:when test="size/@ordered">
<iaixsl:value-of select="size/@ordered"/> <iaixsl:value-of select="size/@ordered"/>
@@ -951,7 +962,7 @@
</iaixsl:choose>x </iaixsl:choose>x
</strong> </strong>
</iaixsl:if> </iaixsl:if>
<a class="cop_product_name"> <a class="oscop_product_name">
<iaixsl:attribute name="href"> <iaixsl:attribute name="href">
<iaixsl:value-of select="@link"/></iaixsl:attribute> <iaixsl:value-of select="@link"/></iaixsl:attribute>
<iaixsl:attribute name="title"> <iaixsl:attribute name="title">
@@ -960,7 +971,7 @@
<iaixsl:value-of select="@id"/></iaixsl:attribute> <iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:value-of select="name/text()"/> <iaixsl:value-of select="name/text()"/>
</a> </a>
<span class="cop_price"> <span class="oscop_price">
<iaixsl:choose> <iaixsl:choose>
<iaixsl:when test="number(price/@value) &gt; 0"> <iaixsl:when test="number(price/@value) &gt; 0">
<iaixsl:value-of select="price/@worth_formatted"/> <iaixsl:value-of select="price/@worth_formatted"/>

View File

@@ -12,7 +12,7 @@ if(window.location.pathname.includes("return.html") && window.location.search.in
} }
// Przekierowanie ze strony order1 na OSCOP // Przekierowanie ze strony order1 na OSCOP
if(window.location.pathname.includes("order1.html") || window.location.pathname.includes("order1.php")){ if(window.location.pathname.includes("order1.html") || window.location.pathname.includes("order1.php") || (window.location.pathname.includes("signin.html") && window.location.search.includes("operation=onceorder"))){
app_shop.fn.ajaxLoadSite(1);// W starszych szablonach nie działa i trzeba zakomentować app_shop.fn.ajaxLoadSite(1);// W starszych szablonach nie działa i trzeba zakomentować
window.location = "/place-order.php"; window.location = "/place-order.php";
} }

2281
style.css

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long