Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ptd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quan Nguyen
ptd
Commits
76841094
Commit
76841094
authored
Sep 10, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix css 10/09
parent
92ad0608
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
styles.css
themes/contrib/estore/css/styles.css
+0
-0
custom.js
themes/contrib/estore/js/custom.js
+11
-8
commerce-checkout-completion-message.html.twig
...s/commerce/commerce-checkout-completion-message.html.twig
+2
-2
page.html.twig
themes/contrib/estore/templates/system/page.html.twig
+1
-1
No files found.
themes/contrib/estore/css/styles.css
View file @
76841094
This diff is collapsed.
Click to expand it.
themes/contrib/estore/js/custom.js
View file @
76841094
...
...
@@ -98,9 +98,9 @@ for (i = 0; i < acc.length; i++) {
$
(
".sidebar-submenu-2"
).
eq
(
i
).
children
(
'li'
).
slice
(
0
,
10
).
wrapAll
(
"<ul></ul>"
);
}
}
}
$
(
".dropdown-toggle"
).
mouseover
(
function
()
{
$
(
this
).
parent
(
"li.expanded.dropdown"
).
addClass
(
"open"
);
})
...
...
@@ -127,15 +127,19 @@ for (i = 0; i < acc.length; i++) {
}
// $(".region-middle-bottom-header button").text(" ")
var
textPrice
=
$
(
".field--name-price"
);
for
(
let
i
=
0
;
i
<
textPrice
.
length
;
i
++
){
let
price
=
textPrice
.
eq
(
i
).
text
();
cost
=
price
.
split
(
''
).
slice
(
0
,
1
).
join
(
""
);
if
(
cost
==
"0"
)
{
textPrice
.
eq
(
i
).
text
(
"Liên hệ"
)
textPrice
.
eq
(
i
).
text
(
"Liên hệ"
)
;
}
}
console
.
log
(
screen
.
width
);
if
(
$
(
"article.commerce-product.full .field--name-price"
).
text
()
==
"Liên hệ"
){
$
(
"article.commerce-product.full .product-right .field--name-variations button"
).
hide
()
}
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
>
130
)
{
...
...
@@ -161,10 +165,10 @@ for (i = 0; i < acc.length; i++) {
numberInput
.
after
(
'<div class="button btn-inde">+</div>'
);
numberInput
.
before
(
'<div class="button btn-inde">-</div>'
);
$
(
'.btn-inde'
).
click
(
function
()
{
var
$button
=
$
(
this
);
var
oldValue
=
$button
.
parent
().
find
(
"input"
).
val
();
if
(
$button
.
text
()
==
"+"
)
{
var
newVal
=
parseFloat
(
oldValue
)
+
1
;
}
else
{
...
...
@@ -176,7 +180,7 @@ for (i = 0; i < acc.length; i++) {
}
}
$button
.
parent
().
find
(
"input"
).
val
(
newVal
);
});
$
(
'.cart-form .table-responsive'
).
addClass
(
'col-lg-9 col-sm-12 col-xs-12'
);
$
(
'.cart-form .field--name-total-price'
).
addClass
(
'cart-total col-lg-3 col-sm-12 col-xs-12 text-center'
)
...
...
@@ -199,4 +203,3 @@ for (i = 0; i < acc.length; i++) {
$
(
".mobile-modal"
).
hide
();
})
})(
window
.
jQuery
,
window
.
Drupal
);
themes/contrib/estore/templates/commerce/commerce-checkout-completion-message.html.twig
View file @
76841094
...
...
@@ -15,9 +15,9 @@
{%
if
payment_instructions
%}
<div
class=
"checkout-complete__payment-instructions"
>
<h2>
{{
'Payment instructions'
|
t
}}
</h2>
<h4
style=
"font-weight: 400"
>
{{
'You can view your order on your account page when logged in.'
|
t
}}
</h4>
<h4>
{{
'Your order number is @number.'
|
t
(
{
'@number'
:
order_entity.getOrderNumber
}
)
}}
</h4>
<h4>
Your order number is
<span
style=
"color: #e94337"
>
{{
'@number.'
|
t
(
{
'@number'
:
order_entity.getOrderNumber
}
)
}}
</span>
</h4>
<h4
style=
"font-weight: 400"
>
{{
payment_instructions
}}
</h4>
</div>
{%
endif
%}
...
...
themes/contrib/estore/templates/system/page.html.twig
View file @
76841094
...
...
@@ -135,7 +135,7 @@
<div
class=
"wrap-header"
>
<div
class=
"middle-header-wrapper clearfix"
>
<div
class=
"container-fluid"
>
<div
class=
"col-md-3 col-xs-7"
>
<div
class=
"col-md-3 col-xs-7
page-logo
"
>
{%
if
page.left_middle_header
%}
{{
page.left_middle_header
}}
{%
endif
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment