Skip to content

Commit a324ec2

Browse files
author
Gil Greenberg
committed
Change cart wishlist link class to match PDP and elsewhere.
Currently, MultipleWishlist JS is broken on cart as it does not initialize since the class does not match: '.action.action-towishlist' compared to the expected value of '.action.towishlist'
1 parent ea35a09 commit a324ec2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/Wishlist/view/frontend/templates/cart/item/renderer/actions/move_to_wishlist.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<?php if ($block->isAllowInCart() && $block->isProductVisibleInSiteVisibility()): ?>
1212
<a href="#"
1313
data-post='<?= /* @noEscape */ $block->getMoveFromCartParams() ?>'
14-
class="use-ajax action action-towishlist">
14+
class="use-ajax action towishlist action-towishlist">
1515
<span><?= $block->escapeHtml(__('Move to Wishlist')) ?></span>
1616
</a>
1717
<?php endif ?>

app/design/frontend/Magento/luma/Magento_GiftMessage/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
}
329329

330330
.gift-options-cart-item {
331-
& + .action-towishlist {
331+
& + .towishlist {
332332
left: 43px;
333333
position: absolute;
334334
}

app/design/frontend/Magento/luma/Magento_Wishlist/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
}
268268

269269
.cart.table-wrapper {
270-
.action-towishlist {
270+
.towishlist {
271271
.lib-icon-font(
272272
@icon-wishlist-full,
273273
@_icon-font-size: 18px,

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/CartItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CartItem extends AbstractCartItem
4040
*
4141
* @var string
4242
*/
43-
protected $wishlistButton = '.action-towishlist';
43+
protected $wishlistButton = '.towishlist';
4444

4545
/**
4646
* Quantity input selector

0 commit comments

Comments
 (0)