File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import './handleEditWishlistModal';
66import { WishlistVariantButton } from './WishlistVariantButton' ;
77import { WishlistVariantPrice } from './WishlistVariantPrice' ;
88
9-
109const WishlistVariantElements = [ ...document . querySelectorAll ( '[data-bb-toggle="wishlist-variant"]' ) ] ;
1110export const WishlistVariantButtonList = WishlistVariantElements . map ( button => new WishlistVariantButton ( button ) . init ( ) ) ;
1211
Original file line number Diff line number Diff line change 3535 ' form' : form
3636 }) }}
3737
38- {{ form_widget(form .wishlists ) }}
39-
4038 <div class =" bb-add-to-cart-container" >
4139 <button type =" submit" class =" primary ui icon labeled button bb-wishlist-button"
4240 {{ sylius_test_html_attribute(' add-to-cart-button' ) }}>
4341 <i class =" cart icon" ></i >
4442 {{ ' sylius.ui.add_to_cart' | trans }}
4543 </button >
46- <button id =" {{ form .addToWishlist .vars .id }}" name =" {{ form .addToWishlist .vars .full_name }}"
47- class =" {{ form .addToWishlist .vars .attr .class }} ui icon labeled button bb-wishlist-button"
48- data-bb-toggle =" wishlist-variant"
49- {{ sylius_test_html_attribute(' wishlist-add-variant' ) }}>
50- <i class =" heart icon" ></i >
51- {{ form .addToWishlist .vars .label | trans }}
52- </button >
44+
45+ {% include ' @BitBagSyliusWishlistPlugin/Common/_addToWishlist.html.twig' %}
5346 </div >
5447 {{ form_row(form ._token ) }}
5548 {{ form_end(form , {' render_rest' : false }) }}
You can’t perform that action at this time.
0 commit comments