The template files of Easy Digital Downloads - Deals contain the markup and template structure for the front-end of your site. If you open these files you'll notice they all contain many hooks which will allow you to add / move content without having to edit the template files themselves. This method protects even further against any upgrade issues as the template files can be left completely untouched.


Alternatively, you can edit these files in an upgrade safe way through overrides. Simply copy it into a directory within your theme named /edd-deals, keeping the same file structure.


Example: To override Deals Home Page Template, copy: edd-deals/include/templates/deals-home.php to yourtheme/edd-deals/deals-home.php


The copied file will now override the Easy Digital Downloads - Deals default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.

The copied file will now override the Social Deals Engine default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.


The following template files can be found within the /edd-deals/includes/templates/ directory:


 Templates

  • deals-home.php
  • deals-single.php
  • butons/
    • button-big.php
    • button-small.php
  • home/
    • header.php
    • more-deals.php
    • home-header/
      • discount.php
      • excerpt.php
      • image.php
      • left.php
      • ratings.php
      • right.php
      • save.php
      • timer.php
      • title.php
      • value.php
    • more-deals/
      • discount.php
      • image.php
      • more-deals.php
      • navigation.php
      • no-deals.php
      • price.php
      • save.php
      • timer.php
      • title.php
      • value.php
  • single-deal
    • add-to-cart.php
    • avail-bought.php
    • available.php
    • bought.php
    • business-address.php
    • business-location-map.php
    • business-logo.php
    • business-title.php
    • business.php
    • dime-sale.php
    • discount.php
    • image.php
    • left.php
    • price.php
    • ratings.php
    • right.php
    • save.php
    • terms.php
    • timer.php
    • value.php
    • add-to-cart/
      • expired.php
      • purchase-button.php


These files contain the markup and template structure for the front-end (and HTML emails) of your store. If you want to edit one of these templates simply copy it into a directory within theme named /edd-deals, keeping the same file structure, e.g. move "/templates/deals-home.php" to "yourtheme/edd-deals/deals-home.php". The copied file will now override the Easy Digital Downloads - Deals Post default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customisations will be lost.