Results 1 to 3 of 3

Thread: [Tutorial] "How to Disable APPTheme's Coupon Plugin For Membership Plans"

  1. #1
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts

    [Tutorial] "How to Disable APPTheme's Coupon Plugin For Membership Plans"

    Hello AppTheme Forum Members. Challenged by coming up for an answer to this post, I ended up creating this tutorial. This is tested on a fresh install with the latest WP V.3.5.2, and the latest version of the AppTheme's Coupon Plugin V. 1.02. **You will need to purchase the plugin for the Coupon Module to be present.

    Issue: Any App Theme with the feature of adding Membership Plans are all subject to the same coupon codes used for ad listings created within the same theme.
    Why Change this?: Many Members would like the ability to offer coupon codes for ad price discounts, while retaining their pre-set pricing for Membership Plans. This prevents coupons from being used to first lower the Membership Plan Price, and subsequently, lower the price on the ad price, over and above the set Membership Discounted Price Plan on the same posted ads.

    Here is an example: The site owner wants to give away a coupon code for new accounts to place a few free ads. The customer unknowingly, thinks the coupon is good for all site purchases and proceeds to first buy a membership plan before buying ads. Makes sense right? However, the site owner has already worked in his/her prices and discount incentives already and priced the membership plans accordingly. The owner figures, even though they have a coupon code for ads, they will make up the difference in discounts through membership plan sales.

    The customer has other plans as noted above. And has no idea the coupon code can't be used for membership plans, because your theme displays it with the above plugin activated on your website. Here is just one scenario. There are several others which can hurt your bottom line if you're not careful with the above pricing model.

    Standard Ad Price: $50.00
    Membership 50% Off Discount Plan Price: $50.00
    Coupon Code Value: $50.00

    Customer buys the Membership 10% Off Discount Plan with the above coupon. Final Price: $0.00 ($50.00 Coupon Value - $50 Membership 50% Off Discount Plan Price = $0.00 (As in no money for you.)

    Customer then receives a Membership 50% Off Discount Plan for FREE! (Why bother charging for Membership Plans if your coupons are going to allow the price being wiped out?).
    Then the customer continues using the Membership 50% Off Discount Plan along with the same coupon code.

    Standard Ad Price: $50.00
    Above Membership Plan Discount: $25.00
    Same above Coupon Value: $50.00
    Total for Ad Placed: $0.00 (As in no money for you again.)

    Fix:
    This will not affect your theme's ability to set coupon codes for ads, nor will it affect any other aspect of your themes or plugin functionality.

    1.) Open up the plugin folder. Locate the file named, "coupons.php".
    2.) Use your favorite html editor. You can also use NotePad++ for free and save the file with the extension, filename.php
    3.)
    Go to Line:175 and locate this code:

    Code:
    function appthemes_coupon_add_field(){
    ?>
    4. COPY and REPLACE with:

    Code:
    function appthemes_coupon_add_field(){    
        if ( $membership )
            return $membership->pack_membership_price;
    
    
        return 0;
    ?>
    5. SAVE and UPLOAD into the plugin folder (if on the server). Or SAVE in your plugin folder on your PC and upload as an alternative. Whichever you feel comfortable with.

    Conclusion: You now have a fully functional plugin, which will disallow the coupon code text box from displaying on the Membership Plan Purchase Review Page. And also disallow any hacking by looking at the source code of the membership plan order page.

    I encourage the continued programming of the APP Themes Coupon Plugin. I would like to see, the following Features added:


    • Two check boxes to optionally opt out on Membership Plan Purchases and vice versa for ad pricing.
    When in doubt: Read, Ask, Do. G+

  2. #2
    gundesvan's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: June 22nd, 2012, 10:52 AM
  2. Replies: 1
    Last Post: June 22nd, 2012, 10:52 AM
  3. Change" Share a Coupon" to "Submit a New Coupon"
    By peter1111 in forum Report Clipper Bugs
    Replies: 4
    Last Post: June 21st, 2012, 09:15 AM
  4. Replies: 1
    Last Post: March 12th, 2012, 09:08 AM
  5. [SOLVED] Disable "Share A Coupon" Button?
    By mattbye in forum Report Clipper Bugs
    Replies: 2
    Last Post: May 26th, 2011, 08:26 AM