spree_storefront 5.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.md +13 -0
- data/Rakefile +15 -0
- data/app/assets/config/spree_storefront_manifest.js +6 -0
- data/app/assets/stylesheets/storefront_page_builder.css +51 -0
- data/app/controllers/concerns/spree/cart_methods.rb +40 -0
- data/app/controllers/concerns/spree/locale_urls.rb +23 -0
- data/app/controllers/concerns/spree/password_protected.rb +17 -0
- data/app/controllers/concerns/spree/theme_concern.rb +29 -0
- data/app/controllers/spree/account/addresses_controller.rb +16 -0
- data/app/controllers/spree/account/base_controller.rb +20 -0
- data/app/controllers/spree/account/newsletter_controller.rb +34 -0
- data/app/controllers/spree/account/orders_controller.rb +34 -0
- data/app/controllers/spree/account/profile_controller.rb +23 -0
- data/app/controllers/spree/account/store_credits_controller.rb +23 -0
- data/app/controllers/spree/account/wished_items_controller.rb +45 -0
- data/app/controllers/spree/addresses_controller.rb +101 -0
- data/app/controllers/spree/checkout_controller.rb +365 -0
- data/app/controllers/spree/contacts_controller.rb +46 -0
- data/app/controllers/spree/digital_links_controller.rb +48 -0
- data/app/controllers/spree/home_controller.rb +5 -0
- data/app/controllers/spree/line_items_controller.rb +96 -0
- data/app/controllers/spree/newsletter_subscribers_controller.rb +43 -0
- data/app/controllers/spree/order_status_controller.rb +32 -0
- data/app/controllers/spree/orders_controller.rb +104 -0
- data/app/controllers/spree/page_sections_controller.rb +17 -0
- data/app/controllers/spree/pages_controller.rb +13 -0
- data/app/controllers/spree/password_controller.rb +21 -0
- data/app/controllers/spree/policies_controller.rb +17 -0
- data/app/controllers/spree/posts_controller.rb +76 -0
- data/app/controllers/spree/products_controller.rb +99 -0
- data/app/controllers/spree/search_controller.rb +39 -0
- data/app/controllers/spree/seo_controller.rb +25 -0
- data/app/controllers/spree/settings_controller.rb +68 -0
- data/app/controllers/spree/store_controller.rb +247 -0
- data/app/controllers/spree/taxonomies_controller.rb +30 -0
- data/app/controllers/spree/taxons_controller.rb +46 -0
- data/app/controllers/spree/wishlists_controller.rb +19 -0
- data/app/finders/spree/storefront/variant_finder.rb +80 -0
- data/app/helpers/spree/analytics_helper.rb +28 -0
- data/app/helpers/spree/cart_helper.rb +48 -0
- data/app/helpers/spree/checkout_analytics_helper.rb +77 -0
- data/app/helpers/spree/checkout_helper.rb +58 -0
- data/app/helpers/spree/filters_helper.rb +180 -0
- data/app/helpers/spree/fonts_helper.rb +58 -0
- data/app/helpers/spree/orders_helper.rb +7 -0
- data/app/helpers/spree/page_helper.rb +67 -0
- data/app/helpers/spree/posts_helper.rb +42 -0
- data/app/helpers/spree/products_helper.rb +205 -0
- data/app/helpers/spree/storefront_helper.rb +86 -0
- data/app/helpers/spree/storefront_locale_helper.rb +42 -0
- data/app/helpers/spree/theme_helper.rb +244 -0
- data/app/helpers/spree/turbo_helper.rb +13 -0
- data/app/helpers/spree/turbo_stream_actions_helper.rb +13 -0
- data/app/helpers/spree/wishlist_helper.rb +7 -0
- data/app/javascript/spree/storefront/application.js +156 -0
- data/app/javascript/spree/storefront/controllers/accordion_controller.js +25 -0
- data/app/javascript/spree/storefront/controllers/account_nav_controller.js +10 -0
- data/app/javascript/spree/storefront/controllers/card_validation_controller.js +103 -0
- data/app/javascript/spree/storefront/controllers/carousel_controller.js +44 -0
- data/app/javascript/spree/storefront/controllers/cart_controller.js +10 -0
- data/app/javascript/spree/storefront/controllers/checkout_address_book_controller.js +28 -0
- data/app/javascript/spree/storefront/controllers/checkout_delivery_controller.js +39 -0
- data/app/javascript/spree/storefront/controllers/checkout_promotions_controller.js +28 -0
- data/app/javascript/spree/storefront/controllers/checkout_summary_controller.js +46 -0
- data/app/javascript/spree/storefront/controllers/clear_input_controller.js +23 -0
- data/app/javascript/spree/storefront/controllers/copy_input_controller.js +19 -0
- data/app/javascript/spree/storefront/controllers/dropdown_controller.js +14 -0
- data/app/javascript/spree/storefront/controllers/header_controller.js +33 -0
- data/app/javascript/spree/storefront/controllers/infinite_scroll_controller.js +31 -0
- data/app/javascript/spree/storefront/controllers/lightbox_controller.js +138 -0
- data/app/javascript/spree/storefront/controllers/mobile_nav_controller.js +17 -0
- data/app/javascript/spree/storefront/controllers/modal_controller.js +15 -0
- data/app/javascript/spree/storefront/controllers/no_ui_slider_controller.js +55 -0
- data/app/javascript/spree/storefront/controllers/pdp_desktop_gallery_controller.js +28 -0
- data/app/javascript/spree/storefront/controllers/plp_variant_picker_controller.js +151 -0
- data/app/javascript/spree/storefront/controllers/product_form_controller.js +136 -0
- data/app/javascript/spree/storefront/controllers/quantity_picker_controller.js +43 -0
- data/app/javascript/spree/storefront/controllers/search_suggestions_controller.js +61 -0
- data/app/javascript/spree/storefront/controllers/searchable_list_controller.js +25 -0
- data/app/javascript/spree/storefront/controllers/slideover_controller.js +40 -0
- data/app/javascript/spree/storefront/controllers/sticky_button_controller.js +32 -0
- data/app/javascript/spree/storefront/controllers/toggle_menu_controller.js +32 -0
- data/app/javascript/spree/storefront/controllers/turbo_stream_form_controller.js +51 -0
- data/app/javascript/spree/storefront/controllers/wished_item_controller.js +69 -0
- data/app/javascript/spree/storefront/helpers/lazy_load_controllers_with_manifest.js +78 -0
- data/app/javascript/spree/storefront/helpers/show_flash_message.js +25 -0
- data/app/models/spree/color_names.rb +35 -0
- data/app/models/spree/contact.rb +24 -0
- data/app/presenters/spree/colors_preview_styles_presenter.rb +84 -0
- data/app/presenters/spree/featured_product_presenter.rb +42 -0
- data/app/presenters/spree/mega_nav_presenter.rb +55 -0
- data/app/views/devise/passwords/edit.html.erb +22 -0
- data/app/views/devise/passwords/new.html.erb +16 -0
- data/app/views/devise/registrations/_form.html.erb +21 -0
- data/app/views/devise/registrations/edit.html.erb +24 -0
- data/app/views/devise/registrations/new.html.erb +27 -0
- data/app/views/devise/sessions/new.html.erb +25 -0
- data/app/views/devise/shared/_links.html.erb +22 -0
- data/app/views/layouts/spree/checkout.html.erb +58 -0
- data/app/views/layouts/spree/password.html.erb +34 -0
- data/app/views/layouts/spree/storefront.html.erb +38 -0
- data/app/views/spree/account/wished_items/create.turbo_stream.erb +8 -0
- data/app/views/spree/account/wished_items/destroy.turbo_stream.erb +20 -0
- data/app/views/spree/addresses/destroy.turbo_stream.erb +1 -0
- data/app/views/spree/addresses/edit.html.erb +57 -0
- data/app/views/spree/addresses/new.html.erb +71 -0
- data/app/views/spree/checkout/_address.html.erb +153 -0
- data/app/views/spree/checkout/_button_processing.html.erb +7 -0
- data/app/views/spree/checkout/_coupon_code.html.erb +55 -0
- data/app/views/spree/checkout/_credit_card.html.erb +12 -0
- data/app/views/spree/checkout/_delivery.html.erb +70 -0
- data/app/views/spree/checkout/_line_item.html.erb +26 -0
- data/app/views/spree/checkout/_line_items.html.erb +7 -0
- data/app/views/spree/checkout/_missing_all_line_items.html.erb +17 -0
- data/app/views/spree/checkout/_missing_line_items.html.erb +28 -0
- data/app/views/spree/checkout/_payment.html.erb +35 -0
- data/app/views/spree/checkout/_payment_methods.html.erb +72 -0
- data/app/views/spree/checkout/_payment_sources.html.erb +24 -0
- data/app/views/spree/checkout/_quick_checkout.html.erb +1 -0
- data/app/views/spree/checkout/_sidebar.html.erb +34 -0
- data/app/views/spree/checkout/_store_credit.html.erb +21 -0
- data/app/views/spree/checkout/_summary.html.erb +116 -0
- data/app/views/spree/checkout/_user_account.html.erb +9 -0
- data/app/views/spree/checkout/apply_coupon_code.turbo_stream.erb +45 -0
- data/app/views/spree/checkout/apply_store_credit.turbo_stream.erb +19 -0
- data/app/views/spree/checkout/edit.html.erb +98 -0
- data/app/views/spree/checkout/payment/_check.html.erb +0 -0
- data/app/views/spree/checkout/payment/_gateway.html.erb +74 -0
- data/app/views/spree/checkout/payment/_store_credit.html.erb +13 -0
- data/app/views/spree/checkout/remove_coupon_code.turbo_stream.erb +34 -0
- data/app/views/spree/checkout/remove_store_credit.turbo_stream.erb +19 -0
- data/app/views/spree/checkout/update.turbo_stream.erb +25 -0
- data/app/views/spree/home/index.html.erb +1 -0
- data/app/views/spree/line_items/create.turbo_stream.erb +13 -0
- data/app/views/spree/line_items/destroy.turbo_stream.erb +11 -0
- data/app/views/spree/line_items/update.turbo_stream.erb +10 -0
- data/app/views/spree/newsletter_subscribers/create.turbo_stream.erb +7 -0
- data/app/views/spree/order_status/new.html.erb +16 -0
- data/app/views/spree/page_sections/show.html.erb +3 -0
- data/app/views/spree/pages/show.html.erb +1 -0
- data/app/views/spree/password/show.html.erb +1 -0
- data/app/views/spree/posts/index.html.erb +1 -0
- data/app/views/spree/posts/related_products.html.erb +7 -0
- data/app/views/spree/posts/show.html.erb +1 -0
- data/app/views/spree/products/index.html.erb +1 -0
- data/app/views/spree/products/index.turbo_stream.erb +1 -0
- data/app/views/spree/products/related.html.erb +3 -0
- data/app/views/spree/products/show.html.erb +1 -0
- data/app/views/spree/search/show.html.erb +6 -0
- data/app/views/spree/search/show.turbo_stream.erb +1 -0
- data/app/views/spree/search/suggestions.turbo_stream.erb +8 -0
- data/app/views/spree/seo/robots.text.erb +31 -0
- data/app/views/spree/seo/sitemap.xml.erb +25 -0
- data/app/views/spree/shared/_fonts.html.erb +14 -0
- data/app/views/spree/shared/_head.html.erb +36 -0
- data/app/views/spree/shared/_load_more_products.turbo_stream.erb +7 -0
- data/app/views/spree/shared/_product_listing_page.html.erb +11 -0
- data/app/views/spree/shared/_products.html.erb +1 -0
- data/app/views/spree/taxonomies/show.html.erb +1 -0
- data/app/views/spree/taxons/show.html.erb +1 -0
- data/app/views/spree/taxons/show.turbo_stream.erb +1 -0
- data/app/views/spree/waitlists/create.turbo_stream.erb +9 -0
- data/app/views/themes/default/kaminari/storefront/_first_page.html.erb +8 -0
- data/app/views/themes/default/kaminari/storefront/_gap.html.erb +8 -0
- data/app/views/themes/default/kaminari/storefront/_last_page.html.erb +8 -0
- data/app/views/themes/default/kaminari/storefront/_next_page.html.erb +13 -0
- data/app/views/themes/default/kaminari/storefront/_page.html.erb +10 -0
- data/app/views/themes/default/kaminari/storefront/_paginator.html.erb +27 -0
- data/app/views/themes/default/kaminari/storefront/_prev_page.html.erb +13 -0
- data/app/views/themes/default/spree/account/_account_nav.html.erb +46 -0
- data/app/views/themes/default/spree/account/_order.html.erb +39 -0
- data/app/views/themes/default/spree/account/_orders.html.erb +16 -0
- data/app/views/themes/default/spree/account/addresses/_address.html.erb +42 -0
- data/app/views/themes/default/spree/account/addresses/index.html.erb +28 -0
- data/app/views/themes/default/spree/account/newsletter/_newsletter_settings.html.erb +13 -0
- data/app/views/themes/default/spree/account/newsletter/edit.html.erb +16 -0
- data/app/views/themes/default/spree/account/newsletter/update.html.erb +1 -0
- data/app/views/themes/default/spree/account/orders/index.html.erb +24 -0
- data/app/views/themes/default/spree/account/orders/show.html.erb +22 -0
- data/app/views/themes/default/spree/account/profile/edit.html.erb +36 -0
- data/app/views/themes/default/spree/account/store_credits/_store_credit_event.html.erb +29 -0
- data/app/views/themes/default/spree/account/store_credits/index.html.erb +31 -0
- data/app/views/themes/default/spree/checkout/_footer.html.erb +10 -0
- data/app/views/themes/default/spree/checkout/complete.html.erb +84 -0
- data/app/views/themes/default/spree/contacts/new.html.erb +23 -0
- data/app/views/themes/default/spree/orders/_cart.html.erb +14 -0
- data/app/views/themes/default/spree/orders/_empty.html.erb +11 -0
- data/app/views/themes/default/spree/orders/_line_item.html.erb +47 -0
- data/app/views/themes/default/spree/orders/_line_item_quantity.html.erb +11 -0
- data/app/views/themes/default/spree/orders/_summary.html.erb +41 -0
- data/app/views/themes/default/spree/orders/edit.html.erb +18 -0
- data/app/views/themes/default/spree/orders/show.html.erb +6 -0
- data/app/views/themes/default/spree/page_sections/_announcement_bar.html.erb +10 -0
- data/app/views/themes/default/spree/page_sections/_custom_code.html.erb +5 -0
- data/app/views/themes/default/spree/page_sections/_featured_product.html.erb +136 -0
- data/app/views/themes/default/spree/page_sections/_featured_taxon.html.erb +116 -0
- data/app/views/themes/default/spree/page_sections/_featured_taxons.html.erb +71 -0
- data/app/views/themes/default/spree/page_sections/_footer.html.erb +62 -0
- data/app/views/themes/default/spree/page_sections/_header.html.erb +166 -0
- data/app/views/themes/default/spree/page_sections/_image_banner.html.erb +57 -0
- data/app/views/themes/default/spree/page_sections/_image_with_text.html.erb +66 -0
- data/app/views/themes/default/spree/page_sections/_main_password_footer.html.erb +64 -0
- data/app/views/themes/default/spree/page_sections/_main_password_header.html.erb +54 -0
- data/app/views/themes/default/spree/page_sections/_newsletter.html.erb +47 -0
- data/app/views/themes/default/spree/page_sections/_page_title.html.erb +7 -0
- data/app/views/themes/default/spree/page_sections/_post_details.html.erb +19 -0
- data/app/views/themes/default/spree/page_sections/_post_grid.html.erb +11 -0
- data/app/views/themes/default/spree/page_sections/_product_details.html.erb +102 -0
- data/app/views/themes/default/spree/page_sections/_product_grid.html.erb +52 -0
- data/app/views/themes/default/spree/page_sections/_related_products.html.erb +15 -0
- data/app/views/themes/default/spree/page_sections/_rich_text.html.erb +18 -0
- data/app/views/themes/default/spree/page_sections/_taxon_banner.html.erb +37 -0
- data/app/views/themes/default/spree/page_sections/_taxon_grid.html.erb +103 -0
- data/app/views/themes/default/spree/page_sections/_video.html.erb +27 -0
- data/app/views/themes/default/spree/page_sections/nav/_desktop.html.erb +49 -0
- data/app/views/themes/default/spree/page_sections/nav/_mobile.html.erb +136 -0
- data/app/views/themes/default/spree/policies/show.html.erb +11 -0
- data/app/views/themes/default/spree/posts/_json_ld.html.erb +20 -0
- data/app/views/themes/default/spree/posts/_pagination.html.erb +1 -0
- data/app/views/themes/default/spree/posts/_post.html.erb +13 -0
- data/app/views/themes/default/spree/products/_add_to_cart_button.html.erb +58 -0
- data/app/views/themes/default/spree/products/_add_to_waitlist.html.erb +36 -0
- data/app/views/themes/default/spree/products/_add_to_wishlist.html.erb +33 -0
- data/app/views/themes/default/spree/products/_breadcrumbs.html.erb +23 -0
- data/app/views/themes/default/spree/products/_color_picker.html.erb +19 -0
- data/app/views/themes/default/spree/products/_color_swatches.html.erb +61 -0
- data/app/views/themes/default/spree/products/_details.html.erb +55 -0
- data/app/views/themes/default/spree/products/_featured_image.html.erb +37 -0
- data/app/views/themes/default/spree/products/_filters.html.erb +45 -0
- data/app/views/themes/default/spree/products/_json_ld.html.erb +38 -0
- data/app/views/themes/default/spree/products/_json_ld_list.html.erb +9 -0
- data/app/views/themes/default/spree/products/_json_ld_variant.html.erb +10 -0
- data/app/views/themes/default/spree/products/_label.html.erb +26 -0
- data/app/views/themes/default/spree/products/_media_gallery.html.erb +94 -0
- data/app/views/themes/default/spree/products/_price.html.erb +59 -0
- data/app/views/themes/default/spree/products/_product.html.erb +62 -0
- data/app/views/themes/default/spree/products/_quantity_selector.html.erb +32 -0
- data/app/views/themes/default/spree/products/_returns_policy_modal.html.erb +22 -0
- data/app/views/themes/default/spree/products/_show_more_button.html.erb +8 -0
- data/app/views/themes/default/spree/products/_sort.html.erb +45 -0
- data/app/views/themes/default/spree/products/_swiper.html.erb +85 -0
- data/app/views/themes/default/spree/products/_tags.html.erb +0 -0
- data/app/views/themes/default/spree/products/_variant_options.html.erb +71 -0
- data/app/views/themes/default/spree/products/_variant_picker.html.erb +50 -0
- data/app/views/themes/default/spree/products/filters/_availability.html.erb +32 -0
- data/app/views/themes/default/spree/products/filters/_colors.html.erb +23 -0
- data/app/views/themes/default/spree/products/filters/_generic.html.erb +75 -0
- data/app/views/themes/default/spree/products/filters/_price.html.erb +35 -0
- data/app/views/themes/default/spree/products/filters/_taxons.erb +78 -0
- data/app/views/themes/default/spree/search/_suggestions.html.erb +92 -0
- data/app/views/themes/default/spree/settings/show.html.erb +32 -0
- data/app/views/themes/default/spree/shared/_account_pane.html.erb +28 -0
- data/app/views/themes/default/spree/shared/_address.html.erb +35 -0
- data/app/views/themes/default/spree/shared/_cart_icon.html.erb +13 -0
- data/app/views/themes/default/spree/shared/_cart_pane.html.erb +38 -0
- data/app/views/themes/default/spree/shared/_css_variables.html.erb +54 -0
- data/app/views/themes/default/spree/shared/_custom_head.html.erb +0 -0
- data/app/views/themes/default/spree/shared/_error_messages.html.erb +9 -0
- data/app/views/themes/default/spree/shared/_error_messages_without_base_attribute.html.erb +15 -0
- data/app/views/themes/default/spree/shared/_flash.html.erb +16 -0
- data/app/views/themes/default/spree/shared/_flashes.html.erb +10 -0
- data/app/views/themes/default/spree/shared/_json_ld.html.erb +32 -0
- data/app/views/themes/default/spree/shared/_line_item_options.html.erb +18 -0
- data/app/views/themes/default/spree/shared/_logo.html.erb +42 -0
- data/app/views/themes/default/spree/shared/_meta_tags.html.erb +45 -0
- data/app/views/themes/default/spree/shared/_order_details.html.erb +106 -0
- data/app/views/themes/default/spree/shared/_order_line_item.html.erb +65 -0
- data/app/views/themes/default/spree/shared/_order_shipment.html.erb +71 -0
- data/app/views/themes/default/spree/shared/_search.html.erb +32 -0
- data/app/views/themes/default/spree/shared/_title.html.erb +3 -0
- data/app/views/themes/default/spree/shared/_wishlist_icon.html.erb +13 -0
- data/app/views/themes/default/spree/shared/icons/_account.html.erb +17 -0
- data/app/views/themes/default/spree/shared/icons/_arrow-left.html.erb +8 -0
- data/app/views/themes/default/spree/shared/icons/_arrow-right.html.erb +3 -0
- data/app/views/themes/default/spree/shared/icons/_bell.html.erb +9 -0
- data/app/views/themes/default/spree/shared/icons/_cart.html.erb +10 -0
- data/app/views/themes/default/spree/shared/icons/_cart_48.html.erb +6 -0
- data/app/views/themes/default/spree/shared/icons/_check.html.erb +4 -0
- data/app/views/themes/default/spree/shared/icons/_chevron.html.erb +15 -0
- data/app/views/themes/default/spree/shared/icons/_chevron_down.html.erb +5 -0
- data/app/views/themes/default/spree/shared/icons/_chevron_right.html.erb +15 -0
- data/app/views/themes/default/spree/shared/icons/_chevron_up.html.erb +3 -0
- data/app/views/themes/default/spree/shared/icons/_close.html.erb +9 -0
- data/app/views/themes/default/spree/shared/icons/_cross.html.erb +16 -0
- data/app/views/themes/default/spree/shared/icons/_delete.html.erb +3 -0
- data/app/views/themes/default/spree/shared/icons/_delivery.html.erb +5 -0
- data/app/views/themes/default/spree/shared/icons/_disabled.html.erb +13 -0
- data/app/views/themes/default/spree/shared/icons/_edit.html.erb +3 -0
- data/app/views/themes/default/spree/shared/icons/_facebook.html.erb +16 -0
- data/app/views/themes/default/spree/shared/icons/_filter.html.erb +8 -0
- data/app/views/themes/default/spree/shared/icons/_heart.html.erb +12 -0
- data/app/views/themes/default/spree/shared/icons/_info.html.erb +7 -0
- data/app/views/themes/default/spree/shared/icons/_instagram.html.erb +18 -0
- data/app/views/themes/default/spree/shared/icons/_lock.html.erb +13 -0
- data/app/views/themes/default/spree/shared/icons/_menu.html.erb +10 -0
- data/app/views/themes/default/spree/shared/icons/_minus.html.erb +5 -0
- data/app/views/themes/default/spree/shared/icons/_pinch.html.erb +6 -0
- data/app/views/themes/default/spree/shared/icons/_pinterest.html.erb +8 -0
- data/app/views/themes/default/spree/shared/icons/_plus.html.erb +17 -0
- data/app/views/themes/default/spree/shared/icons/_return.html.erb +11 -0
- data/app/views/themes/default/spree/shared/icons/_search.html.erb +17 -0
- data/app/views/themes/default/spree/shared/icons/_spinner.html.erb +1 -0
- data/app/views/themes/default/spree/shared/icons/_spotify.html.erb +8 -0
- data/app/views/themes/default/spree/shared/icons/_tiktok.html.erb +9 -0
- data/app/views/themes/default/spree/shared/icons/_twitter.html.erb +16 -0
- data/app/views/themes/default/spree/shared/icons/_youtube.html.erb +9 -0
- data/app/views/themes/default/spree/shared/icons/_zoom.html.erb +10 -0
- data/app/views/themes/default/spree/wishlists/_no_wished_items.html.erb +10 -0
- data/app/views/themes/default/spree/wishlists/_wished_item.html.erb +38 -0
- data/app/views/themes/default/spree/wishlists/show.html.erb +17 -0
- data/config/i18n-tasks.yml +176 -0
- data/config/importmap.rb +22 -0
- data/config/initializers/assets.rb +1 -0
- data/config/initializers/heroicon.rb +10 -0
- data/config/locales/en.yml +76 -0
- data/config/routes.rb +88 -0
- data/lib/generators/spree/storefront/install/install_generator.rb +45 -0
- data/lib/generators/spree/storefront/install/templates/application.tailwind.css +1760 -0
- data/lib/generators/spree/storefront/install/templates/dev +16 -0
- data/lib/generators/spree/storefront/install/templates/tailwind.config.js +128 -0
- data/lib/generators/spree/storefront/theme/templates/model.rb.tt +12 -0
- data/lib/generators/spree/storefront/theme/theme_generator.rb +41 -0
- data/lib/spree/storefront/configuration.rb +11 -0
- data/lib/spree/storefront/engine.rb +51 -0
- data/lib/spree/storefront/testing_support/capybara_utils.rb +13 -0
- data/lib/spree/storefront.rb +16 -0
- data/lib/spree_storefront.rb +1 -0
- data/vendor/colornames.json +1 -0
- data/vendor/javascript/@kanety--stimulus-accordion.js +4 -0
- data/vendor/javascript/@stimulus-components--carousel.js +4 -0
- data/vendor/javascript/card-validator.js +4 -0
- data/vendor/javascript/credit-card-type.js +4 -0
- data/vendor/javascript/headroom.js.js +19 -0
- data/vendor/javascript/nouislider.js +4 -0
- data/vendor/javascript/photoswipe--dist--photoswipe-lightbox.esm.js.js +667 -0
- data/vendor/javascript/photoswipe.js +1675 -0
- data/vendor/javascript/stimulus-read-more.js +4 -0
- data/vendor/javascript/stimulus-scroll-to.js +4 -0
- data/vendor/javascript/swiper--bundle.js +4 -0
- metadata +567 -0
@@ -0,0 +1,116 @@
|
|
1
|
+
<%= turbo_frame_tag :checkout_summary, id: 'summary' do %>
|
2
|
+
<div class="checkout-content-summary text-sm">
|
3
|
+
<% cache [*spree_base_cache_scope.call(order.cache_key_with_version), order.state] do %>
|
4
|
+
<div data-hook="order_summary">
|
5
|
+
<div class="flex justify-between items-center mb-2">
|
6
|
+
<span><%= Spree.t(:subtotal) %>:</span>
|
7
|
+
<span><%= order.display_item_total.to_html %></span>
|
8
|
+
</div>
|
9
|
+
<div class="d-table-cell text-right font-weight-bold"></div>
|
10
|
+
|
11
|
+
<% cache spree_base_cache_scope.call(order.line_item_adjustments.nonzero.cache_key_with_version) do %>
|
12
|
+
<% if order.line_item_adjustments.nonzero.exists? %>
|
13
|
+
<% order.line_item_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
14
|
+
<div class="flex justify-between items-center mb-2">
|
15
|
+
<span class="max-w-[250px] truncate">
|
16
|
+
<%= label %>
|
17
|
+
</span>
|
18
|
+
<span>
|
19
|
+
<%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
|
20
|
+
</span>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% if order.state != 'address' && order.shipments.any? %>
|
27
|
+
<% if order.has_free_shipping? %>
|
28
|
+
<div class="flex justify-between items-center mb-2">
|
29
|
+
<span><%= Spree.t(:shipping) %>:</span>
|
30
|
+
<span><%= Spree.t(:free) %></span>
|
31
|
+
</div>
|
32
|
+
<% else %>
|
33
|
+
<div class="flex justify-between items-center mb-2">
|
34
|
+
<span><%= Spree.t(:shipping) %>:</span>
|
35
|
+
<% shipping_total = Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency) %>
|
36
|
+
<span>
|
37
|
+
<%= order.ship_total <= 0 ? Spree.t(:free) : shipping_total.to_html %>
|
38
|
+
</span>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<% if order.shipment_adjustments.nonzero.exists? %>
|
42
|
+
<% order.shipment_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
43
|
+
<div class="flex justify-between items-center mb-2">
|
44
|
+
<span>
|
45
|
+
<%= label %>:
|
46
|
+
</span>
|
47
|
+
<span>
|
48
|
+
<%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
|
49
|
+
</span>
|
50
|
+
<% end %>
|
51
|
+
<% end %>
|
52
|
+
<% end %>
|
53
|
+
<% elsif order.state == 'address' %>
|
54
|
+
<div class="flex justify-between items-center mb-2">
|
55
|
+
<span><%= Spree.t(:shipping) %>:</span>
|
56
|
+
<span class="text-xs text-gray-500"><%= Spree.t('storefront.checkout.calculated_at_next_step') %></span>
|
57
|
+
</div>
|
58
|
+
<% end %>
|
59
|
+
|
60
|
+
<% if order.payment? || order.completed? %>
|
61
|
+
<% cache spree_base_cache_scope.call(order.all_adjustments.nonzero.tax.eligible.cache_key_with_version) do %>
|
62
|
+
<% order.all_adjustments.nonzero.tax.eligible.group_by(&:label).each do |label, adjustments| %>
|
63
|
+
<div class="flex justify-between items-center mb-2">
|
64
|
+
<span><%= label %></span>
|
65
|
+
|
66
|
+
<% tax_total = Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
|
67
|
+
<span><%= tax_total.to_html %></span>
|
68
|
+
</div>
|
69
|
+
<% end %>
|
70
|
+
<% end %>
|
71
|
+
<% end %>
|
72
|
+
|
73
|
+
<% if order.adjustments.nonzero.non_tax.eligible.exists? %>
|
74
|
+
<% order.adjustments.nonzero.non_tax.eligible.each do |adjustment| %>
|
75
|
+
<div class="flex justify-between items-center mb-2">
|
76
|
+
<span>
|
77
|
+
<%= adjustment.label %>:
|
78
|
+
</span>
|
79
|
+
<span>
|
80
|
+
<%= adjustment.display_amount.to_html %>
|
81
|
+
</span>
|
82
|
+
</div>
|
83
|
+
<% end %>
|
84
|
+
<% end %>
|
85
|
+
|
86
|
+
<% if order.respond_to?(:gift_card) && order.gift_card.present? %>
|
87
|
+
<div class="flex justify-between items-center mb-2">
|
88
|
+
<span><%= Spree.t(:gift_card) %>:</span>
|
89
|
+
<span>-<%= order.display_gift_card_total %></span>
|
90
|
+
</div>
|
91
|
+
<% elsif order.using_store_credit? %>
|
92
|
+
<div class="flex justify-between items-center mb-2">
|
93
|
+
<span>Store credit:</span>
|
94
|
+
<span><%= order.display_total_applied_store_credit %></span>
|
95
|
+
</div>
|
96
|
+
<% end %>
|
97
|
+
|
98
|
+
<div>
|
99
|
+
<div class="flex justify-between items-center">
|
100
|
+
<span class="font-bold text-lg"><%= Spree.t(:total) %></span>
|
101
|
+
<div class="">
|
102
|
+
<span class="text-xs mr-1"><%= order.currency.upcase %></span>
|
103
|
+
<span class="font-semibold text-lg inline" id='summary-order-total' data-currency="<%= Money::Currency.find(order.currency).symbol %>">
|
104
|
+
<%= order.display_total_minus_store_credits.to_html %>
|
105
|
+
</span>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<% end %>
|
111
|
+
|
112
|
+
<div id="checkout-message" class="mt-8">
|
113
|
+
<%= current_store.checkout_message if current_store.checkout_message.present? %>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<% end %>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<% if @result.error.blank? && @result.status_code != :gift_card_applied %>
|
2
|
+
<%= turbo_stream.replace :checkout_line_items do %>
|
3
|
+
<%= render 'line_items', order: @order %>
|
4
|
+
<% end %>
|
5
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
6
|
+
<%= render 'summary', order: @order %>
|
7
|
+
<% end %>
|
8
|
+
<%= turbo_stream.replace :checkout_payment_methods do %>
|
9
|
+
<%= render 'payment_methods', order: @order %>
|
10
|
+
<% end %>
|
11
|
+
<%= turbo_stream.replace :quick_checkout do %>
|
12
|
+
<%= render 'quick_checkout', order: @order %>
|
13
|
+
<% end %>
|
14
|
+
<%= turbo_stream.update 'summary-order-total' do %>
|
15
|
+
<%= @order.display_total.to_html %>
|
16
|
+
<% end %>
|
17
|
+
<% elsif @result.error.blank? && @result.status_code == :gift_card_applied %>
|
18
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
19
|
+
<%= render 'summary', order: @order %>
|
20
|
+
<% end %>
|
21
|
+
<%= turbo_stream.replace :quick_checkout do %>
|
22
|
+
<%= render 'quick_checkout', order: @order %>
|
23
|
+
<% end %>
|
24
|
+
<%= turbo_stream.replace :checkout_payment_methods do %>
|
25
|
+
<%= render 'payment_methods', order: @order %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<%= turbo_stream.replace :checkout_coupon_code do %>
|
30
|
+
<%= render 'coupon_code', promotion: @order.valid_coupon_promotions.first,
|
31
|
+
result: @result, classes: @result.error.present? ? 'error' : '' %>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<% if @order.respond_to?(:gift_card) %>
|
35
|
+
<%= turbo_stream.replace :gift_card_code_field do %>
|
36
|
+
<%= turbo_frame_tag :gift_card_code_field do %>
|
37
|
+
<%= hidden_field_tag 'order[gift_card_code]', @order.gift_card&.code %>
|
38
|
+
<%= hidden_field_tag 'order[gift_card_amount]', @order.gift_card_total %>
|
39
|
+
<% end %>
|
40
|
+
<% end %>
|
41
|
+
<% end%>
|
42
|
+
|
43
|
+
<%= turbo_stream.replace :checkout_store_credit do %>
|
44
|
+
<%= render 'store_credit' %>
|
45
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
2
|
+
<%= render 'summary', order: @order %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= turbo_stream.replace :quick_checkout do %>
|
6
|
+
<%= render 'quick_checkout', order: @order %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= turbo_stream.replace :checkout_payment_methods do %>
|
10
|
+
<%= render 'payment_methods', order: @order %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= turbo_stream.replace :checkout_store_credit do %>
|
14
|
+
<%= render 'store_credit' %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= turbo_stream.replace :checkout_coupon_code do %>
|
18
|
+
<%= render 'coupon_code', promotion: @order.valid_coupon_promotions.first %>
|
19
|
+
<% end %>
|
@@ -0,0 +1,98 @@
|
|
1
|
+
<div class="checkout-progress" data-hook="checkout_progress" role="navigation">
|
2
|
+
<nav aria-label="breadcrumb">
|
3
|
+
<%= checkout_progress %>
|
4
|
+
</nav>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<%= render partial: 'spree/shared/error_messages_without_base_attribute', locals: { target: @order } %>
|
8
|
+
|
9
|
+
<%= turbo_frame_tag :modal %>
|
10
|
+
|
11
|
+
<% if @order.address? && try_spree_current_user %>
|
12
|
+
<div class="border text-sm px-5 py-4 mb-5 rounded-md border-default">
|
13
|
+
<%= render 'user_account' %>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
<% if @order.checkout_steps.index(@order.state) > 0 %>
|
17
|
+
<div class="border text-sm px-5 mb-6 py-4 rounded-md border-default">
|
18
|
+
<% if @order.user.present? %>
|
19
|
+
<%= render 'user_account' %>
|
20
|
+
<% elsif @order.email.present? %>
|
21
|
+
<div class="flex justify-between items-center">
|
22
|
+
<div class="flex items-center">
|
23
|
+
<div class="min-w-[60px] max-w-[60px]">
|
24
|
+
<%= Spree.t(:contact) %>
|
25
|
+
</div>
|
26
|
+
<div class="px-5 word-break">
|
27
|
+
<%= @order.email %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="text-xs">
|
31
|
+
<%= link_to Spree.t(:edit), spree.checkout_state_path(@order.token, 'address'), class: 'text-dark' %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<% end %>
|
35
|
+
<% if @order.ship_address.present? %>
|
36
|
+
<div class="flex justify-between mt-3 border-t pt-3 items-center border-default">
|
37
|
+
<div class="flex items-center">
|
38
|
+
<div class="min-w-[60px] max-w-[60px]">
|
39
|
+
<%= Spree.t(:ship_address) %>
|
40
|
+
</div>
|
41
|
+
<div class="px-5 word-break">
|
42
|
+
<%= @order.ship_address.to_s.gsub('<br/>', ', ').html_safe %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div class="text-xs">
|
46
|
+
<%= link_to Spree.t(:edit), spree.checkout_state_path(@order.token, 'address'), class: 'text-dark' %>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<% end %>
|
50
|
+
<% if @order.checkout_steps.index(@order.state) > 1 && @order.shipments.any? %>
|
51
|
+
<div class="mt-3 border-t pt-3 flex justify-between items-center border-default">
|
52
|
+
<div class="flex items-center">
|
53
|
+
<div class="min-w-[60px] max-w-[60px]">
|
54
|
+
<%= Spree.t('storefront.checkout.delivery_method') %>
|
55
|
+
</div>
|
56
|
+
<div class="px-5 flex flex-col gap-4">
|
57
|
+
<% @order.shipments.each do |shipment| %>
|
58
|
+
<p class="word-break">
|
59
|
+
<% if @order.shipments.count > 1 || shipment.shipping_method.respond_to?(:vendor) && shipment.shipping_method.vendor.present? %>
|
60
|
+
<%= shipment.stock_location&.name %> -
|
61
|
+
<% end %>
|
62
|
+
<%= shipment.shipping_method.name %>
|
63
|
+
· <strong><%= shipment.cost <= 0 ? Spree.t(:free) : shipment.display_final_price %></strong>
|
64
|
+
</p>
|
65
|
+
<% end %>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<% unless @order.digital? %>
|
69
|
+
<div class="text-xs">
|
70
|
+
<%= link_to Spree.t(:edit), spree.checkout_state_path(@order.token, 'delivery'), class: 'text-dark' %>
|
71
|
+
</div>
|
72
|
+
<% end %>
|
73
|
+
</div>
|
74
|
+
<% end %>
|
75
|
+
</div>
|
76
|
+
<% end %>
|
77
|
+
|
78
|
+
<div class="checkout-content mt-5" id="checkout_content">
|
79
|
+
<% if @order.address? %>
|
80
|
+
<%= render partial: 'spree/checkout/address', locals: { order: @order } %>
|
81
|
+
<% elsif @order.payment? || @order.confirm? %>
|
82
|
+
<%= render partial: 'spree/checkout/payment', locals: { order: @order } %>
|
83
|
+
<% elsif @order.delivery? %>
|
84
|
+
<%= render partial: 'spree/checkout/delivery', locals: { order: @order } %>
|
85
|
+
<% else %>
|
86
|
+
<%= form_for @order, url: spree.update_checkout_path(@order.token, @order.state), html: { id: "checkout_form_#{@order.state}" } do |form| %>
|
87
|
+
<div>
|
88
|
+
<%= form.hidden_field :state_lock_version unless @order.errors.any? %>
|
89
|
+
<%= render @order.state, form: form %>
|
90
|
+
</div>
|
91
|
+
<div>
|
92
|
+
<%= button_tag Spree.t(:save_and_continue),
|
93
|
+
class: 'btn btn-primary font-weight-bold w-full lg:w-48 float-right checkout-content-save-continue-button',
|
94
|
+
data: { 'turbo-submits-with': (render 'button_processing', is_hidden: false) } %>
|
95
|
+
</div>
|
96
|
+
<% end %>
|
97
|
+
<% end %>
|
98
|
+
</div>
|
File without changes
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<div class="payment-gateway" data-controller="card-validation">
|
2
|
+
|
3
|
+
<% param_prefix = "payment_source[#{payment_method.id}]" %>
|
4
|
+
|
5
|
+
<div class="payment-gateway-fields">
|
6
|
+
<div class="form-group mb-3">
|
7
|
+
<label for="name_on_card" class="block text-xs text-neutral-600 mb-1"><%= Spree.t(:name_on_card) %></label>
|
8
|
+
<%= text_field_tag "#{param_prefix}[name]", "#{@order.bill_address_firstname} #{@order.bill_address_lastname}", { id: "name_on_card", placeholder: Spree.t(:name_on_card), class: 'text-input w-full', required: true } %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form-group mb-3 relative">
|
12
|
+
<% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
|
13
|
+
<label for="card_number" class="block text-xs text-neutral-600 mb-1"><%= Spree.t(:card_number) %></label>
|
14
|
+
<%= text_field_tag "#{param_prefix}[number]", '',
|
15
|
+
options_hash.merge(
|
16
|
+
id: 'card_number',
|
17
|
+
data: { card_validation_target: "number" },
|
18
|
+
size: 19,
|
19
|
+
maxlength: 19,
|
20
|
+
autocomplete: "off",
|
21
|
+
placeholder: Spree.t(:card_number),
|
22
|
+
class: 'text-input w-full pr-10',
|
23
|
+
required: true
|
24
|
+
)
|
25
|
+
%>
|
26
|
+
<div class="absolute right-2 top-7"
|
27
|
+
data-card-validation-target="typeContainer"
|
28
|
+
id="credit-card-type-container">
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="flex gap-3">
|
33
|
+
<div class="form-group">
|
34
|
+
<label for="card_expiry" class="block text-xs text-neutral-600 mb-1"><%= Spree.t(:expiration_date) %></label>
|
35
|
+
<%= text_field_tag "#{param_prefix}[expiry]", '',
|
36
|
+
id: 'card_expiry',
|
37
|
+
class: 'text-input',
|
38
|
+
data: {
|
39
|
+
card_validation_target: "expiry"
|
40
|
+
},
|
41
|
+
placeholder: "MM/YYYY",
|
42
|
+
required: true
|
43
|
+
%>
|
44
|
+
</div>
|
45
|
+
<div class="form-group">
|
46
|
+
<label for="card_code" class="block text-xs text-neutral-600 mb-1"><%= Spree.t(:cvv) %></label>
|
47
|
+
<%= text_field_tag "#{param_prefix}[verification_value]", '',
|
48
|
+
options_hash.merge(
|
49
|
+
id: 'card_code',
|
50
|
+
class: 'text-input',
|
51
|
+
data: { card_validation_target: "cvv" },
|
52
|
+
size: 4,
|
53
|
+
maxlength: 4,
|
54
|
+
pattern: '[0-9]*',
|
55
|
+
inputmode: 'numeric',
|
56
|
+
placeholder: Spree.t(:cvv),
|
57
|
+
required: true
|
58
|
+
)
|
59
|
+
%>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<%= hidden_field_tag "#{param_prefix}[cc_type]", '',
|
64
|
+
id: "cc_type",
|
65
|
+
data: { card_validation_target: "ccType" }
|
66
|
+
%>
|
67
|
+
|
68
|
+
<% PaymentIcon.credit_cards.each do |card| %>
|
69
|
+
<div id="credit-card-icon-<%= card.name %>" class="hidden">
|
70
|
+
<%= image_tag card.path, style: 'height: 32px;' %>
|
71
|
+
</div>
|
72
|
+
<% end %>
|
73
|
+
</div>
|
74
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% if @order.using_store_credit? %>
|
2
|
+
<div class="d-flex flex-column mb-5" data-hook="checkout_payment_store_credit_success">
|
3
|
+
<p class="store-credit-title font-body">
|
4
|
+
<% if @order.respond_to?(:gift_card) && @order.gift_card.present? %>
|
5
|
+
<%= Spree.t('storefront.checkout.gift_card_amount_applied', amount: @order.display_gift_card_total, code: @order.gift_card.code) %>
|
6
|
+
<% else %>
|
7
|
+
<%= Spree.t('storefront.checkout.store_credits_amount_applied', amount: @order.display_total_applicable_store_credit.abs) %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<%= Spree.t('storefront.checkout.you_will_need_to_pay_only', amount: @order.display_total_minus_store_credits) %>
|
11
|
+
</p>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<% if @result.error.blank? %>
|
2
|
+
<%= turbo_stream.replace :checkout_line_items do %>
|
3
|
+
<%= render 'line_items', order: @order %>
|
4
|
+
<% end %>
|
5
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
6
|
+
<%= render 'summary', order: @order %>
|
7
|
+
<% end %>
|
8
|
+
<%= turbo_stream.replace :checkout_payment_methods do %>
|
9
|
+
<%= render 'payment_methods', order: @order %>
|
10
|
+
<% end %>
|
11
|
+
<%= turbo_stream.replace :quick_checkout do %>
|
12
|
+
<%= render 'quick_checkout', order: @order %>
|
13
|
+
<% end %>
|
14
|
+
<%= turbo_stream.update 'summary-order-total' do %>
|
15
|
+
<%= @order.display_total.to_html %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<%= turbo_stream.replace :checkout_coupon_code do %>
|
19
|
+
<%= render 'coupon_code', promotion: @order.valid_coupon_promotions.first,
|
20
|
+
result: @result, classes: @result.error.present? ? 'error' : '' %>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<% if @order.respond_to?(:gift_card) %>
|
24
|
+
<%= turbo_stream.replace :gift_card_code_field do %>
|
25
|
+
<%= turbo_frame_tag :gift_card_code_field do %>
|
26
|
+
<%= hidden_field_tag 'order[gift_card_code]', @order.gift_card&.code %>
|
27
|
+
<%= hidden_field_tag 'order[gift_card_amount]', @order.gift_card_total %>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
<% end%>
|
31
|
+
|
32
|
+
<%= turbo_stream.replace :checkout_store_credit do %>
|
33
|
+
<%= render 'store_credit' %>
|
34
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
2
|
+
<%= render 'summary', order: @order %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= turbo_stream.replace :quick_checkout do %>
|
6
|
+
<%= render 'quick_checkout', order: @order %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= turbo_stream.replace :checkout_payment_methods do %>
|
10
|
+
<%= render 'payment_methods', order: @order %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= turbo_stream.replace :checkout_store_credit do %>
|
14
|
+
<%= render 'store_credit' %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= turbo_stream.replace :checkout_coupon_code do %>
|
18
|
+
<%= render 'coupon_code', promotion: @order.valid_coupon_promotions.first %>
|
19
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%= turbo_stream.replace :checkout_summary do %>
|
2
|
+
<%= render 'summary', order: @order %>
|
3
|
+
<% end %>
|
4
|
+
<%= turbo_stream.replace :checkout_lock_version do %>
|
5
|
+
<%= turbo_frame_tag :checkout_lock_version do %>
|
6
|
+
<%= hidden_field_tag 'order[state_lock_version]', @order.state_lock_version %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
<%= turbo_stream.update 'summary-order-total' do %>
|
10
|
+
<%= @order.display_total.to_html %>
|
11
|
+
<% end %>
|
12
|
+
<% if @order.line_items_without_shipping_rates.any? && !@order.all_line_items_invalid? %>
|
13
|
+
<%= turbo_stream.append :modal do %>
|
14
|
+
<%= turbo_frame_tag :modal do %>
|
15
|
+
<%= render partial: 'spree/checkout/missing_line_items' %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
19
|
+
<% if @order.line_items_without_shipping_rates.any? && @order.all_line_items_invalid? %>
|
20
|
+
<%= turbo_stream.append :modal do %>
|
21
|
+
<%= turbo_frame_tag :modal do %>
|
22
|
+
<%= render partial: 'spree/checkout/missing_all_line_items' %>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page) %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% if flash[:error] %>
|
2
|
+
<%= spree_turbo_update_flashes %>
|
3
|
+
<% else %>
|
4
|
+
<%= spree_turbo_update_cart(@order) %>
|
5
|
+
|
6
|
+
<%= turbo_stream.replace_all '.cart-contents' do %>
|
7
|
+
<%= turbo_frame_tag :cart_contents, class: 'cart-contents' do %>
|
8
|
+
<%= render 'spree/orders/cart' %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%= turbo_stream.slideover_open('slideover', 'cart-pane') %>
|
13
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= turbo_stream.replace_all '.cart-contents' do %>
|
2
|
+
<%= turbo_frame_tag :cart_contents, class: 'cart-contents' do %>
|
3
|
+
<% if @order.line_items.empty? %>
|
4
|
+
<%= render 'spree/orders/empty' %>
|
5
|
+
<% else %>
|
6
|
+
<%= render 'spree/orders/cart' %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= spree_turbo_update_cart(@order) %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<% if flash[:error] %>
|
2
|
+
<%= spree_turbo_update_flashes %>
|
3
|
+
<% else %>
|
4
|
+
<%= turbo_stream.replace_all '.cart-contents' do %>
|
5
|
+
<%= turbo_frame_tag :cart_contents, class: 'cart-contents' do %>
|
6
|
+
<%= render 'spree/orders/cart' %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
<%= spree_turbo_update_cart(@order) %>
|
10
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="card-dialog mx-auto lg:w-1/3">
|
2
|
+
<h3 class="mb-5 font-semibold"><%= Spree.t(:find_your_order) %></h3>
|
3
|
+
<%= form_tag spree.order_status_path, data: { turbo: false } do %>
|
4
|
+
<div class="mb-5">
|
5
|
+
<p>
|
6
|
+
<%= email_field_tag :email, params[:email], class: 'text-input w-full', placeholder: Spree.t(:email), required: true %>
|
7
|
+
</p>
|
8
|
+
</div>
|
9
|
+
<div class="mb-5">
|
10
|
+
<p>
|
11
|
+
<%= text_field_tag :number, params[:number], class: 'text-input w-full', placeholder: Spree.t(:order_number), required: true %>
|
12
|
+
</p>
|
13
|
+
</div>
|
14
|
+
<%= submit_tag Spree.t(:find_your_order), class: 'btn-primary block w-full lg:w-48 text-center mx-auto' %>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(@page) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page, posts: @posts, query: params[:query], sort: params[:sort]) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page, post: @post) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page, products: storefront_products.records, sort: products_sort) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'spree/shared/load_more_products' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render_page(current_page_or_preview, product: @product) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'spree/shared/load_more_products' %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
User-agent: *
|
2
|
+
<% if store && !store.prefers_index_in_search_engines? %>
|
3
|
+
Disallow: /
|
4
|
+
<% elsif store %>
|
5
|
+
Disallow: /checkout
|
6
|
+
Disallow: /cart
|
7
|
+
Disallow: /orders
|
8
|
+
Disallow: /user
|
9
|
+
Disallow: /account
|
10
|
+
Disallow: /api
|
11
|
+
Disallow: /password
|
12
|
+
Disallow: /order_status
|
13
|
+
Disallow: /auth_redirect
|
14
|
+
Disallow: /admin
|
15
|
+
Disallow: /forbidden
|
16
|
+
Disallow: /unauthorized
|
17
|
+
Disallow: /page_sections
|
18
|
+
Disallow: /subscribers
|
19
|
+
Disallow: /line_items
|
20
|
+
Disallow: /themes
|
21
|
+
Disallow: /login
|
22
|
+
Disallow: /logout
|
23
|
+
Disallow: /signup
|
24
|
+
Disallow: /search/suggestions
|
25
|
+
Disallow: /customer_returns
|
26
|
+
Disallow: /shipment_trackings
|
27
|
+
Disallow: /locale
|
28
|
+
Disallow: /currency
|
29
|
+
|
30
|
+
Sitemap: <%= sitemap_url(host: store.formatted_url_or_custom_domain, format: :xml) %>
|
31
|
+
<% end %>
|