• Stay in touch. Sign up for the 9seeds newsletter.
  • New Plugin: Genesis Simple Headers

    Earlier this week I was installing some of the Genesis child themes (aff link) on a WordPress multi-site network. I quickly realized that I had a problem on my hands. If more than one site wanted to use the same theme, they wouldn’t be able to use a custom logo because uploading the logo to the theme directory would make it the only logo available for all network sites using the same theme. So, I spent spent some time retrofitting half a dozen themes to use the WordPress headers functionality to replace the logo on each individual site.

    Then it dawned on me… Why not just build this as a plugin? That was, of course, followed immediately with “why didn’t I think of that first?”

    Obviously, if you are running a single site you can simply FTP in and upload the file to your server. But, if you have clients who you’d like to keep away from FTP and make it simple for them to upload a new header once a day (if they so choose), then the Genesis Simple Headers plugin will do the trick.

    You can Download Genesis Simple Headers here.

    To install, download the plugin, unzip it and upload the entire ‘genesis-simple-headers’ folder to your /wp-content/plugins/ folder. Then activate it from the WordPress plugins menu. It requires that you have Genesis 1.5 installed and if you aren’t currently using a Genesis child theme, this plugin is totally useless.

    Once it’s installed, go to the Appearance tab and click the Headers menu option. You will be given the opportunity to upload a file to replace the logo. The page will also tell the size of the image to upload (if you upload a different sized image, you’ll be asked to crop the image prior to saving).

    All current Genesis Child Themes are handled in this plugin with the following two exceptions
    - Prose: The functionality is built in to that child theme already.
    - Family Tree: I’ll add this one when I can figure out how best to go about it.

    Let me know what you think of the plugin!

    Cheers!

    Paypal Express Checkout and Credit Cards

    I have found hundreds if not thousands of posts on the Internet at large saying that Paypal won’t let customers use credit cards if they don’t have a Paypal account if you’ve integrated your cart using Express Checkout.

    OK, that’s a bit of hyperbole. It probably wasn’t hundreds but it was enough that while initially searching for a solution, I took it as gospel that is just wasn’t possible.

    Then, when attempting to convert WP Event Ticketing to use Web Payments Standard and hitting some snags, it took me almost an hour to hit upon the correct combination of words while searching Google that led me to this post.

    The relevant information is this

    It appears that some of the confusion surrounds the myth that Express Checkout requires users to have a PayPal account to make payment. This is patently untrue. To allow credit card payments without creation of a PayPal account set SOLUTIONTYPE to Sole in the SetExpressCheckout api call. To change the first page of the Express Checkout flow from a PayPal login page to both a credit card form AND a paypal login form set LANDINGPAGE to Billing in the SetExpressCheckout api call.

    That’s all there is to it. The relevant bit of my code went from this

    $nvp = array('PAYMENTREQUEST_0_AMT' => $total,
            "RETURNURL" => $returnsite,
            "CANCELURL" => $returnsite,
            "PAYMENTREQUEST_0_PAYMENTACTION" => 'Sale',
            "PAYMENTREQUEST_0_CURRENCYCODE" => 'USD'

    to

    $nvp = array('PAYMENTREQUEST_0_AMT' => $total,
            "RETURNURL" => $returnsite,
            "CANCELURL" => $returnsite,
            "PAYMENTREQUEST_0_PAYMENTACTION" => 'Sale',
            "PAYMENTREQUEST_0_CURRENCYCODE" => 'USD',
            "SOLUTIONTYPE" => 'Sole',
            "LANDINGPAGE" => 'Billing'

    That’s all there is to it. Customers are now faced with either using their credit cards or using their Paypal account while checking out.

    Tonight we are releasing WP Event Ticketing version 1.2.2 which gives your buyers the option to purchase tickets with a credit card without requiring them to have a Paypal account.