Today's Web has become fertile soil for personal publishing. Not only is it easy to get your voice out...
Here's an article from our blog. This is a "permalink" page, which just means it's not going anywhere, in case you want to bookmark it or link to it from another site.
posted by Jay on December 28th, 2009
in on tech, e-junkie, ecommerce, javascript, website
In response to some requests, we’ve posted example HTML and Javascript code for making a “click to agree” checkbox work with E-Junkie “Add to Cart” links. Feel free to go right to the code and its explanation here: Click to Agree for E-Junkie: An Example.
For posterity, here’s more background:
The website we created for Common Craft is integrated with E-Junkie, who provides the cart / checkout pages for the sale of Common Craft’s video downloads. E-Junkie is a nice, hosted, shopping cart service that we’ve found to work well, in our experience using it with Common Craft.
On the Common Craft website, when someone wants to buy a video download, they click an “add to cart” link that then triggers a custom process we created, different than what’s standard with E-Junkie. (Click around this video page to see it in action.) That process includes the requirement that the buyer check a box indicating that they agree to Common Craft’s video licensing agreement.
A number of people have asked Common Craft (and us directly, as well), how we did this. And, we couldn’t find an example posted by anyone else, so we thought it’d be helpful to release an example based on the Common Craft code.
On the current Common Craft website, the code is actually very elaborate, because it’s part of a larger process tailored to the specific needs of the Common Craft website—to help buyers select the correct options (license, format, language, etc.) for the videos they are about to purchase.
But, we actually had created some E-Junkie-specific code for the old Common Craft website, that did simply what people were looking for: it required users to check a box prior to making a purchase (e.g., a “click to agree to our license agreement” checkbox).
So, the code example we’ve posted is a well-commented version of the simpler code we created for the old Common Craft website. Again, you can see the code and its explanation here: Click to Agree for E-Junkie: An Example.
Thanks to Lee and Sachi at Common Craft for allowing us to post this code!
Let us know (here, in the comments) if you have any questions!
add your own comments:
Or, if you'd like, you could leave a trackback from your own site.
...but your voice is heard, acknowledged,
and in many cases, responded to by interested intelligent readers who have found your work most likely because they sought it out and are happy to have found it.
—Biz Stone
Blogging: Genius Strategies
for Instant Web Content