In Easy Digital Downloads, by default the Checkout page uses the
page.php page template to generate the page. However, there are a few things you can do to customize the page.
Firstly, you can customize the layout of the checkout shopping cart by creating a template for it. In your theme create a folder called edd_templates and in there create a file called
checkout_cart.php. Copy into that file the code from here.
It might look a little daunting at first but play around with this file as it enables you to completely customize the shopping cart’s layout and design just like you would any other theme template file.
Recently when developing a site powered by Easy Digital Downloads, I wanted one of my products to display differently from the others in the store.
When this problem arises with pages, we can easily create a page template to solve the problem. However, when it comes to creating custom templates for other items such as posts and custom post types, we need a plugin. That’s where the incredible Custom Post Template plugin by Simon Wheatley comes in. By installing the plugin you can easily create templates for your posts, but what about for downloads? Also very easy due to the extensible nature of the Custom Post Template plugin.
Quick little snippet here that may come in hand. If you’d like to add support for excerpts for a download when using Easy Digital Downloads, just add the following code to your functions.php:
You’ll then see the Excerpt meta box appear on the edit screen for downloads! You can output it using <?php the_excerpt(); ?>.