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
9a0a919c
Commit
9a0a919c
authored
Sep 10, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix frontend 10/09_02
parent
76841094
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
4 deletions
+54
-4
styles.css
themes/contrib/estore/css/styles.css
+7
-2
custom.js
themes/contrib/estore/js/custom.js
+2
-2
commerce-order-total-summary.html.twig
...templates/commerce/commerce-order-total-summary.html.twig
+45
-0
No files found.
themes/contrib/estore/css/styles.css
View file @
9a0a919c
...
...
@@ -1372,7 +1372,12 @@ header.navbar .block-search-navigation .search-icon {
transition
:
0.3s
;
max-height
:
48px
;
}
.cart-form
.order-total-line.noti
h4
{
font-size
:
15px
;
}
.cart-form
.order-total-line.noti
{
padding
:
4px
20px
!important
;
}
/* invi 1440 */
@media
(
max-width
:
1200px
)
{
#block-sodienthoai
h3
{
...
...
@@ -13614,7 +13619,7 @@ a {
}
.cart-form
.table-responsive
{
min-height
:
2
00px
;
min-height
:
5
00px
;
}
.btn
{
...
...
themes/contrib/estore/js/custom.js
View file @
9a0a919c
...
...
@@ -136,9 +136,9 @@ for (i = 0; i < acc.length; i++) {
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
()
$
(
"article.commerce-product.full .product-right .field--name-variations button"
).
hide
();
$
(
"article.commerce-product.full .product-right .form-group.form-type-number"
).
hide
();
}
$
(
window
).
scroll
(
function
()
{
...
...
themes/contrib/estore/templates/commerce/commerce-order-total-summary.html.twig
0 → 100644
View file @
9a0a919c
{#
/**
* @file
* Default order total summary template.
*
* Available variables:
* - attributes: HTML attributes for the wrapper.
* - order_entity: The order entity.
* - totals: An array of order totals values with the following keys:
* - subtotal: The order subtotal price.
* - adjustments: The adjustments:
* - type: The adjustment type.
* - label: The adjustment label.
* - amount: The adjustment amount.
* - percentage: The decimal adjustment percentage, when available. For example, "0.2" for a 20% adjustment.
* - total: The order total price.
*
* @ingroup themeable
*/
#}
{{
attach_library
(
'commerce_order/total_summary'
)
}}
<div
{{
attributes
}}
>
<div
class=
"order-total-line order-total-line__subtotal"
>
<span
class=
"order-total-line-label"
>
{{
'Subtotal'
|
t
}}
</span><span
class=
"order-total-line-value"
>
{{
totals.subtotal
|
commerce_price_format
}}
</span>
</div>
{%
for
adjustment
in
totals.adjustments
%}
<div
class=
"order-total-line order-total-line__adjustment order-total-line__adjustment--
{{
adjustment.type
|
clean_class
}}
"
>
<span
class=
"order-total-line-label"
>
{{
adjustment.label
}}
</span><span
class=
"order-total-line-value"
>
{{
adjustment.amount
|
commerce_price_format
}}
</span>
</div>
{%
endfor
%}
<div
class=
"order-total-line order-total-line__total"
>
<span
class=
"order-total-line-label"
>
{{
'Total'
|
t
}}
</span><span
class=
"order-total-line-value"
>
{{
totals.total
|
commerce_price_format
}}
</span>
</div>
<div
class=
"order-total-line noti"
>
<h4>
Lưu ý
</h4>
<ul>
<li>
Tổng tiền hàng chưa bao gồm phí ship
</li>
<li>
Pin Tuấn Dung gọi điện xác nhận đơn hàng. Bạn phải trả tiền hàng khi nhận hàng. (Có thể phát sinh phụ phí 20.000đ, tùy thuộc vào phương thức ship hàng)
</li>
</ul>
</div>
</div>
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