admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'deakee_nonce' ), ]); } // ── Helpers ─────────────────────────────────────────────────────────────── private function get_status() { $listing = get_option( 'deakee_listing', [] ); return $listing['status'] ?? 'none'; } private function get_listing() { return get_option( 'deakee_listing', [] ); } // ── Page render ─────────────────────────────────────────────────────────── public function render_page() { $listing = $this->get_listing(); $status = $listing['status'] ?? 'none'; $site_name = get_bloginfo( 'name' ); $site_url = get_bloginfo( 'url' ); ?>
✓ Partner Program

Reach Committed Buyers

List your exclusive coupon codes on Deakee. Your deals reach members who are actively looking to purchase.

GlobalPartner network
CuratedActive codes
InstantGo live

How it works

  • 📋 Apply with your brand info and logo
  • 🔍 Deakee reviews your application
  • 🎟️ Add your coupon codes after approval
  • 🚀 Go live on deakee.com

Apply to Partner with Deakee

Tell us about your brand. Our team reviews all applications within 2–3 business days.

Members click through to shop

Square PNG/JPG, min 200×200px

Shown under your brand name on Deakee

🎁
Partner bundle included: All approved partners get AutoStore Pro free — AI-powered product listing automation for Amazon, eBay, Etsy & AliExpress. Sent to your email on approval.

Applications reviewed within 2–3 business days · partners@deakee.com

⏳

Application Under Review

Your application has been submitted and is being reviewed by the Deakee team. We'll contact you at within 2–3 business days.

What happens next?
  • ✉️ Confirmation sent to your email
  • 🔍 Deakee reviews your brand, logo, and website
  • ✅ Once approved, you'll add your coupon codes here
  • 🚀 Your listing goes live on deakee.com

Questions? partners@deakee.com  ·  Withdraw application

✅ Application Approved!

Add Your Coupon Codes

Great news — has been approved. Now add up to 5 exclusive coupon codes for Deakee members.

render_coupon_card( 1, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML is built with escaped values inside the method. ?>

Codes will be reviewed and published within 24 hours

✅

Coupon Codes Submitted!

Your coupon codes have been received. Our team will review and publish them within 24 hours. You'll receive a confirmation email when you're live.

✓ Application approved ✓ Codes submitted ⏳ Publishing soon

Questions? partners@deakee.com

🎉

You're live on Deakee!

is visible to Deakee members.

View Your Deakee Listing →
✓ Listing active✓ Codes claimable✓ Partner Portal access

Need to update? partners@deakee.com  ·  Remove listing

Coupon 1 ) : ?>
style="font-family:monospace;font-weight:700;letter-spacing:1px;text-transform:uppercase">
>
'Brand name is required.' ] ); } if ( empty( $logo_url ) ) { wp_send_json_error( [ 'message' => 'Brand logo URL is required.' ] ); } if ( strlen( $description ) < 10 ) { wp_send_json_error( [ 'message' => 'Please provide a description (min 10 characters).' ] ); } $shop_data = [ 'name' => $partner_name, 'email' => get_option( 'admin_email' ), 'myshopify_domain' => parse_url( get_bloginfo('url'), PHP_URL_HOST ), 'platform' => 'woocommerce', ]; $result = Deakee_API::apply( $shop_data, [ 'partnerName' => $partner_name, 'website' => $website, 'logoUrl' => $logo_url, 'description' => $description, 'category' => $category, 'contactPhone' => $contact_phone, 'message' => $message, ]); if ( is_wp_error( $result ) ) { wp_send_json_error( [ 'message' => 'Could not reach Deakee servers. Please try again later.' ] ); return; } update_option( 'deakee_listing', [ 'partner_name' => $partner_name, 'contact_email' => get_option( 'admin_email' ), 'application_id' => $result['applicationId'] ?? null, 'status' => $result['status'] ?? 'pending', 'slug' => $result['slug'] ?? null, 'applied_at' => current_time( 'mysql' ), ]); wp_send_json_success( [ 'status' => $result['status'] ?? 'pending', 'message' => $result['message'] ?? 'Application submitted.', ]); } // ── AJAX: Step 2 — coupon listing ───────────────────────────────────────── public function handle_coupons() { check_ajax_referer( 'deakee_nonce', 'nonce' ); if ( ! current_user_can( 'manage_woocommerce' ) ) wp_die( 'Unauthorized' ); $listing = $this->get_listing(); $shop_domain = parse_url( get_bloginfo('url'), PHP_URL_HOST ); $codes = array_map( 'sanitize_text_field', (array)( $_POST['code'] ?? [] ) ); $descriptions = array_map( 'sanitize_text_field', (array)( $_POST['discount_description'] ?? [] ) ); $types = array_map( 'sanitize_text_field', (array)( $_POST['discount_type'] ?? [] ) ); $values = array_map( 'sanitize_text_field', (array)( $_POST['discount_value'] ?? [] ) ); $valid_untils = array_map( 'sanitize_text_field', (array)( $_POST['valid_until'] ?? [] ) ); $min_purchases = array_map( 'sanitize_text_field', (array)( $_POST['min_purchase'] ?? [] ) ); $availables = array_map( 'absint', (array)( $_POST['total_available'] ?? [] ) ); $terms_list = array_map( 'sanitize_textarea_field', (array)( $_POST['terms'] ?? [] ) ); $coupons = []; foreach ( $codes as $i => $code ) { if ( empty( $code ) ) continue; $coupons[] = [ 'code' => strtoupper( $code ), 'discountDescription' => $descriptions[ $i ] ?? '', 'discountType' => $types[ $i ] ?? 'percentage', 'discountValue' => $values[ $i ] ?? '', 'validUntil' => $valid_untils[ $i ] ?? null, 'minPurchase' => $min_purchases[ $i ] ?? null, 'totalAvailable' => $availables[ $i ] ?? 0, 'terms' => $terms_list[ $i ] ?? '', ]; } if ( empty( $coupons ) ) { wp_send_json_error( [ 'message' => 'At least one coupon code is required.' ] ); } $result = Deakee_API::submit_coupons( $shop_domain, 'woocommerce', $coupons ); if ( is_wp_error( $result ) ) { wp_send_json_error( [ 'message' => 'Could not reach Deakee servers. Please try again later.' ] ); return; } $listing['status'] = $result['status'] ?? 'coupons_submitted'; $listing['slug'] = $result['slug'] ?? ( $listing['slug'] ?? null ); update_option( 'deakee_listing', $listing ); wp_send_json_success( [ 'status' => $result['status'] ?? 'coupons_submitted', 'message' => $result['message'] ?? 'Coupon codes submitted.', ]); } // ── AJAX: remove listing ────────────────────────────────────────────────── public function handle_remove() { check_ajax_referer( 'deakee_nonce', 'nonce' ); if ( ! current_user_can( 'manage_woocommerce' ) ) wp_die( 'Unauthorized' ); delete_option( 'deakee_listing' ); wp_send_json_success(); } }