Example #1
0
 url(r'^cart/$',
     CartDetails.as_view(),
     name='cart'
 ),
 url(r'^cart/update/$',
     CartDetails.as_view(action='put'),
     name='cart_update'
 ),
 # 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
Example #2
0
     name='cart_delete_single'),
 url('^cart/item/$',
     CartDetails.as_view(action='post'),
     name='cart_item_add'),
 url(r'^cart/$', CartDetails.as_view(), name='cart'),
 url(r'^cart/update/$',
     CartDetails.as_view(action='put'),
     name='cart_update'),
 # 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(),