How to add a Custom Coupon type to behave as coupon code NOT Promotion
I have added a new custom post type with the name "code_and_printable". but this behaves like a offer with no code or printable. So i added a fresh case statement in theme-functions.php which handles "code_and_printable" case. So now it does show the coupon as coupon code with the code hidden. But when I click the "Show Coupon" label it does open the page in new window(without popup) as a normal promotion so it is not behaving has a code, instead it still behaves as a promotion. After some research i found that is it due to a class on the main div of the hentry which should be "coupon_type-coupon-code" for the coupon code whereas in this case it is "coupon_type-code_and_printable".
Can you please let me know if there a way i can add an extra class to the div or even change the class of the div to "coupon_type-coupon-code" or is there a place i can change the jquery to open popup in case of this new coupon type.