Wprowadzenie zmian związanych z walidacją telefonu
This commit is contained in:
41
index.xslt
41
index.xslt
@@ -55,6 +55,9 @@
|
||||
</iaixsl:attribute>
|
||||
<iai:variable vid="Kontynuuj zakupy w sklepie"/>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<div class="bm-oscop__container" id="place-order">
|
||||
<div class="bm-oscop__form-data">
|
||||
<!-- DANE KLIENTA -->
|
||||
@@ -129,10 +132,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<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: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>
|
||||
<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">
|
||||
<iaixsl:if test="/shop/basket/@login">
|
||||
<iaixsl:attribute name="disabled">disabled</iaixsl:attribute>
|
||||
@@ -784,10 +790,13 @@
|
||||
</iaixsl:for-each>
|
||||
|
||||
<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: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>
|
||||
<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">
|
||||
<iaixsl:if test="@use = 'yes' and not(@phone = '')">
|
||||
<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>
|
||||
<div class="summary__products">
|
||||
<iaixsl:for-each select="basket/product">
|
||||
<div class="cop_product_wrap">
|
||||
<iaixsl:if test="position() > 2"><iaixsl:attribute name="class">cop_product_wrap --hide</iaixsl:attribute></iaixsl:if>
|
||||
<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() = last() and not(position() < 3)"><iaixsl:attribute name="class">cop_product_wrap --hide --last-hidden</iaixsl:attribute></iaixsl:if>
|
||||
<a class="cop_icon">
|
||||
<div class="oscop_product_wrap">
|
||||
<iaixsl:attribute name="data-id"><iaixsl:value-of select="@id"></iaixsl:value-of></iaixsl:attribute>
|
||||
|
||||
<iaixsl:if test="position() > 2"><iaixsl:attribute name="class">oscop_product_wrap --hide</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>
|
||||
<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() < 3)"><iaixsl:attribute name="class">oscop_product_wrap --hide --last-hidden</iaixsl:attribute></iaixsl:if>
|
||||
<a class="oscop_icon">
|
||||
<iaixsl:attribute name="href">
|
||||
<iaixsl:value-of select="@link"/></iaixsl:attribute>
|
||||
<iaixsl:attribute name="title">
|
||||
<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:value-of select="icon/text()"/></iaixsl:attribute>
|
||||
<iaixsl:attribute name="alt">
|
||||
<iaixsl:value-of select="name/text()"/></iaixsl:attribute>
|
||||
</img>
|
||||
</a>
|
||||
<div class="cop_product_wrap_r">
|
||||
<div class="oscop_product_wrap_r">
|
||||
<iaixsl:if test="size/@ordered or size/@ordered_points">
|
||||
<strong class="cop_quantity">
|
||||
<strong class="oscop_quantity">
|
||||
<iaixsl:choose>
|
||||
<iaixsl:when test="size/@ordered">
|
||||
<iaixsl:value-of select="size/@ordered"/>
|
||||
@@ -951,7 +962,7 @@
|
||||
</iaixsl:choose>x
|
||||
</strong>
|
||||
</iaixsl:if>
|
||||
<a class="cop_product_name">
|
||||
<a class="oscop_product_name">
|
||||
<iaixsl:attribute name="href">
|
||||
<iaixsl:value-of select="@link"/></iaixsl:attribute>
|
||||
<iaixsl:attribute name="title">
|
||||
@@ -960,7 +971,7 @@
|
||||
<iaixsl:value-of select="@id"/></iaixsl:attribute>
|
||||
<iaixsl:value-of select="name/text()"/>
|
||||
</a>
|
||||
<span class="cop_price">
|
||||
<span class="oscop_price">
|
||||
<iaixsl:choose>
|
||||
<iaixsl:when test="number(price/@value) > 0">
|
||||
<iaixsl:value-of select="price/@worth_formatted"/>
|
||||
|
||||
@@ -12,7 +12,7 @@ if(window.location.pathname.includes("return.html") && window.location.search.in
|
||||
}
|
||||
|
||||
// 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ć
|
||||
window.location = "/place-order.php";
|
||||
}
|
||||
79
style.css
79
style.css
@@ -286,15 +286,15 @@
|
||||
}
|
||||
|
||||
// Zmiana fontsize na 16px na desktop
|
||||
.order__voucher_headlines strong, .order__voucher_button, #signin-form .signin-form__button, .delivery__address-list-name, .osc_item-modal h2, .propose_title, #bm-oscop-remarks h3, #summary-points, #fbs_z02_wrapper .big_label, .propose_main .button_password_recover, .rebate__title{
|
||||
.bm-oscop-deliveries__message, .order__voucher_headlines strong, .order__voucher_button, #signin-form .signin-form__button, .delivery__address-list-name, .osc_item-modal h2, .propose_title, #bm-oscop-remarks h3, #summary-points, #fbs_z02_wrapper .big_label, .propose_main .button_password_recover, .rebate__title{
|
||||
font-size: 1.6rem!important;
|
||||
}
|
||||
// Zmiana fontsize na 14px na desktop
|
||||
.order2_terms_checkall, .register_client_checkbox, .firm-form, #delivery_box_switcher label, #bm-oscop-payments .name, .client_type-text{
|
||||
.phone_number__code, .order2_terms_checkall, .register_client_checkbox, .firm-form, #delivery_box_switcher label, #bm-oscop-payments .name, .client_type-text{
|
||||
font-size: 1.4rem!important;
|
||||
}
|
||||
// Zmiana fontsize na 13px na desktop
|
||||
.cop_product_wrap, .order_pay_wrapper, .order2_shiptime, .signin_header, .delivery_date, .remarks__container span, .delivery__address-list-street, .delivery__address-list-city, .delivery__address-list-zipcode, .delivery__address-list-phone, .delivery__address-country_name, .propose_text, .register__hide-password::before, #locationField .btn, .rebate__active-options button{
|
||||
.oscop_product_wrap, .order_pay_wrapper, .order2_shiptime, .signin_header, .delivery_date, .remarks__container span, .delivery__address-list-street, .delivery__address-list-city, .delivery__address-list-zipcode, .delivery__address-list-phone, .delivery__address-country_name, .propose_text, .register__hide-password::before, #locationField .btn, .rebate__active-options button{
|
||||
font-size: 1.3rem!important;
|
||||
}
|
||||
// Zmiana fontsize na 12px na desktop
|
||||
@@ -664,6 +664,36 @@
|
||||
.client_type-text{
|
||||
margin-right: 1rem;
|
||||
}
|
||||
.--phone{
|
||||
display: grid;
|
||||
grid-template-columns: minmax(auto, 50px) 1fr;
|
||||
.help-block.validate_message.text-danger{
|
||||
grid-column: span 2;
|
||||
}
|
||||
.f-label{
|
||||
left: 76px!important;
|
||||
}
|
||||
.form-control{
|
||||
border-radius: 0 8px 8px 0!important;
|
||||
}
|
||||
}
|
||||
.phone_number__code{
|
||||
background: #f2f2f2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 0.5rem;
|
||||
font-weight: 600;
|
||||
border: 1px solid #c4c7c8;
|
||||
border-radius: 8px 0 0 8px;
|
||||
border-right: none!important;
|
||||
&_number{
|
||||
height: 100%;
|
||||
border: none;
|
||||
max-width: 36px;
|
||||
padding-left: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Sekcja dostawa i płatności
|
||||
#bm-oscop-payments .osc_item{
|
||||
@@ -672,6 +702,21 @@
|
||||
#bm-oscop-deliveries .osc_item{
|
||||
grid-template-columns: 13px 70px 1fr auto;
|
||||
}
|
||||
.bm-oscop-deliveries__message{
|
||||
background: 1px solid @warning_color;
|
||||
background: #fcca83;
|
||||
padding: 1rem 2rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.bm-oscop-deliveries__message::before{
|
||||
content: '\F06A';
|
||||
font-family: fontawesome;
|
||||
color: @warning_color;
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
|
||||
#bm-oscop-section2{
|
||||
.osc_item {
|
||||
gap: 1.2rem;
|
||||
@@ -715,6 +760,7 @@
|
||||
.fselectedPoint{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
grid-column: 1 / span 3;
|
||||
}
|
||||
.pickup_point{
|
||||
border: none!important;
|
||||
@@ -797,7 +843,7 @@
|
||||
.less_scrollbar();
|
||||
}
|
||||
}
|
||||
.cop_product_wrap{
|
||||
.oscop_product_wrap{
|
||||
display: grid;
|
||||
grid-template-columns: 90px 1fr;
|
||||
align-items: center;
|
||||
@@ -814,15 +860,15 @@
|
||||
.--last-visible, .--last-hidden{
|
||||
border-bottom: none;
|
||||
}
|
||||
.cop_product_wrap_r, .cop_icon{
|
||||
.oscop_product_wrap_r, .oscop_icon{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.cop_product_wrap_r {
|
||||
.oscop_product_wrap_r {
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.cop_icon{
|
||||
.oscop_icon{
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
height: 90px;
|
||||
@@ -830,13 +876,13 @@
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
.cop_icon-img{
|
||||
.oscop_icon-img{
|
||||
transition: all 0.25s;
|
||||
}
|
||||
.cop_icon-img:hover{
|
||||
.oscop_icon-img:hover{
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.cop_price{
|
||||
.oscop_price{
|
||||
min-width: 60px;
|
||||
text-align: right;
|
||||
}
|
||||
@@ -1016,15 +1062,15 @@
|
||||
grid-template-columns: 1fr!important;
|
||||
}
|
||||
// Zmiana fontsize na 12px mobile
|
||||
.cop_product_wrap_r .cop_quantity{
|
||||
.oscop_product_wrap_r .oscop_quantity{
|
||||
font-size: 1.2rem!important;
|
||||
}
|
||||
// Zmiana fontsize na 13px mobile
|
||||
.delivery_date, .cop_product_wrap_r .cop_price, .order2_terms_wrapper_sub:not(.needed-text), #mail_propose_signin, #mail_propose_close {
|
||||
.delivery_date, .oscop_product_wrap_r .oscop_price, .order2_terms_wrapper_sub:not(.needed-text), #mail_propose_signin, #mail_propose_close {
|
||||
font-size: 1.3rem!important;
|
||||
}
|
||||
// Zmiana fontsize na 14px mobile
|
||||
.bm-oscop__btn, .cop_product_wrap_r .cop_product_name, .rebate__options, .order2_terms_wrapper_sub.newsletter, .propose_text, .propose_json_mail, .button_password_recover, #bm-oscop-section2 #bm-oscop-remarks h3, .rebate__title{
|
||||
.bm-oscop__btn, .oscop_product_wrap_r .oscop_product_name, .rebate__options, .order2_terms_wrapper_sub.newsletter, .propose_text, .propose_json_mail, .button_password_recover, #bm-oscop-section2 #bm-oscop-remarks h3, .rebate__title{
|
||||
font-size: 1.4rem!important;
|
||||
}
|
||||
#delivery_box_switcher label, #FBS_faktura > span, #bm-oscop-payments .osc_item .name{
|
||||
@@ -1150,11 +1196,11 @@
|
||||
img{
|
||||
max-width: 100%!important;
|
||||
}
|
||||
.cop_product_wrap_r{
|
||||
.oscop_product_wrap_r{
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.8rem;
|
||||
.cop_price{
|
||||
.oscop_price{
|
||||
text-align: left;
|
||||
padding-top: 0.8rem;
|
||||
}
|
||||
@@ -1329,6 +1375,7 @@
|
||||
height: 500px;
|
||||
width: 100%;
|
||||
margin-bottom: 25px;
|
||||
position: relative;
|
||||
}
|
||||
.loadingPoints {
|
||||
background: #ffffff;
|
||||
@@ -1538,7 +1585,7 @@
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.order2_button_order{
|
||||
order2_button_order{
|
||||
display: inline-block!important;
|
||||
width: 100%;
|
||||
padding: 1.4rem;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user