spree_frontend 4.0.8 → 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,18 @@
|
|
1
|
+
<div class="border-bottom border-top footer-spree-copyright">
|
2
|
+
<div class="container">
|
3
|
+
<div class="d-flex flex-column flex-lg-row align-items-center justify-content-center py-3 footer-spree-copyright-content">
|
4
|
+
<div>Designed and developed by</div>
|
5
|
+
<div class="mb-1 mb-lg-0">
|
6
|
+
<%= link_to 'https://sparksolutions.co/', target: :blank, 'aria-label': 'Go to Spark Solutions', rel: :follow do %>
|
7
|
+
<%= image_tag 'spark-logo@3x.png', class: 'footer-spree-copyright-logo-spark mx-2', alt: 'Spree Commerce & Ruby on Rails developers', title: 'Spree Commerce & Ruby on Rails developers' %>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
<div class="d-none d-lg-inline-block mr-2">|</div>
|
11
|
+
<div>
|
12
|
+
© <%= Time.current.year %>
|
13
|
+
<%= link_to current_store.name, "https://#{current_store.url}" %>.
|
14
|
+
<%= Spree.t(:all_rights_reserved) %>.
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<div class="mx-auto delete-address-popup">
|
2
|
+
<div class="d-flex delete-address-popup-icon js-delete-address-popup-close-button">
|
3
|
+
<%= inline_svg_tag "close.svg", class: "w-100 h-100" %>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<p class="delete-address-popup-header">
|
7
|
+
<%= Spree.t("address_action_popup.delete_title") %>
|
8
|
+
</p>
|
9
|
+
|
10
|
+
<p class='delete-address-popup-text'>
|
11
|
+
<%= Spree.t("address_action_popup.delete_text").html_safe %>
|
12
|
+
</p>
|
13
|
+
|
14
|
+
<div class="d-flex delete-address-popup-buttons">
|
15
|
+
<div class="btn bg-light-background text-primary border-2 border-primary text-uppercase font-weight-bold delete-address-popup-button js-delete-address-popup-close-button"><%= Spree.t(:cancel) %></div>
|
16
|
+
<a
|
17
|
+
id="delete-address-popup-confirm"
|
18
|
+
class="btn btn-primary text-uppercase font-weight-bold delete-address-popup-button"
|
19
|
+
data-method="delete"
|
20
|
+
rel="nofollow"
|
21
|
+
href="#"
|
22
|
+
>
|
23
|
+
<%= Spree.t("address_action_popup.delete_button") %>
|
24
|
+
</a>
|
25
|
+
</div>
|
26
|
+
</div>
|
@@ -1,8 +1,6 @@
|
|
1
1
|
<% if target && target.errors.any? %>
|
2
|
-
<div id="errorExplanation" class="alert alert-danger" data-hook>
|
3
|
-
|
4
|
-
<p><%= Spree.t(:there_were_problems_with_the_following_fields) %>:</p>
|
5
|
-
<ul>
|
2
|
+
<div id="errorExplanation" class="alert alert-danger d-flex justify-content-center mb-0" data-hook>
|
3
|
+
<ul class="mb-0 pl-0" style="list-style-type: none;">
|
6
4
|
<% target.errors.full_messages.each do |msg| %>
|
7
5
|
<li><%= msg %></li>
|
8
6
|
<% end %>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<% cache spree_nav_cache_key('footer') do %>
|
2
|
+
<footer id="footer" class="pt-2 mx-auto border-top footer-spree" data-turbolinks-permanent>
|
3
|
+
<div class="container">
|
4
|
+
<div class="row d-xl-flex justify-content-xl-around pb-xl-5">
|
5
|
+
<div class="d-flex d-xl-block flex-xl-grow-0 col-xl-4">
|
6
|
+
<figure class="logo mx-auto mx-xl-0 pt-xl-2 pb-xl-1">
|
7
|
+
<%= logo %>
|
8
|
+
</figure>
|
9
|
+
<% if current_store.meta_description %>
|
10
|
+
<div class="d-none d-xl-block pt-xl-2 footer-spree-info">
|
11
|
+
<%= current_store.meta_description %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
<div class="d-block flex-nowrap py-2 order-xl-last col-xl-3 offset-xl-1">
|
16
|
+
<% unless current_store.facebook.blank? && current_store.twitter.blank? && current_store.instagram.blank? %>
|
17
|
+
<div class="d-none d-xl-block pt-4 pb-3 pl-2 footer-spree-label">
|
18
|
+
<%= Spree.t(:follow_us) %>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
21
|
+
<div class="d-flex d-xl-block justify-content-center mx-auto">
|
22
|
+
<div class="d-flex">
|
23
|
+
<%= spree_social_link('facebook') %>
|
24
|
+
<%= spree_social_link('twitter') %>
|
25
|
+
<%= spree_social_link('instagram') %>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<div class="py-xl-2 col-xl-3 offset-xl-1">
|
30
|
+
<div class="d-none d-xl-block pt-4 pb-3 footer-spree-label">
|
31
|
+
<%= Spree.t(:contact_us) %>
|
32
|
+
</div>
|
33
|
+
<div class="d-flex flex-column align-items-center align-items-xl-start pb-3 flex-grow-2 footer-spree-contact-note">
|
34
|
+
<div>
|
35
|
+
<%= current_store.name %>,
|
36
|
+
2382 Locust Ave<br/>
|
37
|
+
Long Beach, CA 90806, USA
|
38
|
+
</div>
|
39
|
+
<div>Call us now: 760-673-8590</div>
|
40
|
+
<% if current_store.mail_from_address %>
|
41
|
+
<div><%= Spree.t(:email) %>: <%= current_store.mail_from_address %></div>
|
42
|
+
<% end %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<div class="row d-none d-xl-flex border-top py-5 text-uppercase footer-spree-menu-links">
|
47
|
+
<% if spree_navigation_data.any? %>
|
48
|
+
<% spree_navigation_data.first(3).each do |root| %>
|
49
|
+
<div class="col-3">
|
50
|
+
<div class="footer-spree-label">
|
51
|
+
<%= link_to root[:title], root[:url] %>
|
52
|
+
</div>
|
53
|
+
<% root[:items].each do |item| %>
|
54
|
+
<div class="pt-2"><%= link_to item[:title], item[:url] %></div>
|
55
|
+
<% end %>
|
56
|
+
</div>
|
57
|
+
<% end %>
|
58
|
+
<% end %>
|
59
|
+
<% if spree.respond_to?(:account_path) %>
|
60
|
+
<div class="col-3">
|
61
|
+
<div class="footer-spree-label">
|
62
|
+
<%= Spree.t('nav_bar.my_account') %>
|
63
|
+
</div>
|
64
|
+
<div class="pt-2">
|
65
|
+
<%= link_to Spree.t('nav_bar.my_orders'), spree.account_path(anchor: "account-my-orders") %>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<% end %>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
<%= render 'spree/shared/copyright' %>
|
72
|
+
</footer>
|
73
|
+
<% end %>
|
@@ -1,16 +1,11 @@
|
|
1
|
-
<meta charset="utf-8">
|
2
1
|
<title><%= title %></title>
|
3
|
-
<meta
|
4
|
-
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
3
|
+
<%== meta_image_data_tag %>
|
5
4
|
<%== meta_data_tags %>
|
6
5
|
<%= canonical_tag(current_store.url) %>
|
7
6
|
<%= favicon_link_tag 'favicon.ico' %>
|
8
|
-
<%= stylesheet_link_tag 'spree/frontend/all', media: 'screen' %>
|
7
|
+
<%= stylesheet_link_tag 'spree/frontend/all', media: 'screen', 'data-turbolinks-track': 'reload' %>
|
9
8
|
<%= csrf_meta_tags %>
|
10
9
|
<%= render 'spree/shared/paths' %>
|
11
|
-
<%= javascript_include_tag 'spree/frontend/all' %>
|
12
|
-
<!--[if lt IE 9]>
|
13
|
-
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script>
|
14
|
-
<![endif]-->
|
10
|
+
<%= javascript_include_tag 'spree/frontend/all', defer: true, 'data-turbolinks-track': 'reload' %>
|
15
11
|
<%= yield :head %>
|
16
|
-
<%= render 'spree/shared/translations' %>
|
@@ -1,15 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<%# leaving #spree-header div for legacy support %>
|
2
|
+
<% cache spree_nav_cache_key('header') do %>
|
3
|
+
<div id="spree-header" data-turbolinks-permanent>
|
4
|
+
<header id="header" class="d-flex align-items-center header-spree border-bottom">
|
5
|
+
<div class="container-fluid h-100 header-spree-fluid">
|
6
|
+
<div class="d-flex flex-nowrap align-items-center h-100">
|
7
|
+
<div class="d-xl-none flex-grow-1 header-spree-fluid-mobile-menu-toggler">
|
8
|
+
<button class="navbar-toggler border-0 px-0 d-flex" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-label="<%= Spree.t('nav_bar.show_menu') %>">
|
9
|
+
<%= icon(name: 'burger',
|
10
|
+
width: 18.5,
|
11
|
+
height: 16) %>
|
12
|
+
</button>
|
13
|
+
</div>
|
14
|
+
<figure class="logo flex-grow-0 flex-xl-grow-1 order-xl-0 header-spree-fluid-logo">
|
15
|
+
<%= logo %>
|
16
|
+
</figure>
|
17
|
+
<div id="main-nav-bar" class="flex-grow-0 d-none d-xl-block h-100 header-spree-fluid-primary-navigation">
|
18
|
+
<%= render partial: 'spree/shared/main_nav_bar' %>
|
19
|
+
</div>
|
20
|
+
<div id="top-nav-bar" class="flex-grow-1 header-spree-fluid-secondary-navigation">
|
21
|
+
<%= render partial: 'spree/shared/nav_bar' %>
|
22
|
+
</div>
|
23
|
+
<%= render partial: 'spree/shared/mobile_navigation' %>
|
24
|
+
</div>
|
9
25
|
</div>
|
10
|
-
</
|
11
|
-
</header>
|
12
|
-
<div class="container">
|
13
|
-
<%= render partial: 'spree/shared/main_nav_bar' %>
|
26
|
+
</header>
|
14
27
|
</div>
|
15
|
-
|
28
|
+
<% end %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<% if try_spree_current_user %>
|
2
|
+
<%= link_to Spree.t('nav_bar.my_account'), spree.account_path, class: 'dropdown-item' if spree.respond_to?(:account_path) %>
|
3
|
+
<%= link_to Spree.t('nav_bar.log_out'), spree_logout_path, class: 'dropdown-item', method: :get if defined?(spree_logout_path) %>
|
4
|
+
<% else %>
|
5
|
+
<%= link_to Spree.t('nav_bar.log_in'), spree_login_path, class: 'dropdown-item' if defined?(spree_login_path) %>
|
6
|
+
<%= link_to Spree.t('nav_bar.sign_up'), spree_signup_path, class: 'dropdown-item' if defined?(spree_signup_path) %>
|
7
|
+
<% end %>
|
@@ -1 +1,2 @@
|
|
1
|
-
<%=
|
1
|
+
<%= render 'spree/shared/cart', class: 'd-none d-xl-inline-block cart-icon--xl', size: 36 %>
|
2
|
+
<%= render 'spree/shared/cart', class: 'd-xl-none', size: 24 %>
|
@@ -1,19 +1,36 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
1
|
+
<div class="col-lg-11 mx-auto">
|
2
|
+
<h3 class="spree-mb-large spree-mt-large spree-header"><%= Spree.t(:log_in_to_continue) %></h3>
|
3
|
+
<%= form_for Spree.user_class.new, as: :spree_user, url: spree_login_path do |f| %>
|
4
|
+
<div id="password-credentials" class="mb-4">
|
5
|
+
<div class="form-group mb-4">
|
6
|
+
<p class="form-group checkout-content-inner-field">
|
7
|
+
<%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email), autofocus: true %>
|
8
|
+
</p>
|
9
|
+
</div>
|
10
|
+
<div class="form-group mb-4">
|
11
|
+
<p class="form-group checkout-content-inner-field">
|
12
|
+
<%= f.password_field :password, class: 'spree-flat-input', placeholder: Spree.t(:password), autofocus: true %>
|
13
|
+
</p>
|
14
|
+
</div>
|
5
15
|
</div>
|
6
|
-
|
7
|
-
|
16
|
+
|
17
|
+
<% if Spree::Frontend::Config[:remember_me_enabled] %>
|
18
|
+
<div class="spree-checkbox-container mt-4 mt-sm-5 mt-lg-4 spree-mb-medium">
|
19
|
+
<div class="spree-checkbox">
|
20
|
+
<%= f.check_box :remember_me, tabindex: 3 %>
|
21
|
+
<%= f.label :remember_me, '' %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<%= f.label :remember_me, Spree.t(:remember_me), class: 'spree-checkbox-label' %>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<%= f.submit Spree.t(:log_in), class: 'btn btn-primary btn-block spree-btn mt-2', tabindex: 4 %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% if spree.respond_to?(:recover_password_path) %>
|
32
|
+
<div class="text-center forgot-password mb-4">
|
33
|
+
<%= link_to Spree.t(:forgot_password), spree.recover_password_path %>
|
8
34
|
</div>
|
9
|
-
|
10
|
-
|
11
|
-
<%= f.check_box :remember_me %>
|
12
|
-
<%= f.label :remember_me, Spree.t(:remember_me) %>
|
13
|
-
</label>
|
14
|
-
</div>
|
15
|
-
<div class="form-group">
|
16
|
-
<%= f.submit Spree.t(:login), class: 'btn btn-lg btn-success btn-block', tabindex: 3 %>
|
17
|
-
</div>
|
18
|
-
</fieldset>
|
19
|
-
<% end %>
|
35
|
+
<% end %>
|
36
|
+
</div>
|
@@ -1,16 +1,42 @@
|
|
1
|
-
|
2
|
-
<ul class="nav
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<% if spree_navigation_data.any? %>
|
2
|
+
<ul class="nav h-100 main-nav-bar">
|
3
|
+
<% spree_navigation_data.each do |root| %>
|
4
|
+
<li class="navbar main-nav-bar-dropdown main-nav-bar-category">
|
5
|
+
<%= link_to root[:title], root[:url], class: 'p-2 main-nav-bar-item main-nav-bar-category-button' %>
|
6
|
+
<div class="w-100 shadow main-nav-bar-category-dropdown">
|
7
|
+
<div class="container p-0 d-flex justify-content-xl-around mx-auto">
|
8
|
+
<div class="row">
|
9
|
+
<div class="category-links">
|
10
|
+
<div class="category-links-header text-uppercase">
|
11
|
+
<%= root[:subtitle] %>
|
12
|
+
</div>
|
13
|
+
<ul class="pl-0">
|
14
|
+
<% root[:items].each do |item| %>
|
15
|
+
<li>
|
16
|
+
<%= link_to item[:title], item[:url], class: 'text-uppercase' %>
|
17
|
+
</li>
|
18
|
+
<% end %>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
<% root[:promo_banners].each do |promo_banner| %>
|
22
|
+
<%= link_to promo_banner[:url] do %>
|
23
|
+
<div class="category-image category-image text-center mx-3">
|
24
|
+
<%= main_nav_image(promo_banner[:image], promo_banner[:title]) %>
|
25
|
+
<div class="category-box">
|
26
|
+
<div class="category-box-small-text">
|
27
|
+
<%= promo_banner[:subtitle] %>
|
28
|
+
</div>
|
29
|
+
<div class="category-box-big-text">
|
30
|
+
<%= promo_banner[:title] %>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<% end %>
|
35
|
+
<% end %>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</li>
|
40
|
+
<% end %>
|
6
41
|
</ul>
|
7
|
-
|
8
|
-
<li id="link-to-cart" class="nav-item" data-hook>
|
9
|
-
<noscript>
|
10
|
-
<%= link_to_cart %>
|
11
|
-
</noscript>
|
12
|
-
|
13
|
-
</li>
|
14
|
-
<script>Spree.fetch_cart()</script>
|
15
|
-
</ul>
|
16
|
-
</nav>
|
42
|
+
<% end %>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<% if spree_navigation_data.any? %>
|
2
|
+
<div class="position-fixed text-uppercase d-xl-none mobile-navigation">
|
3
|
+
<div class="d-flex align-items-center header-spree" data-hook>
|
4
|
+
<div class="container-fluid header-spree-fluid">
|
5
|
+
<div class="d-flex flex-nowrap align-items-center">
|
6
|
+
<div class="d-xl-none flex-grow-1">
|
7
|
+
<button id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
|
8
|
+
<%= icon(name: 'arrow-right',
|
9
|
+
classes: 'd-sm-none spree-icon-arrow spree-icon-arrow-left',
|
10
|
+
width: 18,
|
11
|
+
height: 18) %>
|
12
|
+
<%= icon(name: 'arrow-right',
|
13
|
+
classes: 'd-none d-sm-inline spree-icon-arrow spree-icon-arrow-left',
|
14
|
+
width: 17,
|
15
|
+
height: 28) %>
|
16
|
+
</button>
|
17
|
+
</div>
|
18
|
+
<figure class="logo flex-grow-0 flex-xl-grow-1 order-xl-0 header-spree-fluid-logo" data-hook>
|
19
|
+
<%= logo %>
|
20
|
+
</figure>
|
21
|
+
<div id="top-nav-bar-mobile" class="text-right flex-grow-1 header-spree-fluid-secondary-navigation" data-hook>
|
22
|
+
<button id="mobile-navigation-close-button" aria-label="<%= Spree.t('nav_bar.close_menu') %>">
|
23
|
+
<%= icon(name: 'close',
|
24
|
+
classes: 'd-sm-none',
|
25
|
+
width: 17,
|
26
|
+
height: 17) %>
|
27
|
+
<%= icon(name: 'close',
|
28
|
+
classes: 'd-none d-sm-inline',
|
29
|
+
width: 26,
|
30
|
+
height: 26) %>
|
31
|
+
</button>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<ul class="list-unstyled position-relative h-100 mobile-navigation-list">
|
38
|
+
<% spree_navigation_data.each do |root| %>
|
39
|
+
<li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
|
40
|
+
<%= link_to root[:title], root[:url], class: 'w-75' %>
|
41
|
+
|
42
|
+
<a class="w-25 text-right mobile-navigation-category-link" data-category="<%= root[:title].downcase %>" href="#" aria-label="<%= Spree.t('go_to_category')%>">
|
43
|
+
<%= icon(name: 'arrow-right',
|
44
|
+
classes: 'd-sm-none spree-icon-arrow spree-icon-arrow-right',
|
45
|
+
width: 16,
|
46
|
+
height: 16) %>
|
47
|
+
<%= icon(name: 'arrow-right',
|
48
|
+
classes: 'd-none d-sm-inline spree-icon-arrow spree-icon-arrow-right',
|
49
|
+
width: 14,
|
50
|
+
height: 27) %>
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<ul class="list-unstyled position-absolute mobile-navigation-sublist" data-category="<%= root[:title].downcase %>">
|
54
|
+
<li class="text-center font-weight-bold mobile-navigation-sublist-header">
|
55
|
+
<%= root[:title] %>
|
56
|
+
</li>
|
57
|
+
|
58
|
+
<% root[:items].each do |item| %>
|
59
|
+
<li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
|
60
|
+
<%= link_to item[:title], item[:url], class: 'w-75' %>
|
61
|
+
</li>
|
62
|
+
<% end %>
|
63
|
+
</ul>
|
64
|
+
</li>
|
65
|
+
<% end %>
|
66
|
+
</ul>
|
67
|
+
</div>
|
68
|
+
<% end %>
|
@@ -1,7 +1,53 @@
|
|
1
|
-
<nav class="
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
1
|
+
<ul id="nav-bar" class="nav align-items-center d-flex justify-content-end navbar-right">
|
2
|
+
<li>
|
3
|
+
<div class="navbar-right-search-menu">
|
4
|
+
<button type="button" class="navbar-right-dropdown-toggle search-icons" aria-label="<%= Spree.t('nav_bar.show_search')%>">
|
5
|
+
<%= icon(name: 'magnifying-glass',
|
6
|
+
classes: 'd-none d-xl-inline-block',
|
7
|
+
width: 36,
|
8
|
+
height: 36) %>
|
9
|
+
|
10
|
+
<%= icon(name: 'magnifying-glass',
|
11
|
+
classes: 'd-xl-none',
|
12
|
+
width: 24,
|
13
|
+
height: 24) %>
|
14
|
+
</button>
|
15
|
+
|
16
|
+
<div id="search-dropdown" class="p-0 px-md-4 py-md-2 w-100 shadow navbar-right-search-menu-dropdown hide-on-esc">
|
17
|
+
<%= render partial: 'spree/shared/search' %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</li>
|
21
|
+
<% if defined?(spree.account_link_path) %>
|
22
|
+
<li>
|
23
|
+
<div class="dropdown navbar-right-dropdown">
|
24
|
+
<button type="button" data-toggle="dropdown" class="navbar-right-dropdown-toggle" aria-label="<%= Spree.t('nav_bar.show_user_menu')%>">
|
25
|
+
<%= icon(name: 'person',
|
26
|
+
classes: 'd-none d-xl-inline-block',
|
27
|
+
width: 41.4,
|
28
|
+
height: 36) %>
|
29
|
+
|
30
|
+
<%= icon(name: 'person',
|
31
|
+
classes: 'd-xl-none',
|
32
|
+
width: 27.6,
|
33
|
+
height: 24) %>
|
34
|
+
</button>
|
35
|
+
|
36
|
+
<div id="link-to-account" class="dropdown-menu dropdown-menu-right text-right">
|
37
|
+
</div>
|
38
|
+
</div>
|
5
39
|
</li>
|
6
|
-
|
7
|
-
|
40
|
+
<% end %>
|
41
|
+
<li id="link-to-cart">
|
42
|
+
<span class="d-none d-xl-inline-block cart-icon--xl">
|
43
|
+
<%= icon(name: 'bag',
|
44
|
+
width: 41.8,
|
45
|
+
height: 36) %>
|
46
|
+
</span>
|
47
|
+
<span class="d-xl-none">
|
48
|
+
<%= icon(name: 'bag',
|
49
|
+
width: 27.8,
|
50
|
+
height: 24) %>
|
51
|
+
</span>
|
52
|
+
</li>
|
53
|
+
</ul>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class="p-0 justify-content-around mx-auto no-product-available">
|
2
|
+
<div id= "no-product-available-close-button" class="d-flex no-product-available-icon">
|
3
|
+
<%= inline_svg_tag "close.svg", class: "w-100 h-100" %>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<p class="no-product-available-header">
|
7
|
+
<%= Spree.t('no_product_available.opps') %>
|
8
|
+
</p>
|
9
|
+
|
10
|
+
<p class='no-product-available-text'>
|
11
|
+
<% if flash[:error].present? %>
|
12
|
+
<%= flash[:error] %>
|
13
|
+
<% else %>
|
14
|
+
<%= Spree.t('no_product_available.for_this_quantity') %>
|
15
|
+
<% end %>
|
16
|
+
<p>
|
17
|
+
|
18
|
+
<div class="btn btn-primary text-uppercase font-weight-bold d-flex no-product-available-button" id="no-product-available-hide-button">
|
19
|
+
<p class="d-flex m-auto no-product-available-button-text">
|
20
|
+
<%= Spree.t(:ok) %>
|
21
|
+
</p>
|
22
|
+
</div>
|
23
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<% cache base_cache_key + [ot_downcase_name, params_ot_downcase_name, permitted_params, @taxon] do %>
|
2
|
+
<% selected_option_values = params_ot_downcase_name&.split(',')&.map(&:to_i) || [] %>
|
3
|
+
<% option_type.option_values.each do |option_value| %>
|
4
|
+
<% id = option_value.id %>
|
5
|
+
<% name = option_value.name %>
|
6
|
+
|
7
|
+
<% option_value_param = (selected_option_values.include?(id) ? selected_option_values - [id] : selected_option_values + [id]).join(',') %>
|
8
|
+
<%= link_to permitted_params.merge(ot_downcase_name => option_value_param, menu_open: 1) do %>
|
9
|
+
<% if ot_downcase_name == 'color' %>
|
10
|
+
|
11
|
+
<span class="d-inline-block mb-1">
|
12
|
+
<%= render partial: 'spree/shared/color_select', locals: {
|
13
|
+
color: option_value.presentation,
|
14
|
+
selected: selected_option_values.include?(id)
|
15
|
+
} %>
|
16
|
+
</span>
|
17
|
+
<% else %>
|
18
|
+
<div class="d-inline-block py-1 px-2 m-1 plp-overlay-card-item <%= 'plp-overlay-card-item--selected' if selected_option_values.include?(id) %>">
|
19
|
+
<%= name %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
@@ -1,8 +1,9 @@
|
|
1
|
+
<!-- FIXME: Should be removed if it is not used anywhere? -->
|
1
2
|
<div class="row steps-data">
|
2
3
|
<% if order.has_step?("address") %>
|
3
4
|
<div class="col-md-3 col-6 mb-3" data-hook="order-bill-address">
|
4
5
|
<h4 class="h5">
|
5
|
-
<%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %>
|
6
|
+
<%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", spree.checkout_state_path(:address) unless order.completed? %>
|
6
7
|
</h4>
|
7
8
|
<%= render 'spree/shared/address', address: order.bill_address %>
|
8
9
|
</div>
|
@@ -10,14 +11,14 @@
|
|
10
11
|
<% if order.has_step?("delivery") %>
|
11
12
|
<div class="col-md-3 col-6 mb-3" data-hook="order-ship-address">
|
12
13
|
<h4 class="h5">
|
13
|
-
<%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %>
|
14
|
+
<%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", spree.checkout_state_path(:address) unless order.completed? %>
|
14
15
|
</h4>
|
15
16
|
<%= render 'spree/shared/address', address: order.ship_address %>
|
16
17
|
</div>
|
17
18
|
|
18
19
|
<div class="col-md-3 col-6 mb-3" data-hook="order-shipment">
|
19
20
|
<h4 class="h5">
|
20
|
-
<%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless order.completed? %>
|
21
|
+
<%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", spree.checkout_state_path(:delivery) unless order.completed? %>
|
21
22
|
</h4>
|
22
23
|
<div class="delivery">
|
23
24
|
<% order.shipments.each do |shipment| %>
|
@@ -34,7 +35,7 @@
|
|
34
35
|
<% if order.has_step?("payment") %>
|
35
36
|
<div class="col-md-3 col-6 mb-3" data-hook="order-payment">
|
36
37
|
<h4 class="h5">
|
37
|
-
<%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless order.completed? %>
|
38
|
+
<%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", spree.checkout_state_path(:payment) unless order.completed? %>
|
38
39
|
</h4>
|
39
40
|
<div class="payment-info">
|
40
41
|
<%= render collection: order.payments.valid, partial: 'spree/shared/payment' %>
|
@@ -2,9 +2,6 @@
|
|
2
2
|
|
3
3
|
<% if source.is_a?(Spree::CreditCard) %>
|
4
4
|
<span class="cc-type">
|
5
|
-
<% unless (cc_type = source.cc_type).blank? %>
|
6
|
-
<%= image_tag "credit_cards/icons/#{cc_type}.png" %>
|
7
|
-
<% end %>
|
8
5
|
<% if source.last_digits %>
|
9
6
|
<%= Spree.t(:ending_in) %> <%= source.last_digits %>
|
10
7
|
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% url = spree.product_path(product, taxon_id: @taxon&.id) %>
|
2
|
+
<%= link_to url, class: 'h-100 d-flex flex-column justify-content-between' do %>
|
3
|
+
<% cache [common_product_cache_keys, product] do %>
|
4
|
+
<%= plp_and_carousel_image(product, image_class) %>
|
5
|
+
<div>
|
6
|
+
<div class="product-component-name" title="<%= product.name %>">
|
7
|
+
<%= product.name %>
|
8
|
+
</div>
|
9
|
+
<div class="product-component-price"><%= display_price(product) %></div>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|