fixes
This commit is contained in:
parent
6ae1d3740c
commit
b086f576a8
@ -385,7 +385,9 @@ def select_delivery(request):
|
|||||||
|
|
||||||
def delivery(request):
|
def delivery(request):
|
||||||
try:
|
try:
|
||||||
|
if request.user.cart.address:
|
||||||
return HttpResponse('"'+request.user.cart.address+'"', status=200, content_type='application/json')
|
return HttpResponse('"'+request.user.cart.address+'"', status=200, content_type='application/json')
|
||||||
|
return HttpResponse("undefined", status=200, content_type='application/json')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return HttpResponse("undefined", status=200, content_type='application/json')
|
return HttpResponse("undefined", status=200, content_type='application/json')
|
||||||
|
|
||||||
|
@ -225,7 +225,9 @@ class Main extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
selectDelivery = () => {
|
selectDelivery = () => {
|
||||||
Packeta.Widget.pick("8599115769fd895b", this.selectDeliveryCallback.bind(this))
|
Packeta.Widget.pick("8599115769fd895b", this.selectDeliveryCallback.bind(this), {
|
||||||
|
language: "cs",
|
||||||
|
})
|
||||||
}
|
}
|
||||||
togglefaq(){
|
togglefaq(){
|
||||||
this.setState({faq: !this.state.faq});
|
this.setState({faq: !this.state.faq});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user