spree_frontend 4.0.9 → 4.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/app/assets/images/arrow-right.svg +1 -0
- data/app/assets/images/arrow.svg +1 -0
- data/app/assets/images/bag.svg +1 -0
- data/app/assets/images/burger.svg +1 -0
- data/app/assets/images/check-mark-circle.png +0 -0
- data/app/assets/images/check-mark-circle.svg +1 -0
- data/app/assets/images/check-mark.svg +1 -0
- data/app/assets/images/circle-radio.svg +1 -0
- data/app/assets/images/circle.svg +1 -0
- data/app/assets/images/close.svg +1 -0
- data/app/assets/images/credit_cards/icons/american_express.svg +1 -0
- data/app/assets/images/credit_cards/icons/diners_club.svg +1 -0
- data/app/assets/images/credit_cards/icons/discover.svg +1 -0
- data/app/assets/images/credit_cards/icons/generic.svg +1 -0
- data/app/assets/images/credit_cards/icons/jcb.svg +1 -0
- data/app/assets/images/credit_cards/icons/maestro.svg +1 -0
- data/app/assets/images/credit_cards/icons/master.svg +1 -0
- data/app/assets/images/credit_cards/icons/visa.svg +1 -0
- data/app/assets/images/edit.svg +1 -0
- data/app/assets/images/empty-cart.svg +1 -0
- data/app/assets/images/error.svg +1 -0
- data/app/assets/images/facebook.svg +1 -0
- data/app/assets/images/full_circle-radio.svg +1 -0
- data/app/assets/images/full_circle.svg +1 -0
- data/app/assets/images/garbage.svg +1 -0
- data/app/assets/images/garbage_2.svg +1 -0
- data/app/assets/images/homepage/big_category_banner.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/main_banner.jpg +0 -0
- data/app/assets/images/homepage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/products.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_portrait.jpg +0 -0
- data/app/assets/images/instagram.svg +1 -0
- data/app/assets/images/logo-spree.png +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/logo.svg +1 -0
- data/app/assets/images/logo@2x.png +0 -0
- data/app/assets/images/logo@3x.png +0 -0
- data/app/assets/images/magnifying-glass.svg +1 -0
- data/app/assets/images/meganav/promo_banner_left-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-third-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-third-category.jpg +0 -0
- data/app/assets/images/minus.svg +1 -0
- data/app/assets/images/noimage/big_category_banner.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/category_banner.jpg +0 -0
- data/app/assets/images/noimage/category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/category_banner_plp.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/main_banner.jpg +0 -0
- data/app/assets/images/noimage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/plp.png +0 -0
- data/app/assets/images/noimage/product_photo.jpg +0 -0
- data/app/assets/images/noimage/promo_banner.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_megamenu.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/pagination-arrow-right.svg +12 -0
- data/app/assets/images/pagination-double-arrow-right.svg +15 -0
- data/app/assets/images/person.svg +1 -0
- data/app/assets/images/picture-zoom.svg +31 -0
- data/app/assets/images/plus.svg +1 -0
- data/app/assets/images/radio-button.svg +1 -0
- data/app/assets/images/search-no-results.svg +1 -0
- data/app/assets/images/search.svg +1 -0
- data/app/assets/images/spark-logo@3x.png +0 -0
- data/app/assets/images/twitter.svg +1 -0
- data/app/assets/images/vimeo.svg +1 -0
- data/app/assets/javascripts/spree/frontend/account.js +12 -0
- data/app/assets/javascripts/spree/frontend/api_tokens.js +4 -1
- data/app/assets/javascripts/spree/frontend/carousel-noconflict.js +3 -0
- data/app/assets/javascripts/spree/frontend/cart.js +61 -3
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +24 -6
- data/app/assets/javascripts/spree/frontend/checkout/shipment.js +1 -1
- data/app/assets/javascripts/spree/frontend/checkout.js +42 -0
- data/app/assets/javascripts/spree/frontend/components-bootstrap/.gitkeep +0 -0
- data/app/assets/javascripts/spree/frontend/components-custom/.gitkeep +0 -0
- data/app/assets/javascripts/spree/frontend/coupon_manager.js +49 -1
- data/app/assets/javascripts/spree/frontend/viewport.js +7 -0
- data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +31 -0
- data/app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js +35 -0
- data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +30 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +280 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +8 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +37 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/modal_carousel.js +35 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/single.js +139 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/swipes.js +53 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/thumbnails.js +137 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel.js +129 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/delete_address_popup.js +27 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +123 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/nav_bar.js +16 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/product_added_modal.js +28 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/quantity_select.js +58 -0
- data/app/assets/javascripts/spree/frontend.js +9 -7
- data/app/assets/javascripts/spree/lazysizes.config.js +8 -0
- data/app/assets/stylesheets/spree/frontend/application.scss +54 -0
- data/app/assets/stylesheets/spree/frontend/bootstrap-patches.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/alert.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/button.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/carousel.scss +85 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/modal.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/headers.scss +28 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/inputs.scss +265 -0
- data/app/assets/stylesheets/spree/frontend/fonts.scss +137 -0
- data/app/assets/stylesheets/spree/frontend/functions.scss +104 -0
- data/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/margins.scss +53 -0
- data/app/assets/stylesheets/spree/frontend/mixins.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/variables/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +40 -0
- data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +10 -0
- data/app/assets/stylesheets/spree/frontend/variables/variables.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +255 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/edit.scss +505 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/payment.scss +98 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/registration.scss +26 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/errors/not_found.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss +293 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/icon.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/layouts/spree_application.scss +44 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/edit.scss +467 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +273 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/cart_form.scss +250 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/index.scss +317 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/show.scss +165 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_color_select.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_images.scss +9 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/single.scss +142 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/thumbnails.scss +97 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/cart.scss +57 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/category_nav_bar.scss +86 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/delete_address_popup.scss +141 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/footer.scss +56 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/header.scss +82 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/login.scss +30 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/main_nav_bar.scss +103 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss +87 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/nav_bar.scss +78 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/no_product_available.scss +135 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/order_details.scss +37 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/product.scss +45 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/product_added_modal.scss +61 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/quantity_select.scss +55 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/registration.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/taxons/show.scss +47 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/user_passwords/user_passwords.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/user_sessions/new.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/users/show.scss +325 -0
- data/app/assets/stylesheets/spree/frontend.css +1 -1
- data/app/controllers/concerns/spree/checkout/address_book.rb +7 -9
- data/app/controllers/spree/addresses_controller.rb +5 -6
- data/app/controllers/spree/checkout_controller.rb +3 -1
- data/app/controllers/spree/home_controller.rb +1 -5
- data/app/controllers/spree/orders_controller.rb +3 -1
- data/app/controllers/spree/products_controller.rb +45 -15
- data/app/controllers/spree/store_controller.rb +14 -2
- data/app/controllers/spree/taxons_controller.rb +20 -5
- data/app/helpers/spree/addresses_helper.rb +11 -12
- data/app/helpers/spree/frontend_helper.rb +168 -14
- data/app/helpers/spree/navigation_helper.rb +34 -0
- data/app/helpers/spree/structured_data_helper.rb +3 -3
- data/app/helpers/spree/taxons_helper.rb +4 -0
- data/app/models/spree/frontend_configuration.rb +1 -0
- data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +1 -1
- data/app/views/spree/address/_form.html.erb +24 -27
- data/app/views/spree/addresses/_form.html.erb +13 -8
- data/app/views/spree/addresses/edit.html.erb +11 -21
- data/app/views/spree/addresses/new.html.erb +11 -21
- data/app/views/spree/checkout/_address.html.erb +61 -54
- data/app/views/spree/checkout/_confirm.html.erb +112 -16
- data/app/views/spree/checkout/_credit_card.html.erb +9 -0
- data/app/views/spree/checkout/_delivery.html.erb +10 -86
- data/app/views/spree/checkout/_payment.html.erb +39 -64
- data/app/views/spree/checkout/_summary.html.erb +46 -73
- data/app/views/spree/checkout/edit.html.erb +22 -25
- data/app/views/spree/checkout/payment/_gateway.html.erb +14 -34
- data/app/views/spree/checkout/payment/_storecredit.html.erb +8 -8
- data/app/views/spree/checkout/registration.html.erb +30 -0
- data/app/views/spree/errors/not_found.html.erb +7 -0
- data/app/views/spree/home/index.html.erb +124 -10
- data/app/views/spree/layouts/checkout.html.erb +26 -0
- data/app/views/spree/layouts/spree_application.html.erb +10 -15
- data/app/views/spree/orders/_coupon_code.html.erb +24 -0
- data/app/views/spree/orders/_form.html.erb +25 -39
- data/app/views/spree/orders/_line_item.html.erb +19 -25
- data/app/views/spree/orders/_line_item_data.html.erb +31 -0
- data/app/views/spree/orders/edit.html.erb +50 -40
- data/app/views/spree/orders/show.html.erb +83 -17
- data/app/views/spree/products/_cart_form.html.erb +69 -73
- data/app/views/spree/products/_cart_form_availability_templates.html.erb +10 -0
- data/app/views/spree/products/_color_option_type.html.erb +36 -0
- data/app/views/spree/products/_description.html.erb +17 -0
- data/app/views/spree/products/_filter_and_sort_mobile_buttons.html.erb +16 -0
- data/app/views/spree/products/_filters_desktop.html.erb +58 -0
- data/app/views/spree/products/_filters_mobile.html.erb +62 -0
- data/app/views/spree/products/_gallery.html.erb +31 -0
- data/app/views/spree/products/_gallery_modal.html.erb +33 -0
- data/app/views/spree/products/_no_results.html.erb +14 -0
- data/app/views/spree/products/_no_results_with_filters.html.erb +13 -0
- data/app/views/spree/products/_option_type.html.erb +32 -0
- data/app/views/spree/products/_product.html.erb +5 -5
- data/app/views/spree/products/_promotions.html.erb +19 -12
- data/app/views/spree/products/_properties.html.erb +9 -20
- data/app/views/spree/products/_sort_desktop.html.erb +30 -0
- data/app/views/spree/products/_sort_mobile.html.erb +43 -0
- data/app/views/spree/products/_taxons.html.erb +1 -0
- data/app/views/spree/products/index.html.erb +40 -24
- data/app/views/spree/products/related.html.erb +8 -0
- data/app/views/spree/products/show.html.erb +39 -37
- data/app/views/spree/shared/_address.html.erb +0 -12
- data/app/views/spree/shared/_breadcrumbs.html.erb +23 -0
- data/app/views/spree/shared/_carousel_4_products.html.erb +99 -0
- data/app/views/spree/shared/_cart.html.erb +11 -0
- data/app/views/spree/shared/_checkout_header.html.erb +19 -0
- data/app/views/spree/shared/_color_select.html.erb +9 -0
- data/app/views/spree/shared/_copyright.html.erb +18 -0
- data/app/views/spree/shared/_delete_address_popup.html.erb +26 -0
- data/app/views/spree/shared/_error_messages.html.erb +2 -4
- data/app/views/spree/shared/_flashes.html.erb +9 -0
- data/app/views/spree/shared/_footer.html.erb +73 -0
- data/app/views/spree/shared/_head.html.erb +4 -9
- data/app/views/spree/shared/_header.html.erb +26 -13
- data/app/views/spree/shared/_link_to_account.html.erb +7 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +2 -1
- data/app/views/spree/shared/_login.html.erb +34 -17
- data/app/views/spree/shared/_main_nav_bar.html.erb +41 -15
- data/app/views/spree/shared/_mobile_navigation.html.erb +68 -0
- data/app/views/spree/shared/_nav_bar.html.erb +52 -6
- data/app/views/spree/shared/_no_product_available.html.erb +23 -0
- data/app/views/spree/shared/_option_values.html.erb +24 -0
- data/app/views/spree/shared/_order_details.html.erb +5 -4
- data/app/views/spree/shared/_payment.html.erb +0 -3
- data/app/views/spree/shared/_payment_sources.html.erb +8 -0
- data/app/views/spree/shared/_product.html.erb +12 -0
- data/app/views/spree/shared/_product_added_modal.html.erb +66 -0
- data/app/views/spree/shared/_products.html.erb +22 -18
- data/app/views/spree/shared/_quantity_select.html.erb +6 -0
- data/app/views/spree/shared/_registration.html.erb +4 -0
- data/app/views/spree/shared/_search.html.erb +17 -20
- data/app/views/spree/shared/_translations.html.erb +9 -5
- data/app/views/spree/shared/_user_form.html.erb +12 -0
- data/app/views/spree/shared/carousel/_single.html.erb +83 -0
- data/app/views/spree/shared/carousel/_thumbnails.html.erb +68 -0
- data/app/views/spree/taxons/_header.html.erb +19 -0
- data/app/views/spree/taxons/_subcategories.html.erb +26 -0
- data/app/views/spree/taxons/product_carousel.html.erb +5 -0
- data/app/views/spree/taxons/show.html.erb +8 -20
- data/app/views/spree/users/_address.html.erb +25 -0
- data/app/views/spree/users/edit.html.erb +11 -0
- data/app/views/spree/users/show.html.erb +79 -0
- data/config/initializers/assets.rb +13 -1
- data/config/routes.rb +3 -0
- data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +24 -0
- data/lib/spree/frontend.rb +2 -0
- data/spree_frontend.gemspec +7 -11
- data/vendor/assets/javascripts/lazysizes.min.js +2 -0
- metadata +265 -25
- data/README.md +0 -50
- data/app/assets/javascripts/spree/frontend/product.js +0 -143
- data/app/assets/stylesheets/spree/frontend/_variables.scss +0 -4
- data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +0 -94
- data/app/views/spree/shared/_filters.html.erb +0 -48
- data/app/views/spree/shared/_login_bar.html.erb +0 -12
- data/app/views/spree/taxons/_taxon.html.erb +0 -4
- data/lib/generators/spree/frontend/copy_views/copy_views_generator.rb +0 -15
@@ -0,0 +1,33 @@
|
|
1
|
+
<div class="modal fade" id="picturesModal" tabindex="-1" role="dialog" >
|
2
|
+
<div class="modal-dialog--zoom modal-dialog mw-100 vh-100 mt-0 mb-0" role="document">
|
3
|
+
<div class="modal-content h-100">
|
4
|
+
<div class="modal-body">
|
5
|
+
<button class="modal-close" type="button" class="close" data-dismiss="modal" aria-label="Close">
|
6
|
+
<span aria-hidden="true">✕</span>
|
7
|
+
</button>
|
8
|
+
<div class="d-flex justify-content-center align-items-center product-details-images h-100">
|
9
|
+
<% if @product_images.size > 1 %>
|
10
|
+
<div class="d-none d-sm-block product-details-thumbnails">
|
11
|
+
<%= render 'spree/shared/carousel/thumbnails',
|
12
|
+
images: @product_images,
|
13
|
+
group_id: 'main-product-modal-carousel',
|
14
|
+
id: 'productModalThumbnailsCarousel',
|
15
|
+
trigger_id: 'productCarousel',
|
16
|
+
per_page: 4
|
17
|
+
%>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
<div class="product-details-single">
|
21
|
+
<%= render 'spree/shared/carousel/single',
|
22
|
+
images: @product_images,
|
23
|
+
group_id: 'main-product-modal-carousel',
|
24
|
+
id: 'productModalCarousel',
|
25
|
+
trigger_id: 'productCarousel',
|
26
|
+
zoomed: true
|
27
|
+
%>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="container mt-lg-5">
|
2
|
+
<div class="text-center pt-lg-5">
|
3
|
+
<%= icon(name: 'search-no-results',
|
4
|
+
classes: 'plp-not-found-image mb-3',
|
5
|
+
width: 83,
|
6
|
+
height: 75) %>
|
7
|
+
<h6 class="plp-not-found-header mb-3 pb-sm-3 mt-sm-3 pt-sm-3 mt-lg-5 pt-lg-5 pb-lg-0"><%= Spree.t('plp.no_results_found') %></h6>
|
8
|
+
<p class="plp-not-found-text">
|
9
|
+
<%= Spree.t('plp.not_found_text1', keywords: params[:keywords]) %>
|
10
|
+
<br class="d-lg-none">
|
11
|
+
<%= Spree.t('plp.not_found_text2') %>
|
12
|
+
</p>
|
13
|
+
</div>
|
14
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= render 'spree/products/filter_and_sort_mobile_buttons' %>
|
2
|
+
<%= render 'spree/products/sort_desktop', permitted_params: permitted_params %>
|
3
|
+
<div class="container d-md-flex">
|
4
|
+
<%= render 'spree/products/filters_desktop', permitted_params: permitted_params %>
|
5
|
+
<div class="text-lg-center col-md-12 col-lg-9">
|
6
|
+
<h6 class="plp-not-found-header pt-md-3 mb-3"><%= Spree.t('plp.no_results') %></h6>
|
7
|
+
<p class="plp-not-found-text pt-md-4">
|
8
|
+
<%= Spree.t('plp.not_found_filters1') %>
|
9
|
+
<br class="d-inline d-md-none d-lg-inline">
|
10
|
+
<%= Spree.t('plp.not_found_filters2') %>
|
11
|
+
</p>
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<div class="product-variants-variant" data-option-type-id="<%= option_type[:id] %>">
|
2
|
+
<span class="d-block mb-2 text-center text-md-left text-uppercase product-variants-variant-title">
|
3
|
+
<%= option_type[:presentation] %>
|
4
|
+
</span>
|
5
|
+
|
6
|
+
<div class="d-flex flex-wrap justify-content-center justify-content-md-start">
|
7
|
+
<ol class="d-flex flex-wrap product-variants-variant-values">
|
8
|
+
<% option_type[:option_values].each do |option_value| %>
|
9
|
+
<li>
|
10
|
+
<%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",
|
11
|
+
option_value[:id],
|
12
|
+
option_value[:is_default] && index == 0,
|
13
|
+
class: "product-variants-variant-values-radio",
|
14
|
+
data: {
|
15
|
+
"option-type-index" => index,
|
16
|
+
"presentation" => option_value[:presentation],
|
17
|
+
"variant-id" => option_value[:variant_id]
|
18
|
+
}
|
19
|
+
%>
|
20
|
+
|
21
|
+
<%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
|
22
|
+
class: "m-1 select-label",
|
23
|
+
tabindex: 0,
|
24
|
+
"aria-label" => option_value[:presentation] do %>
|
25
|
+
|
26
|
+
<span><%= option_value[:presentation] %></span>
|
27
|
+
<% end %>
|
28
|
+
</li>
|
29
|
+
<% end %>
|
30
|
+
</ol>
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %>
|
2
|
+
<% price = product.price_in(current_currency).amount %>
|
2
3
|
<div id="product_<%= product.id %>" class="d-flex w-100 col-12 col-sm-6 col-lg-4 col-xl-3 product-list-item mb-4" data-hook="products_list_item">
|
3
4
|
<div class="card w-100">
|
4
|
-
<% cache(taxon.present? ? [I18n.locale, current_currency, taxon, product] : cache_key_for_product(product)) do %>
|
5
|
+
<% cache(taxon.present? ? [I18n.locale, current_currency, taxon&.id, product] : cache_key_for_product(product)) do %>
|
5
6
|
<div class="card-body text-center product-body">
|
6
7
|
<%= link_to url, class: 'd-block text-center' do %>
|
7
8
|
<%= small_image(product, class: "d-block mx-auto") %>
|
@@ -9,11 +10,10 @@
|
|
9
10
|
<% end %>
|
10
11
|
</div>
|
11
12
|
<div class="card-footer text-center">
|
12
|
-
<span>
|
13
|
-
|
14
|
-
<%= display_price(product) %>
|
15
|
-
</span>
|
13
|
+
<span class="price selling lead" content="<%= price.nil? 0 : price.to_d %>">
|
14
|
+
<%= display_price(product) %>
|
16
15
|
</span>
|
16
|
+
<span content="<%= current_currency %>"></span>
|
17
17
|
</div>
|
18
18
|
<% end %>
|
19
19
|
</div>
|
@@ -2,21 +2,28 @@
|
|
2
2
|
|
3
3
|
<% if promotions.any? %>
|
4
4
|
<div id="promotions">
|
5
|
-
<h3><%= Spree.t(:promotions) %></h3>
|
5
|
+
<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:promotions) %></h3>
|
6
6
|
<% promotions.each do |promotion| %>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
<div class="row">
|
8
|
+
<div class="col-12 col-md-7 col-lg-6 mb-3">
|
9
|
+
<div class="card">
|
10
|
+
<div class="card-body">
|
11
|
+
<h4><%= promotion.name %></h4>
|
12
|
+
<p><%= promotion.description %></p>
|
13
|
+
<% if promotion.products.any? %>
|
14
|
+
<span><%= Spree.t('pdp.products_included_in_promotion') %>:</span>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
<% if promotion.products.any? %>
|
18
|
+
<div class="list-group list-group-flush">
|
19
|
+
<% promotion.products.each do |product| %>
|
20
|
+
<%= link_to product.name, spree.product_path(product), class: 'list-group-item list-group-item-action' %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
15
23
|
<% end %>
|
16
|
-
</
|
17
|
-
|
24
|
+
</div>
|
25
|
+
</div>
|
18
26
|
</div>
|
19
|
-
</div>
|
20
27
|
<% end %>
|
21
28
|
</div>
|
22
29
|
<% end %>
|
@@ -1,22 +1,11 @@
|
|
1
1
|
<% unless @product_properties.blank? %>
|
2
|
-
<h3 class="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<td>
|
12
|
-
<strong>
|
13
|
-
<%= product_property.property.presentation %>
|
14
|
-
</strong>
|
15
|
-
</td>
|
16
|
-
<td><%= product_property.value %></td>
|
17
|
-
</tr>
|
18
|
-
<% end %>
|
19
|
-
<% reset_cycle('properties') %>
|
20
|
-
</tbody>
|
21
|
-
</table>
|
2
|
+
<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:details) %></h3>
|
3
|
+
<ul id="product-properties" class="m-0 list-unstyled product-properies" data-hook>
|
4
|
+
<% @product_properties.each do |product_property| %>
|
5
|
+
<li>
|
6
|
+
<span class="font-weight-bold text-break"><%= product_property.property.presentation %>:</span>
|
7
|
+
<span class="text-break"><%= product_property.value %></span>
|
8
|
+
</li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
22
11
|
<% end %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="container dropdown d-none d-lg-flex justify-content-end mt-5 pr-4 pb-3 plp-sort">
|
2
|
+
<div data-toggle="dropdown" class="plp-sort-header">
|
3
|
+
<%= Spree.t("plp.#{ params[:sort_by].blank? ? 'sort_by': params[:sort_by].gsub('-', '_') }") %>
|
4
|
+
<%= icon(name: 'arrow-right',
|
5
|
+
classes: 'spree-icon-arrow spree-icon-arrow-up ml-3 plp-sort-header-arrow--up',
|
6
|
+
width: 18,
|
7
|
+
height: 18) %>
|
8
|
+
<%= icon(name: 'arrow-right',
|
9
|
+
classes: 'spree-icon-arrow spree-icon-arrow-down ml-3 plp-sort-header-arrow--down',
|
10
|
+
width: 18,
|
11
|
+
height: 18) %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="dropdown-menu text-right plp-sort-dropdown">
|
15
|
+
<ul class="pt-1 plp-sort-dropdown-ul">
|
16
|
+
<li class="p-3 plp-sort-dropdown-ul-li<%= '--active' if params[:sort_by] == 'default' || params[:sort_by].blank? %>">
|
17
|
+
<%= link_to Spree.t('plp.default'), url_for(permitted_params.merge(sort_by: 'default')) %>
|
18
|
+
</li>
|
19
|
+
<li class="p-3 plp-sort-dropdown-ul-li<%= '--active' if params[:sort_by] == 'newest-first' %>">
|
20
|
+
<%= link_to Spree.t('plp.newest_first'), url_for(permitted_params.merge(sort_by: 'newest-first')) %>
|
21
|
+
</li>
|
22
|
+
<li class="p-3 plp-sort-dropdown-ul-li<%= '--active' if params[:sort_by] == 'price-high-to-low' %>">
|
23
|
+
<%= link_to Spree.t('plp.price_high_to_low'), url_for(permitted_params.merge(sort_by: 'price-high-to-low')) %>
|
24
|
+
</li>
|
25
|
+
<li class="p-3 plp-sort-dropdown-ul-li<%= '--active' if params[:sort_by] == 'price-low-to-high' %>">
|
26
|
+
<%= link_to Spree.t('plp.price_low_to_high'), url_for(permitted_params.merge(sort_by: 'price-low-to-high')) %>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div id="sort-by-overlay" class="plp-overlay" style="display: none;">
|
2
|
+
<div class="container">
|
3
|
+
<div class="plp-overlay-header">
|
4
|
+
<%= Spree.t('plp.sort_by') %>
|
5
|
+
<%= inline_svg_tag 'close.svg', id: 'sort-by-overlay-hide-button' %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
<div class="plp-overlay-header-border"></div>
|
9
|
+
<ul class="pt-1 plp-overlay-ul">
|
10
|
+
<li class="p-3 plp-overlay-ul-li<%= '--active' if params[:sort_by] == 'default' || params[:sort_by].blank? %>">
|
11
|
+
<a href="<%= url_for(permitted_params.merge(sort_by: 'default')) %>" >
|
12
|
+
<div class="plp-empty-dot">
|
13
|
+
<div class="filled-dot"></div>
|
14
|
+
</div>
|
15
|
+
<%= Spree.t('plp.default') %>
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
<li class="p-3 plp-overlay-ul-li<%= '--active' if params[:sort_by] == 'newest-first' %>">
|
19
|
+
<a href="<%= url_for(permitted_params.merge(sort_by: 'newest-first')) %>" >
|
20
|
+
<div class="plp-empty-dot">
|
21
|
+
<div class="filled-dot"></div>
|
22
|
+
</div>
|
23
|
+
<%= Spree.t('plp.newest_first') %>
|
24
|
+
</a>
|
25
|
+
</li>
|
26
|
+
<li class="p-3 plp-overlay-ul-li<%= '--active' if params[:sort_by] == 'price-high-to-low' %>">
|
27
|
+
<a href="<%= url_for(permitted_params.merge(sort_by: 'price-high-to-low')) %>" >
|
28
|
+
<div class="plp-empty-dot">
|
29
|
+
<div class="filled-dot"></div>
|
30
|
+
</div>
|
31
|
+
<%= Spree.t('plp.price_high_to_low') %>
|
32
|
+
</a>
|
33
|
+
</li>
|
34
|
+
<li class="p-3 plp-overlay-ul-li<%= '--active' if params[:sort_by] == 'price-low-to-high' %>">
|
35
|
+
<a href="<%= url_for(permitted_params.merge(sort_by: 'price-low-to-high')) %>" >
|
36
|
+
<div class="plp-empty-dot">
|
37
|
+
<div class="filled-dot"></div>
|
38
|
+
</div>
|
39
|
+
<%= Spree.t('plp.price_low_to_high') %>
|
40
|
+
</a>
|
41
|
+
</li>
|
42
|
+
</ul>
|
43
|
+
</div>
|
@@ -1,29 +1,45 @@
|
|
1
|
-
<%
|
2
|
-
<% content_for :sidebar do %>
|
3
|
-
<div data-hook="homepage_sidebar_navigation">
|
4
|
-
<% if "spree/products" == params[:controller] && @taxon %>
|
5
|
-
<%= render partial: 'spree/shared/filters' %>
|
6
|
-
<% else %>
|
7
|
-
<%= render partial: 'spree/shared/taxonomies' %>
|
8
|
-
<% end %>
|
9
|
-
</div>
|
10
|
-
<% end %>
|
11
|
-
<% end %>
|
1
|
+
<% permitted_params = params.permit(*filtering_params) %>
|
12
2
|
|
13
|
-
|
14
|
-
|
15
|
-
<% if
|
16
|
-
|
3
|
+
<div data-hook="search_results">
|
4
|
+
<% if @products.empty? %>
|
5
|
+
<% if permitted_params[:keywords].present? && permitted_params.to_h.one? %>
|
6
|
+
<%= render 'spree/products/no_results' %>
|
17
7
|
<% else %>
|
18
|
-
<%= render
|
8
|
+
<%= render 'spree/products/no_results_with_filters', permitted_params: permitted_params %>
|
19
9
|
<% end %>
|
20
|
-
|
21
|
-
<%
|
22
|
-
|
23
|
-
|
24
|
-
|
10
|
+
<% else %>
|
11
|
+
<% if params[:keywords] %>
|
12
|
+
<div class="container d-md-flex pt-md-5">
|
13
|
+
<div class="plp-results-text text-uppercase mx-md-auto py-md-5">
|
14
|
+
<%= "#{@products.total_count} #{Spree.t('plp.results_for')} '#{params[:keywords].upcase}'" %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<% elsif not @taxon %>
|
18
|
+
<div id="no-taxon-banner">
|
19
|
+
<div class="container">
|
20
|
+
<%= lazy_image(
|
21
|
+
src: asset_path('homepage/products.jpg'),
|
22
|
+
alt: 'products-banner',
|
23
|
+
width: 1110,
|
24
|
+
height: 300,
|
25
|
+
class: 'w-100 d-none d-md-block'
|
26
|
+
) %>
|
27
|
+
</div>
|
28
|
+
</div>
|
25
29
|
<% end %>
|
26
|
-
</div>
|
27
|
-
<% end %>
|
28
30
|
|
29
|
-
<%=
|
31
|
+
<%= render 'spree/products/filter_and_sort_mobile_buttons' %>
|
32
|
+
<%= render 'spree/products/sort_desktop', permitted_params: permitted_params %>
|
33
|
+
<div class="container mb-3 d-md-flex">
|
34
|
+
<%= render 'spree/products/filters_desktop', permitted_params: permitted_params %>
|
35
|
+
<%= render 'spree/shared/products', products: @products %>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<%= render 'spree/products/filters_mobile', permitted_params: permitted_params %>
|
41
|
+
<%= render 'spree/products/sort_mobile', permitted_params: permitted_params %>
|
42
|
+
|
43
|
+
<% cache cache_key_for_products(@products, 'json-ld') do %>
|
44
|
+
<%= products_structured_data(@products) %>
|
45
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<% if related_products.any? %>
|
2
|
+
<div id="related-products">
|
3
|
+
<div class="product-details-related">
|
4
|
+
<p class="font-weight-bold text-center text-uppercase product-details-carousel-text"><%= Spree.t('pdp.you_may_also_like') %></p>
|
5
|
+
<%= render 'spree/shared/carousel_4_products', id: 'related-products-carousel', products: @related_products %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
@@ -1,50 +1,52 @@
|
|
1
1
|
<% @body_id = 'product-details' %>
|
2
2
|
|
3
|
+
<div class="container">
|
4
|
+
<%= spree_breadcrumbs(@taxon, '', @product) %>
|
5
|
+
</div>
|
6
|
+
|
3
7
|
<% cache cache_key_for_product do %>
|
4
|
-
<div
|
5
|
-
<div class="
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<%= render partial: 'thumbnails' %>
|
8
|
+
<div class="container pt-4 product-details">
|
9
|
+
<div class="row" data-hook="product_show">
|
10
|
+
<%= render partial: 'gallery' %>
|
11
|
+
<div class="col-12 col-md-5" data-hook="product_right_part">
|
12
|
+
<div id="product-description" data-hook="product_right_part_wrap">
|
13
|
+
<h1 class="mt-3 mt-md-0 text-center text-md-left product-details-title">
|
14
|
+
<%= @product.name %>
|
15
|
+
</h1>
|
16
|
+
<div id="cart-form" data-hook="cart_form">
|
17
|
+
<%= render 'cart_form', variant_change_identifier: 'productCarousel' %>
|
15
18
|
</div>
|
16
19
|
</div>
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="pb-4 pt-md-5 row" data-hook="product_description">
|
23
|
+
<div class="col-12 col-md-7 col-lg-6">
|
24
|
+
<%= render partial: 'description' %>
|
25
|
+
</div>
|
26
|
+
<div class="d-none d-lg-block col-lg-1"></div>
|
27
|
+
<div class="col-12 col-md-5" data-hook="product_properties">
|
28
|
+
<%= render partial: 'properties' %>
|
29
|
+
</div>
|
30
|
+
<div class="col-12" data-hook="promotions">
|
31
|
+
<%= render partial: 'promotions' %>
|
25
32
|
</div>
|
26
33
|
</div>
|
27
34
|
|
28
|
-
<div
|
29
|
-
|
30
|
-
|
31
|
-
<h1 class="product-title mt-2"><%= @product.name %></h1>
|
35
|
+
<div id="no-product-available" class="no-product-available-dropdown">
|
36
|
+
<%= render partial: 'spree/shared/no_product_available' %>
|
37
|
+
</div>
|
32
38
|
|
33
|
-
|
34
|
-
|
35
|
-
|
39
|
+
<%= render partial: 'gallery_modal' %>
|
40
|
+
</div>
|
41
|
+
<div id="related-products" />
|
36
42
|
|
37
|
-
|
38
|
-
<%= render partial: 'cart_form' %>
|
39
|
-
</div>
|
40
|
-
</div>
|
43
|
+
<%= products_structured_data([@product]) %>
|
41
44
|
|
42
|
-
|
43
|
-
<%= render partial: 'taxons' %>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
</div>
|
45
|
+
<%= render 'spree/shared/product_added_modal' %>
|
48
46
|
<% end %>
|
49
47
|
|
50
|
-
|
48
|
+
<div
|
49
|
+
data-related-products
|
50
|
+
data-related-products-id="<%= @product.slug %>"
|
51
|
+
data-related-products-enabled="<%= @product.respond_to?(:has_related_products?) %>"
|
52
|
+
/>
|
@@ -25,16 +25,4 @@
|
|
25
25
|
<div class="country-name"><%= address.country.try(:name) %></div>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
|
-
<% unless address.phone.blank? %>
|
29
|
-
<div class="tel">
|
30
|
-
<span class="type"><%= Spree.t(:phone) %></span>
|
31
|
-
<%= address.phone %>
|
32
|
-
</div>
|
33
|
-
<% end %>
|
34
|
-
<% unless address.alternative_phone.blank? %>
|
35
|
-
<div class="alternative-phone tel">
|
36
|
-
<span class="type"><%= Spree.t(:alternative_phone) %></span>
|
37
|
-
<%= address.alternative_phone %>
|
38
|
-
</div>
|
39
|
-
<% end %>
|
40
28
|
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<nav id="breadcrumbs" class="col-12 mt-1 mt-sm-3 mt-lg-4">
|
2
|
+
<ol class="breadcrumb">
|
3
|
+
<li class="breadcrumb-item">
|
4
|
+
<span>
|
5
|
+
<%= link_to Spree.t('plp.home'), spree.root_path %>
|
6
|
+
</span>
|
7
|
+
</li>
|
8
|
+
<% if @taxon %>
|
9
|
+
<% @taxon.ancestors.where.not(parent_id: nil).each do |ancestor| %>
|
10
|
+
<li class="breadcrumb-item">
|
11
|
+
<%= ancestor.name %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
<li class="breadcrumb-item">
|
15
|
+
<%= @taxon.name %>
|
16
|
+
</li>
|
17
|
+
<% else %>
|
18
|
+
<li class="breadcrumb-item">
|
19
|
+
<%= current_page_name %>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
</ol>
|
23
|
+
</nav>
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<% cache [common_product_cache_keys, products&.maximum(:updated_at)&.to_i, id] do %>
|
2
|
+
<div id="<%= id %>-mobile" class="carousel slide d-md-none homepage-carousel" data-interval="false">
|
3
|
+
<div class="carousel-inner">
|
4
|
+
<% products.each_slice(2).with_index do |sliced_items, index| %>
|
5
|
+
<div class="carousel-item <%= 'active' if index == 0 %>">
|
6
|
+
<div class="container">
|
7
|
+
<div class="row carousel-items-container">
|
8
|
+
<% sliced_items.each_with_index do |item, idx| %>
|
9
|
+
<div class="col-6">
|
10
|
+
<%= render 'spree/shared/product', product: item, image_class: 'w-100' %>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
</div>
|
19
|
+
<a
|
20
|
+
class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--previous"
|
21
|
+
href="#<%= id %>-mobile"
|
22
|
+
role="button"
|
23
|
+
data-slide="prev"
|
24
|
+
>
|
25
|
+
<span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
|
26
|
+
<%= icon(name: 'arrow-right',
|
27
|
+
classes: 'spree-icon-arrow spree-icon-arrow-left',
|
28
|
+
width: 20,
|
29
|
+
height: 20) %>
|
30
|
+
</span>
|
31
|
+
<span class="sr-only"><%= Spree.t(:previous) %></span>
|
32
|
+
</a>
|
33
|
+
|
34
|
+
<a
|
35
|
+
class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--next"
|
36
|
+
href="#<%= id %>-mobile"
|
37
|
+
role="button"
|
38
|
+
data-slide="next"
|
39
|
+
>
|
40
|
+
<span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
|
41
|
+
<%= icon(name: 'arrow-right',
|
42
|
+
classes: 'spree-icon-arrow spree-icon-arrow-right',
|
43
|
+
width: 20,
|
44
|
+
height: 20) %>
|
45
|
+
</span>
|
46
|
+
<span class="sr-only"><%= Spree.t(:next) %></span>
|
47
|
+
</a>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div id="<%= id %>-desktop" class="carousel slide d-none d-md-block homepage-carousel" data-interval="false">
|
51
|
+
<div class="carousel-inner carousel-inner-width">
|
52
|
+
<% products.each_slice(4).with_index do |sliced_items, index| %>
|
53
|
+
<div class="carousel-item <%= 'active' if index == 0 %>">
|
54
|
+
<div class="container position-relative">
|
55
|
+
<a
|
56
|
+
class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--previous"
|
57
|
+
href="#<%= id %>-desktop"
|
58
|
+
role="button"
|
59
|
+
data-slide="prev"
|
60
|
+
>
|
61
|
+
<span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
|
62
|
+
<%= icon(name: 'arrow-right',
|
63
|
+
classes: 'spree-icon-arrow spree-icon-arrow-left',
|
64
|
+
width: 20,
|
65
|
+
height: 20)
|
66
|
+
%>
|
67
|
+
</span>
|
68
|
+
<span class="sr-only"><%= Spree.t(:previous) %></span>
|
69
|
+
</a>
|
70
|
+
|
71
|
+
<div class="row carousel-items-container">
|
72
|
+
<% sliced_items.each do |item| %>
|
73
|
+
<div class="col-3">
|
74
|
+
<%= render 'spree/shared/product', product: item, image_class: 'w-100' %>
|
75
|
+
</div>
|
76
|
+
<% end %>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<a
|
80
|
+
class="d-md-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--next"
|
81
|
+
href="#<%= id %>-desktop"
|
82
|
+
role="button"
|
83
|
+
data-slide="next"
|
84
|
+
>
|
85
|
+
<span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
|
86
|
+
<%= icon(name: 'arrow-right',
|
87
|
+
classes: 'spree-icon-arrow spree-icon-arrow-right',
|
88
|
+
width: 20,
|
89
|
+
height: 20)
|
90
|
+
%>
|
91
|
+
</span>
|
92
|
+
<span class="sr-only"><%= Spree.t(:next) %></span>
|
93
|
+
</a>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<% end %>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% item_count = simple_current_order&.item_count || 0 %>
|
2
|
+
|
3
|
+
<%= link_to spree.cart_path,
|
4
|
+
class: "cart-icon #{'cart-icon--visible-count' if item_count > 0} #{local_assigns[:class]}",
|
5
|
+
'aria-label': Spree.t(:cart) do %>
|
6
|
+
<%= icon(name: 'bag',
|
7
|
+
width: size,
|
8
|
+
height: size) %>
|
9
|
+
|
10
|
+
<div class="font-weight-medium cart-icon-count"><%= item_count %></div>
|
11
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div id="spree-header">
|
2
|
+
<header id="header" class="d-flex align-items-center header-spree border-bottom">
|
3
|
+
<div class="container position-relative">
|
4
|
+
<div class="position-absolute checkout-header-link">
|
5
|
+
<%= icon(name: 'arrow-right',
|
6
|
+
classes: 'spree-icon-arrow spree-icon-arrow-left',
|
7
|
+
width: 7,
|
8
|
+
height: 14) %>
|
9
|
+
<%= link_to Spree.t('checkout_page.back_to_cart'), spree.cart_path, class: "d-none d-sm-inline text-uppercase", method: :get %>
|
10
|
+
<%= link_to Spree.t('back'), spree.cart_path, class: "d-sm-none text-uppercase", method: :get %>
|
11
|
+
</div>
|
12
|
+
<div class="d-flex flex-nowrap align-items-center justify-content-center">
|
13
|
+
<figure class="logo flex-grow-0 flex-xl-grow-0 order-xl-0 header-spree-fluid-logo">
|
14
|
+
<%= logo(Spree::Config[:logo], method: :get) %>
|
15
|
+
</figure>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</header>
|
19
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<svg class="color-select" height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<g fill="none" fill-rule="evenodd">
|
3
|
+
<circle class="color-select-border <%= 'color-select-border--selected' if selected %>" cx="16" cy="16" r="15" stroke-width="2"/>
|
4
|
+
<g transform="translate(2 2)">
|
5
|
+
<circle cx="14" cy="14" fill="<%= color %>" fill-rule="evenodd" r="12"/>
|
6
|
+
<circle cx="14" cy="14" r="13" stroke="#fff" stroke-width="2"/>
|
7
|
+
</g>
|
8
|
+
</g>
|
9
|
+
</svg>
|