예제 #1
0
        name='checkout_shippingbilling'  # First step of the checkout process
    ),
    #url(r'^checkout/ship/$', SelectShippingView.as_view(),
    #    name='checkout_shipping' # First step of the checkout process
    #    ),
    url(
        r'^checkout/ship/$',
        ShippingBackendRedirectView.as_view(),
        name='checkout_shipping'  # First step of the checkout process
    ),
    #url(r'^checkout/pay/$', SelectPaymentView.as_view(),
    #    name='checkout_payment' # Second step of the checkout process
    #    ),
    url(
        r'^checkout/pay/$',
        PaymentBackendRedirectView.as_view(),
        name='checkout_payment'  # First step of the checkout process
    ),
    url(
        r'^checkout/thank_you/$',
        ThankYouView.as_view(),
        name='thank_you_for_your_order'  # Second step of the checkout process
    ),
    # Products
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'),
    url(r'^products/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'),
예제 #2
0
from django.conf.urls import patterns, url
from shop.util.decorators import cart_required

from shop.views.checkout import (
    CheckoutSelectionView,
    PaymentBackendRedirectView,
    ShippingBackendRedirectView,
    OrderConfirmView,
    ThankYouView,
)

urlpatterns = patterns('',
    url(r'^$', cart_required(CheckoutSelectionView.as_view()),
        name='checkout_selection'  # first step of the checkout process
        ),
    url(r'^ship/$', ShippingBackendRedirectView.as_view(),
        name='checkout_shipping'  # second step of the checkout process
        ),
    url(r'^confirm/$', OrderConfirmView.as_view(),
        name='checkout_confirm'  # third step of the checkout process
        ),
    url(r'^pay/$', PaymentBackendRedirectView.as_view(),
        name='checkout_payment'  # fourth step of the checkout process
        ),
    url(r'^thank_you/$', ThankYouView.as_view(),
        name='thank_you_for_your_order'  # final step of the checkout process
        ),
    )
예제 #3
0
파일: urls.py 프로젝트: clincher/morozoff
 # CartItems
 url('^cart/item/(?P<id>[0-9A-Za-z-_.//]+)$',
     CartItemDetail.as_view(),
     name='cart_item'
 ),
 # Checkout
 url(r'^checkout/$',
     MyCheckoutSelectionView.as_view(),
     name='checkout_selection'  # First step of the checkout process
 ),
 url(r'^checkout/ship/$',
     ShippingBackendRedirectView.as_view(),
     name='checkout_shipping'  # First step of the checkout process
 ),
 url(r'^checkout/pay/$',
     PaymentBackendRedirectView.as_view(),
     name='checkout_payment'  # First step of the checkout process
     ),
 url(r'^checkout/thank_you/$',
     ThankYouView.as_view(),
     name='thank_you_for_your_order'  # Second step of the checkout process
     ),
 # Orders
 url(r'^orders/$',
     OrderListView.as_view(),
     name='order_list'),
 url(r'^orders/(?P<pk>\d+)/$',
     OrderDetailView.as_view(),
     name='order_detail'),
 url(r'^catalog/$',
     ListView.as_view(
예제 #4
0
        name='cart_item' ),
    
    # Checkout
    url(r'^checkout/$', CheckoutSelectionView.as_view(), 
        name='checkout_selection' # First step of the checkout process
        ),
    #url(r'^checkout/ship/$', SelectShippingView.as_view(), 
    #    name='checkout_shipping' # First step of the checkout process
    #    ),
    url(r'^checkout/ship/$', ShippingBackendRedirectView.as_view(), 
        name='checkout_shipping' # First step of the checkout process
        ),
    #url(r'^checkout/pay/$', SelectPaymentView.as_view(), 
    #    name='checkout_payment' # Second step of the checkout process
    #    ),
    url(r'^checkout/pay/$', PaymentBackendRedirectView.as_view(), 
        name='checkout_payment' # First step of the checkout process
        ),
    url(r'^checkout/thank_you/$', ThankYouView.as_view(), 
        name='thank_you_for_your_order' # Second step of the checkout process
        ),
    # Products
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'
        ),
    url(r'^products/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'
        ),
예제 #5
0
from shop.views.checkout import (
    # SelectPaymentView,
    # SelectShippingView,
    CheckoutSelectionView,
    PaymentBackendRedirectView,
    ShippingBackendRedirectView,
    ThankYouView,
)

urlpatterns = patterns('',
    url(r'^checkout/$', CheckoutSelectionView.as_view(),
        name='checkout_selection'  # First step of the checkout process
        ),
    #url(r'^checkout/ship/$', SelectShippingView.as_view(),
    #    name='checkout_shipping'  # First step of the checkout process
    #    ),
    url(r'^checkout/ship/$', ShippingBackendRedirectView.as_view(),
        name='checkout_shipping'  # First step of the checkout process
        ),
    #url(r'^checkout/pay/$', SelectPaymentView.as_view(),
    #    name='checkout_payment'  # Second step of the checkout process
    #    ),
    url(r'^checkout/pay/$', PaymentBackendRedirectView.as_view(),
        name='checkout_payment'  # First step of the checkout process
        ),
    url(r'^checkout/thank_you/$', ThankYouView.as_view(),
        name='thank_you_for_your_order'  # Second step of the checkout process
        ),
    )