Results 1 to 3 of 3

Thread: How to add a Custom Coupon type to behave as coupon code NOT Promotion

  1. #1
    Thread Starter
    kohlisj's Avatar
    Join Date
    Jun 2014
    Location
    United States
    Posts
    23
    Thanks
    3
    Thanked 1 Time in 1 Post

    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.

  2. #2
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





  3. #3
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Always Show Lightbox when Coupon Type = Coupon code
    By fernaoguerra in forum Koupon
    Replies: 3
    Last Post: December 17th, 2013, 05:26 AM
  2. Promotion Coupon Type Now Working on 1 Post
    By proteinsupermarket in forum Report Clipper Bugs
    Replies: 1
    Last Post: March 21st, 2013, 10:42 AM
  3. promotion coupon code type opening in same window
    By 101wc in forum Report Clipper Bugs
    Replies: 0
    Last Post: August 6th, 2012, 10:07 AM
  4. promotion coupon type not working
    By djcfranse in forum Report Clipper Bugs
    Replies: 3
    Last Post: March 13th, 2012, 06:34 PM
  5. Replies: 2
    Last Post: October 18th, 2011, 07:55 PM