Example #1
0
from django.conf.urls import patterns, url

from shop.views.cart import CartDetails, CartItemDetail


urlpatterns = patterns('',
    url(r'^delete/$', CartDetails.as_view(action='delete'),  # DELETE
        name='cart_delete'),
    url(r'^item/$', CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^$', CartDetails.as_view(), name='cart'),  # GET
    url(r'^update/$', CartDetails.as_view(action='put'),
        name='cart_update'),

    # CartItems
    url(r'^item/(?P<id>[0-9]+)$', CartItemDetail.as_view(),
        name='cart_item'),
    url(r'^item/(?P<id>[0-9]+)/delete$',
        CartItemDetail.as_view(action='delete'),
        name='cart_item_delete'),
)
Example #2
0
from django.conf.urls.defaults import url, patterns

from shop.views.cart import CartDetails, CartItemDetail


urlpatterns = patterns('',
    url(r'^cart/delete/$', CartDetails.as_view(action='delete'),  # DELETE
        name='cart_delete'),
    url('^cart/item/$', CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^cart/$', CartDetails.as_view(), name='cart'),  # GET
    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'),
    url('^cart/item/(?P<id>[0-9A-Za-z-_.//]+)/delete$',
        CartItemDetail.as_view(action='delete'),
        name='cart_item_delete'),
)
Example #3
0
    url(
        r'^cart/delete/$',
        CartDetails.as_view(action='delete'),  # DELETE 
        name='cart_delete'),
    url(
        '^cart/item/$',
        CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^cart/$', CartDetails.as_view(), name='cart'),  # GET
    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/$',
        ShippingBillingView.as_view(),
        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
Example #4
0
from django.conf.urls import patterns, url

from shop.views.cart import CartDetails, CartItemDetail

urlpatterns = patterns(
    '',
    url(
        r'^delete/$',
        CartDetails.as_view(action='delete'),  # DELETE
        name='cart_delete'),
    url(
        r'^item/$',
        CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^$', CartDetails.as_view(), name='cart'),  # GET
    url(r'^update/$', CartDetails.as_view(action='put'), name='cart_update'),

    # CartItems
    url(r'^item/(?P<id>[0-9]+)$', CartItemDetail.as_view(), name='cart_item'),
    url(r'^item/(?P<id>[0-9]+)/delete$',
        CartItemDetail.as_view(action='delete'),
        name='cart_item_delete'),
)
Example #5
0
from django.conf.urls.defaults import url, patterns

from shop.views.cart import CartDetails, CartItemDetail

urlpatterns = patterns(
    '',
    url(
        r'^delete/$',
        CartDetails.as_view(action='delete'),  # DELETE
        name='cart_delete'),
    url(
        '^item/$',
        CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^$', CartDetails.as_view(), name='cart'),  # GET
    url(r'^update/$', CartDetails.as_view(action='put'), name='cart_update'),

    # CartItems
    url('^item/(?P<id>[0-9A-Za-z-_.//]+)$',
        CartItemDetail.as_view(),
        name='cart_item'),
    url('^item/(?P<id>[0-9A-Za-z-_.//]+)/delete$',
        CartItemDetail.as_view(action='delete'),
        name='cart_item_delete'),
)
Example #6
0
    
    #Home
    url(r'^$', ShopTemplateView.as_view(template_name="shop/welcome.html"),
        name='shop_welcome'),
    
    # Cart
    url(r'^cart/delete/$', CartDetails.as_view(action='delete'), # DELETE 
        name='cart_delete'),
    url('^cart/item/$', CartDetails.as_view(action='post'), # POST
        name='cart_item_add' ),
    url(r'^cart/$', CartDetails.as_view(), name='cart'), # GET
    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/$', 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
    #    ),
Example #7
0
 ),
 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
     ),
Example #8
0
    (r'^ship/', include('shop.shipping.urls')),
    
    #Home
    url(r'^$', ShopTemplateView.as_view(template_name="shop/welcome.html")),
    
    # Cart
    url(r'^cart/delete/$', CartDetails.as_view(action='delete'), # DELETE 
        name='cart_delete'),
    url('^cart/item/$', CartDetails.as_view(action='post'), # POST
        name='cart_item_add' ),
    url(r'^cart/$', CartDetails.as_view(), name='cart'), # GET
    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/ship/$', SelectShippingView.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
        ),
    
    # Products
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'
        ),
Example #9
0
from django.conf.urls.defaults import url, patterns

from shop.views.cart import CartDetails, CartItemDetail


urlpatterns = patterns('',
    url(r'^$', CartDetails.as_view(), name='cart'),  # GET
    url(r'^delete/$', CartDetails.as_view(action='delete'),  # DELETE
        name='cart_delete'),
    url('^item/$', CartDetails.as_view(action='post'),  # POST
        name='cart_item_add'),
    url(r'^update/$', CartDetails.as_view(action='put'),
        name='cart_update'),

    # CartItems
    url('^item/(?P<id>\d+)/$', CartItemDetail.as_view(),
        name='cart_item'),
    url('^item/(?P<id>\d+)/delete/$',
        CartItemDetail.as_view(action='delete'),
        name='cart_item_delete'),
)
Example #10
0
from django.conf.urls import url

from shop.views.cart import CartDetails, CartItemDetail


urlpatterns = [
    url(r"^delete/$", CartDetails.as_view(action="delete"), name="cart_delete"),  # DELETE
    url(r"^item/$", CartDetails.as_view(action="post"), name="cart_item_add"),  # POST
    url(r"^$", CartDetails.as_view(), name="cart"),  # GET
    url(r"^update/$", CartDetails.as_view(action="put"), name="cart_update"),
    # CartItems
    url(r"^item/(?P<id>[0-9]+)$", CartItemDetail.as_view(), name="cart_item"),
    url(r"^item/(?P<id>[0-9]+)/delete$", CartItemDetail.as_view(action="delete"), name="cart_item_delete"),
]