Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brian

    (@brianjessee)

    Matt,

    Right now there is a hook you can use to put coding into the <head> of the print template.

    As for more modifications or a complete custom template in a theme so it does not get overwritten is on my list to do, but not coded yet. I am working on it though, but there is no timetable.

    What edit did you make? Maybe it is something I can include as an option.

    Thanks for using the Coupon Creator.

    Brian

    Thread Starter Matt Scheidler

    (@matt6303)

    Brian,

    Thanks for the quick reply.

    What I did was delete lines 70-74 of single-coupon.php to remove the if statement regarding the coupon image, and then changed the cctor_deal div to look like this:

    <div class="cctor_deal">
    <img class='cctor_coupon_image' src='<?php echo $couponimage; ?>' alt='' title=''><?php echo get_post_meta($post->ID, 'cctor_description', true);  ?>
    </div>

    This allows me to have an image uploaded in the UI to be shown alongside the “deal” text, instead of having to upload an image in the Media Library and then using an img tag in HTML in the ‘terms’ box.

    It works exactly as I intended – the business owner can create their own coupons, with images, with no HTML knowledge needed. It would be great to either have this as an option in your UI, to have a photo (or company logo) inset in the coupon rather than the image being a self-contained coupon overriding all other details.

    Plugin Author Brian

    (@brianjessee)

    Matt,

    Thanks for sharing the coding.

    I am working on more advance features and see if I can add in your ideas to them as well.

    I do not have a timetable though for anything, but hopefully by the next version.

    Thanks

    Brian

    Thread Starter Matt Scheidler

    (@matt6303)

    Brian,

    Thank you for your consideration of coding in the option of making the image a portion of the coupon rather than becoming the coupon, and/or allowing for custom layout templates to override your standard template. Either way will accomplish what I’m looking for and I’m sure others could benefit as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom single-coupon template’ is closed to new replies.