Posted on 9th, April 2013

Magento one page checkout bookmarklet

Ever needed to test a new payment module, or shipping rate? Hate going through the checkout multiple times? Well, I’ve put together this simple little bookmarklet:

javascript: (function(){
    document.getElementById("billing:company").value="Acme Corp";
    document.getElementById("billing:street1").value="Doe House";
    document.getElementById("billing:street2").value="Doe Road";
    document.getElementById("billing:city").value="Doe Town";
    document.getElementById("billing:region").value="Doe Region";
    document.getElementById("billing:postcode").value="DO33 3OD";
    function waitForBilling() {
        if(checkout.loadWaiting != false){
            return setTimeout(waitForBilling, 50);

To use, simply create a new bookmark, and enter the above code into the URL section of the bookmark and keep the bookmark in your bookmarks toolbar. Now, when you hit the first stage of the onepage checkout, click your bookmarklet. It will populate your fields, and progress you to the payment stage. Easy!

Word of warning: This bookmarklet is not perfect, and feel free to tailor the information contained, this has been put together for UK stores which doesn’t require a region (I entered dummy data anyway, but if you are for example a US user, you will need to change this value in relation to the states drop-down menu.)

Other solutions? yes, you could just create an account, and use that. However sometimes we need to test as a guest user.

Don’t want to skip shipping methods? Simply remove lines 16 – 23.

Ash Smith - Freelance Magento Developer

I'm Ash, a Magento 2 Developer @ Play Sports Network, keen cyclist and aspiring triathlete. With over eight years Magento experience!

Need a hand with something? Contact me