File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
config/twig_hooks/product Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ sylius_twig_hooks:
33 ' sylius_shop.shared.product.card ' :
44 add_to_wishlist :
55 template : " @SyliusWishlistPlugin/common/add_to_wishlist.html.twig"
6- priority : -100
6+ priority : 50
Original file line number Diff line number Diff line change 33{% set wishlists = isUser ? findAllByShopUserAndToken(app .user ) : findAllByAnonymousAndChannel(sylius .channel ) %}
44{% set is_single_wishlist = wishlists | length < 2 %}
55
6- <div class =" mt -3" >
6+ <div class =" my -3" >
77 {% if is_single_wishlist %}
88 <a
99 href =" {{ path(' sylius_wishlist_plugin_shop_locale_wishlist_add_product' , {' productId' : product .id }) }}"
Original file line number Diff line number Diff line change 77{% set btn_class = ' btn btn-icon btn-outline-secondary text-nowrap w-100 justify-content-start' %}
88
99<div class =" dropdown bb-colective-actions disabled" >
10- <button class =" btn btn-outline-secondary dropdown-toggle" type =" button" data-bs-toggle =" dropdown" aria-expanded =" false" >
10+ <button class =" btn btn-outline-secondary dropdown-toggle w-100 " type =" button" data-bs-toggle =" dropdown" aria-expanded =" false" >
1111 {{ ' sylius.ui.bulk_actions' | trans }}
1212 </button >
1313 <ul class =" dropdown-menu p-2" >
Original file line number Diff line number Diff line change 11<a href =" {{ path(' sylius_wishlist_plugin_shop_locale_wishlist_import_from_csv' ) }}" >
2- <button type =" button" class =" btn btn-icon btn-outline-secondary" {{ sylius_test_html_attribute(' wishlist-import-from-csv' ) }}>
2+ <button type =" button" class =" btn btn-icon btn-outline-secondary w-100 " {{ sylius_test_html_attribute(' wishlist-import-from-csv' ) }}>
33 {{ ux_icon(' mdi:import' , {' class' : ' icon icon-sm' }) }}
44 {{ ' sylius_wishlist_plugin.ui.import_from_csv' | trans }}
55 </button >
Original file line number Diff line number Diff line change 1616 {% endif %}
1717 {% if wishlists | length > 1 %}
1818 {% else %}
19- <div class =" d-flex justify-content-between" >
19+ <div class =" d-flex flex-column flex-lg-row justify-content-between gap-2 " >
2020 {% if wishlist .wishlistProducts .count > 0 %}
2121 <a href =" {{ path(' sylius_wishlist_plugin_shop_locale_wishlist_clean' , {' wishlistId' : wishlist .id }) }}"
2222 class =" clean-wishlist text-decoration-none d-flex align-items-center" >
6969 value =" {{ itemForm .vars .data .wishlistProduct .variant .id }}" />
7070 {% endfor %}
7171
72- <div class =" bb-wishlist-actions" >
72+ <div class =" bb-wishlist-actions flex-column flex-lg-row align-items-stretch align-items-lg-center gap-2 " >
7373 {% include " @SyliusWishlistPlugin/wishlist_details/collective_actions.html.twig" %}
7474 {% include " @SyliusWishlistPlugin/wishlist_details/global_actions.html.twig" %}
7575 </div >
You can’t perform that action at this time.
0 commit comments