Viewing posts for the category code
Django-Oscar has a pretty long checkout flow. Customers don't like that, and I don't need most of it anyway. So, I decided to contract it as much as possible.
10 June 2018, note: modeltranslation does not work on ipad! Oh no!
This one's going to be short. Want to let customers purchase stuff without signing up for a user account? Allow guest checkout by putting OSCAR_ALLOW_ANON_CHECKOUT = True
into settings.py! Done.
After yesterday's frustrating process, I took a long hike up Šehitluci to chill out. When I came back down this cool conservationist dude about to cycle across Europe taught me how to identify edible herbs in a garden gone wild and I ate them. Then, I googled "javascript how to click element after event". A few googles later, I'd cobbled together the right code. I am so relieved this turned out easy.
This is the story of how I thought I'd spend an hour or so, maybe two, fixing it so that when people press the "Place Order" button on the /preview
page, they get sent to the /thank-you
page. I started at around 10-11am. I sort of worked it out at around 11.25pm.