An Interest In:
Web News this Week
- January 24, 2023
- January 23, 2023
- January 22, 2023
- January 21, 2023
- January 20, 2023
- January 19, 2023
- January 18, 2023
Some of Our Sources
- Web Designer Wall
- Fuel Your Creativity
- Naldz Graphics
- 24 Ways
- Design Modo
- Willems Lab
Before the holidays, I was in the market to pick up a new pair of dress pants. Like you, I was pressed for time juggling work, family and social obligations, so I leaned on a time-honored tradition of people with more programming knowledge than fashion sense. Buy the same pair of dress pants you have, but this time in a different color. Unfortunately, this was only the beginning of my journey and involved more of my technical skills than should have been required to buy a damn pair of slacks.
Since I already knew what pants I wanted, I headed to the multi-national clothing stores website. I quickly added the item in the color and size I wanted to my shopping cart. I started the checkout process by providing my first and last name. Then I was presented with one of those address fields that suggests a list of addresses you can select as you start typing. I clicked on the correct address, and it filled out the address, city, province and postal code fields for me, which I appreciated as it saved me some typing. Then I filled out my credit card information and clicked "Purchase".
The purchase failed, and the form reported that I needed to fill out my first or last name. Weird, thats literally the first thing I did, and visually, I could see my name in both of those fields, but whatever, I re-typed my name and clicked "Purchase" again.
It failed for a second time with the same error. At this point, I thought that it must be a problem with my ad blocker as it occasionally causes issues with shopping carts, even though your checkout experience should work even when your user has an ad blocker. So I disabled my ad blocker, refreshed the page, filled out the form again, and clicked on the "Purchase" button one more time.
Same. Damn. Error.
"The definition of insanity is doing the same thing over and over again and expecting a different result."
Digging into someone elses website
Now that I could reproduce the error with the ad blocker turned off, I formulated a theory of what was wrong with the site. I surmised that the input fields for first and last names must be a React Controlled Component that wasnt correctly updating React state with their input values. At least, that was my guess based on no evidence other than my twenty years of experience building for the web.
Am I being unreasonable?
Except there is, and it is called a Credit Card.
Credit cards are a real-life progressive enhancement success story. When credit cards were first introduced, they used these clunky carbon copy swiper machines to make a copy of your credit card number. You then signed the original receipt, which you got to keep with copies going to the store and the bank.
I told my daughter that this is how things used to work, and she looked at me like I was nuts. If you are of a certain age, you will fondly remember the chu-chunk sound these machines made.
Later on, a magnetic strip was added to reduce the paperwork needed to record the transaction. Then it was followed up by the chip and pin approach and finally where we are today with tap to pay. Credit cards have gotten progressively easier to use and more secure.
However, if something goes wrong with the tap-to-pay reader, you can always use chip and pin instead. Ive seen places drag out those old carbon copy swipers in some rare cases, like when the power is out.
Theyve got it figured out. Once you decide to give them money, they dont give you any reason not to spend it. So why do we give folks a reason to leave our websites without completing their purchase when we have a reasonable fallback?
Is this common?
Canadian Tire is one of my frequently visited retailers, especially during the pandemic. For those of you who are not familiar with Canadian Tire it is a big box store. It sells more than tires just like Wal-Mart sells more than just walls.
Taking a quick look at its checkout page, I see:
- Shopping cart information doesnt load when ad block is enabled
- Works with ad block enabled
- Works with ad block enabled
The above is unacceptable. Large code bundles correlate to longer load times. Longer load times lead to smaller conversion rates. Maybe major brands like these can afford to drive away customers but can you?
Where do we go from here?
Finally, if you are building an eCommerce site, think about building out HTML first to ensure that there is always a way for people to pay you. I hear thats an essential step in making money. If you are thinking about building a new site, why not give the HTML first framework, Enhance a spin?
Oh, and I never did buy those pants.