Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
af7069ef
Commit
af7069ef
authored
Apr 13, 2023
by
liumengfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into production
parents
04d20bc5
e3882ffe
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
310 additions
and
18 deletions
+310
-18
app/code/Joshine/Common/Lib/MobileDetect/MobileDetect.php
+0
-0
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
+40
-0
app/code/Magento/Checkout/view/frontend/templates/cart/item/renderer/actions/remove.phtml
+2
-2
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
+1
-1
app/code/Magento/Checkout/view/frontend/web/template/shipping-address/shipping-method-item.html
+11
-8
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
+9
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
+235
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/renderer/actions/remove.phtml
+2
-2
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
+6
-2
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/cart/totals/grand-total.html
+1
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/summary/grand-total.html
+1
-1
app/design/frontend/Joshine/breeze/i18n/es_ES.csv
+1
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+1
-1
No files found.
app/code/Joshine/Common/Lib/MobileDetect/MobileDetect.php
0 → 100644
View file @
af7069ef
This diff is collapsed.
Click to expand it.
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
View file @
af7069ef
...
@@ -36,6 +36,11 @@ else
...
@@ -36,6 +36,11 @@ else
{
{
$difference_price
=
$free_shipping_subtotal
-
$subtotal
;
$difference_price
=
$free_shipping_subtotal
-
$subtotal
;
}
}
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
?>
?>
<style>
<style>
.free_message
{
.free_message
{
...
@@ -83,6 +88,9 @@ else
...
@@ -83,6 +88,9 @@ else
z-index
:
1
;
z-index
:
1
;
border-top
:
1px
solid
#fff
;
border-top
:
1px
solid
#fff
;
}
}
.cart.table-wrapper
{
border-top
:
1px
solid
#ddd
;
}
}
}
</style>
</style>
<?php
$mergedCells
=
(
$this
->
helper
(
Magento\Tax\Helper\Data
::
class
)
->
displayCartBothPrices
()
?
2
:
1
);
?>
<?php
$mergedCells
=
(
$this
->
helper
(
Magento\Tax\Helper\Data
::
class
)
->
displayCartBothPrices
()
?
2
:
1
);
?>
...
@@ -121,6 +129,7 @@ else
...
@@ -121,6 +129,7 @@ else
</div>
</div>
</div>
</div>
<?php
endif
?>
<?php
endif
?>
<?php
if
(
!
$mobileDetect
->
isMobile
())
:
?>
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
method=
"post"
method=
"post"
...
@@ -191,6 +200,37 @@ else
...
@@ -191,6 +200,37 @@ else
<input
type=
"hidden"
value=
""
id=
"update_cart_action_container"
data-cart-item-update=
""
/>
<input
type=
"hidden"
value=
""
id=
"update_cart_action_container"
data-cart-item-update=
""
/>
</div>
</div>
</form>
</form>
<?php
else
:
?>
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
method=
"post"
id=
"form-validate"
data-mage-init=
'{"Magento_Checkout/js/action/update-shopping-cart":
{"validationURL" : "
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updateItemQty'
))
?>
",
"updateCartActionContainer": "#update_cart_action_container"}
}'
class=
"form form-cart"
>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<div
class=
"cart table-wrapper
<?=
$mergedCells
==
2
?
' detailed'
:
''
?>
"
>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-top toolbar"
data-attribute=
"cart-products-toolbar-top"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
<?php
foreach
(
$block
->
getItems
()
as
$_item
)
:
?>
<?=
$block
->
getItemHtml
(
$_item
)
?>
<?php
endforeach
?>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-bottom toolbar"
data-attribute=
"cart-products-toolbar-bottom"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
</div>
</form>
<?php
endif
?>
<script>
<script>
require
([
'jquery'
],
function
(
$
)
{
require
([
'jquery'
],
function
(
$
)
{
$
(
'.add-qty'
).
click
(
function
(){
$
(
'.add-qty'
).
click
(
function
(){
...
...
app/code/Magento/Checkout/view/frontend/templates/cart/item/renderer/actions/remove.phtml
View file @
af7069ef
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
/** @var $block \Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove */
/** @var $block \Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove */
?>
?>
<a
href=
"#"
<a
href=
"#"
title=
"
<?=
$block
->
escapeHtml
(
__
(
'Remove
item
'
))
?>
"
title=
"
<?=
$block
->
escapeHtml
(
__
(
'Remove'
))
?>
"
class=
"action action-delete"
class=
"action action-delete"
data-post=
'
<?=
/* @noEscape */
$block
->
getDeletePostJson
()
?>
'
>
data-post=
'
<?=
/* @noEscape */
$block
->
getDeletePostJson
()
?>
'
>
<span>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Remove
item
'
))
?>
<?=
$block
->
escapeHtml
(
__
(
'Remove'
))
?>
</span>
</span>
</a>
</a>
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
View file @
af7069ef
...
@@ -72,7 +72,7 @@ define([
...
@@ -72,7 +72,7 @@ define([
return
priceUtils
.
formatPrice
(
price
,
quote
.
getPriceFormat
());
return
priceUtils
.
formatPrice
(
price
,
quote
.
getPriceFormat
());
},
},
getGrandTotal
:
function
(){
getGrandTotal
:
function
(){
return
this
.
getFormattedPrice
(
this
.
totals
[
'
base_
subtotal'
]);
return
this
.
getFormattedPrice
(
this
.
totals
[
'subtotal'
]);
},
},
/**
/**
* Set items to observable field
* Set items to observable field
...
...
app/code/Magento/Checkout/view/frontend/web/template/shipping-address/shipping-method-item.html
View file @
af7069ef
...
@@ -58,20 +58,21 @@
...
@@ -58,20 +58,21 @@
<div
class=
"method-msg"
>
<div
class=
"method-msg"
>
<span
class=
"col col-msg"
<span
class=
"col col-msg"
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
>
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
data-bind=
"i18n:'10-15 Working Days -'"
>
10-15 Working Days -
<span
class=
"free-over ff"
>
Free Over
<span
text=
"$parent.full_free_ship()"
></span></span>
</span>
</span>
<span
class=
"free-over ff"
data-bind=
"i18n:'Free Over'"
>
</span>
<span
text=
"$parent.full_free_ship()"
></span>
</div>
</div>
<!-- /ko -->
<!-- /ko -->
<!-- ko ifnot: (method.amount) -->
<!-- ko ifnot: (method.amount) -->
<div
class=
"method-msg"
>
<div
class=
"method-msg"
>
<span
class=
"col col-msg"
<span
class=
"col col-msg"
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
>
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
data-bind=
"i18n:'10-15 Working Days -'"
>
10-15 Working Days
</span>
</span>
</span>
</span>
</div>
</div>
...
@@ -135,19 +136,21 @@
...
@@ -135,19 +136,21 @@
<!-- ko if: (method.amount) -->
<!-- ko if: (method.amount) -->
<div
class=
"method-msg"
>
<div
class=
"method-msg"
>
<span
class=
"col col-msg"
<span
class=
"col col-msg"
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
>
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
data-bind=
"i18n:'10-15 Working Days -'"
>
10-15 Working Days -
<span
class=
"free-over"
>
Free Over
<span
text=
"$parent.full_free_ship()"
></span></span>
</span>
</span>
<span
class=
"free-over"
data-bind=
"i18n:'Free Over'"
></span>
<span
text=
"$parent.full_free_ship()"
></span>
</div>
</div>
<!-- /ko -->
<!-- /ko -->
<!-- ko ifnot: (method.amount) -->
<!-- ko ifnot: (method.amount) -->
<div
class=
"method-msg"
>
<div
class=
"method-msg"
>
<span
class=
"col col-msg"
<span
class=
"col col-msg"
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
>
attr=
"'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code_msg"
data-bind=
"i18n:'10-15 Working Days'"
>
10-15 Working Days
</span>
</span>
</span>
</span>
</div>
</div>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
View file @
af7069ef
...
@@ -20,6 +20,15 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
...
@@ -20,6 +20,15 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
.checkout-cart-index
.cart-container
.block.discount.active
.content
{
.checkout-cart-index
.cart-container
.block.discount.active
.content
{
padding
:
0px
1rem
;
padding
:
0px
1rem
;
}
}
@media
(
max-width
:
768px
){
.checkout-cart-index
.cart-container
.block.discount.active
.content
{
padding
:
0px
!important
;
}
.checkout-cart-index
.column.main
.block
.title
{
padding
:
0.45rem
!important
;
}
}
</style>
</style>
<!--
<!--
<div class="block discount"
<div class="block discount"
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
View file @
af7069ef
This diff is collapsed.
Click to expand it.
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/renderer/actions/remove.phtml
View file @
af7069ef
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
/** @var $block \Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove */
/** @var $block \Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove */
?>
?>
<a
href=
"#"
<a
href=
"#"
title=
"
<?=
$block
->
escapeHtml
(
__
(
'Remove
item
'
))
?>
"
title=
"
<?=
$block
->
escapeHtml
(
__
(
'Remove'
))
?>
"
class=
"action action-delete"
class=
"action action-delete"
data-post=
'
<?=
/* @noEscape */
$block
->
getDeletePostJson
()
?>
'
>
data-post=
'
<?=
/* @noEscape */
$block
->
getDeletePostJson
()
?>
'
>
<span>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Remove
item
'
))
?>
<?=
$block
->
escapeHtml
(
__
(
'Remove'
))
?>
</span>
</span>
</a>
</a>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
View file @
af7069ef
...
@@ -980,7 +980,12 @@ $free_price = $_helper->currency(0, true, false);
...
@@ -980,7 +980,12 @@ $free_price = $_helper->currency(0, true, false);
border
:
1px
solid
#ddd
!important
;
border
:
1px
solid
#ddd
!important
;
padding
:
0
!important
;
padding
:
0
!important
;
}
}
.checkout-index-index
.table-totals
td
,
.checkout-index-index
.table-totals
th
{
padding
:
0.1rem
0.5rem
;
}
.checkout-index-index
.table-totals
.grand.totals
td
{
padding-bottom
:
0.45rem
;
}
/********************************************address from end****************************************************/
/********************************************address from end****************************************************/
</style>
</style>
...
@@ -1026,7 +1031,6 @@ script;
...
@@ -1026,7 +1031,6 @@ script;
</div>
</div>
<script>
<script>
require
([
'jquery'
],
function
(
$
)
{
require
([
'jquery'
],
function
(
$
)
{
console
.
log
(
'window.checkoutConfig'
,
window
.
checkoutConfig
)
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
if
(
!
isMobile
)
{
if
(
!
isMobile
)
{
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/cart/totals/grand-total.html
View file @
af7069ef
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* See COPYING.txt for license details.
* See COPYING.txt for license details.
*/
*/
-->
-->
<tr
class=
"grand totals"
style=
"font-size: 2
2
px;"
>
<tr
class=
"grand totals"
style=
"font-size: 2
0
px;"
>
<th
class=
"mark"
colspan=
"1"
scope=
"row"
>
<th
class=
"mark"
colspan=
"1"
scope=
"row"
>
<strong
data-bind=
"i18n: title"
></strong>
<strong
data-bind=
"i18n: title"
></strong>
</th>
</th>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/summary/grand-total.html
View file @
af7069ef
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
-->
-->
<!-- ko if: isDisplayed() -->
<!-- ko if: isDisplayed() -->
<tr
class=
"grand totals"
style=
"font-size: 2
2
px;"
>
<tr
class=
"grand totals"
style=
"font-size: 2
0
px;"
>
<td
class=
"mark"
scope=
"row"
>
<td
class=
"mark"
scope=
"row"
>
<strong
data-bind=
"i18n: title"
></strong>
<strong
data-bind=
"i18n: title"
></strong>
</td>
</td>
...
...
app/design/frontend/Joshine/breeze/i18n/es_ES.csv
View file @
af7069ef
...
@@ -15636,6 +15636,7 @@ invalid email address,Dirección de correo electrónico no válida
...
@@ -15636,6 +15636,7 @@ invalid email address,Dirección de correo electrónico no válida
Free Over,Gratis sobre
Free Over,Gratis sobre
"10-15 Working Days -","10-15 días laborables-"
"10-15 Working Days -","10-15 días laborables-"
SECURE CHECKOUT,PAGO SEGURO
SECURE CHECKOUT,PAGO SEGURO
"10-15 Working Days","10-15 días laborables"
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
af7069ef
...
@@ -965,7 +965,7 @@ p.shopbycate-title {
...
@@ -965,7 +965,7 @@ p.shopbycate-title {
transition: all .3s;
transition: all .3s;
}
}
.checkout-cart-index #cart-totals table td,.checkout-cart-index #cart-totals table th {
.checkout-cart-index #cart-totals table td,.checkout-cart-index #cart-totals table th {
padding: 0.
3
rem 0.5rem;
padding: 0.
2
rem 0.5rem;
}
}
.catalog-product-view .recently-viewed .flash-sale-info .price-final_price .normal-price{
.catalog-product-view .recently-viewed .flash-sale-info .price-final_price .normal-price{
float:right;
float:right;
...
...
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