示例#1
0
def inline_add_to_cart(request):
	if request.method == "POST":
		add_item(request)
		return view_cart(request)
示例#2
0
def add_to_cart(request):
	if request.method == "POST":
		item_id = add_item(request)
		i = Item.objects.get(pk=item_id)
		return store_homepage(request, i.store.id, ordered=True)