Source code for shuup.testing.single_page_checkout_with_login_and_register_conf

# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path

from shuup.front.views.checkout import SinglePageCheckoutView


[docs]class SinglePageCheckoutViewWithLoginAndRegister(SinglePageCheckoutView): initial_phase = "checkout_method" phase_specs = [ "shuup.front.checkout.checkout_method:CheckoutMethodPhase", "shuup.front.checkout.checkout_method:RegisterPhase", "shuup.front.checkout.addresses:AddressesPhase", "shuup.front.checkout.methods:MethodsPhase", "shuup.front.checkout.methods:ShippingMethodPhase", "shuup.front.checkout.methods:PaymentMethodPhase", "shuup.front.checkout.confirm:ConfirmPhase", ] empty_phase_spec = "shuup.front.checkout.empty:EmptyPhase"
urlpatterns = [ url(r"^checkout/$", SinglePageCheckoutViewWithLoginAndRegister.as_view(), name="checkout"), url(r"^checkout/(?P<phase>.+)/$", SinglePageCheckoutViewWithLoginAndRegister.as_view(), name="checkout"), path("admin/", admin.site.urls), url(r"^sa/", include("shuup.admin.urls", namespace="shuup_admin")), url(r"^", include("shuup.front.urls", namespace="shuup")), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)