|
|
@@ -42,7 +42,7 @@ class IndexView(AccountAuthView):
|
|
42
|
42
|
straight onto the next step. Otherwise, we provide options to login, register and
|
|
43
|
43
|
(if the option is enabled) proceed anonymously.
|
|
44
|
44
|
"""
|
|
45
|
|
- template_name = 'oscar/checkout/gateway.html'
|
|
|
45
|
+ template_name = 'checkout/gateway.html'
|
|
46
|
46
|
|
|
47
|
47
|
def get_logged_in_redirect(self):
|
|
48
|
48
|
return reverse('oscar-checkout-shipping-address')
|
|
|
@@ -136,7 +136,7 @@ class ShippingAddressView(CheckoutSessionMixin, FormView):
|
|
136
|
136
|
saved in the session and saved as a model when the order is sucessfully submitted.
|
|
137
|
137
|
"""
|
|
138
|
138
|
|
|
139
|
|
- template_name = 'oscar/checkout/shipping_address.html'
|
|
|
139
|
+ template_name = 'checkout/shipping_address.html'
|
|
140
|
140
|
form_class = ShippingAddressForm
|
|
141
|
141
|
|
|
142
|
142
|
def get_initial(self):
|
|
|
@@ -155,7 +155,7 @@ class ShippingAddressView(CheckoutSessionMixin, FormView):
|
|
155
|
155
|
if 'action' in self.request.POST and self.request.POST['action'] == 'ship_to':
|
|
156
|
156
|
# User has selected a previous address to ship to
|
|
157
|
157
|
self.checkout_session.ship_to_user_address(address)
|
|
158
|
|
- return HttpResponseRedirect(self.get_success_response())
|
|
|
158
|
+ return HttpResponseRedirect(self.get_success_url())
|
|
159
|
159
|
elif 'action' in self.request.POST and self.request.POST['action'] == 'delete':
|
|
160
|
160
|
address.delete()
|
|
161
|
161
|
messages.info(self.request, "Address deleted from your address book")
|
|
|
@@ -180,7 +180,7 @@ class UserAddressCreateView(CreateView):
|
|
180
|
180
|
This is not the same as creating a SHIPPING Address, although if used for the order,
|
|
181
|
181
|
it will be converted into a shipping address at submission-time.
|
|
182
|
182
|
"""
|
|
183
|
|
- template_name = 'oscar/checkout/user_address_form.html'
|
|
|
183
|
+ template_name = 'checkout/user_address_form.html'
|
|
184
|
184
|
form_class = UserAddressForm
|
|
185
|
185
|
|
|
186
|
186
|
def get_context_data(self, **kwargs):
|
|
|
@@ -204,7 +204,7 @@ class UserAddressUpdateView(UpdateView):
|
|
204
|
204
|
"""
|
|
205
|
205
|
Update a user address
|
|
206
|
206
|
"""
|
|
207
|
|
- template_name = 'oscar/checkout/user_address_form.html'
|
|
|
207
|
+ template_name = 'checkout/user_address_form.html'
|
|
208
|
208
|
form_class = UserAddressForm
|
|
209
|
209
|
|
|
210
|
210
|
def get_queryset(self):
|
|
|
@@ -243,7 +243,7 @@ class ShippingMethodView(CheckoutSessionMixin, TemplateView):
|
|
243
|
243
|
Shipping methods are domain-specific and so need implementing in a
|
|
244
|
244
|
subclass of this class.
|
|
245
|
245
|
"""
|
|
246
|
|
- template_name = 'oscar/checkout/shipping_methods.html';
|
|
|
246
|
+ template_name = 'checkout/shipping_methods.html';
|
|
247
|
247
|
|
|
248
|
248
|
def get(self, request, *args, **kwargs):
|
|
249
|
249
|
# Save shipping methods as instance var as we need them both here
|
|
|
@@ -297,7 +297,7 @@ class OrderPreviewView(CheckoutSessionMixin, TemplateView):
|
|
297
|
297
|
"""
|
|
298
|
298
|
View a preview of the order before submitting.
|
|
299
|
299
|
"""
|
|
300
|
|
- template_name = 'oscar/checkout/preview.html'
|
|
|
300
|
+ template_name = 'checkout/preview.html'
|
|
301
|
301
|
|
|
302
|
302
|
|
|
303
|
303
|
class PaymentDetailsView(CheckoutSessionMixin, TemplateView):
|
|
|
@@ -548,7 +548,7 @@ class ThankYouView(DetailView):
|
|
548
|
548
|
"""
|
|
549
|
549
|
Displays the 'thank you' page which summarises the order just submitted.
|
|
550
|
550
|
"""
|
|
551
|
|
- template_name = 'oscar/checkout/thank_you.html'
|
|
|
551
|
+ template_name = 'checkout/thank_you.html'
|
|
552
|
552
|
context_object_name = 'order'
|
|
553
|
553
|
|
|
554
|
554
|
def get_object(self):
|