• 1
  • 2
  • 3

Your information

Please provide information about yourself and why you are sending a message so we can quickly respond to your message appropriately.

Choose a division of interest:

Choose a reason:

The Details

If you are requesting a quote or sending files for a job, please give explicit instructions and details so that we can respond quickly with accurate information. If you've already spoken with someone at emediagroup about this job, please provide their name.

Common details to consider including for an accurate quote:

  • Quantity
  • Size
  • Substrate (Paper stock or material)
  • Colors (Black, Full Color, Multiple Spot Colors)
  • Finishing (fold, perf, emboss, foil stamp, etc)
  • Delivery (Pick-up or shipping)
  • In-hand date

The Content

For quote requests and job submissions, you can attach files here. It may be best to compress (zip) multiple files or collected output packages so you can upload one smaller file instead of many smaller files.

Files are not required to request a quote or for general inquiries. You can simply submit the form.

Drop files here or Click to select file.

M

Partner & Race Director Portal Guide

INTERNAL PLAYBOOK & ARCHITECTURE REFERENCE

Partner & Race Director Portal Guide (Option 1)

VIP Access Passcode Micro-Site + Automated WooCommerce Cart Discount

Overview & Live Status

Architecture
Option 1 (VIP Passcode Gate)
Live Proof-of-Concept
emediagrp.com/racefest/
WooCommerce Coupon
racefest26 (15% Off • ID 224894)
Portal Access Code
RACEFEST26 (case-insensitive)

What Has Been Autonomously Configured & Deployed

  1. WooCommerce Partner Coupon (racefest26):
    Created via WooCommerce REST API to provide a 15% discount across products.
  2. Dedicated Landing Page (/racefest/):
    Published at https://emediagrp.com/racefest/ (Page ID: 224895).

    • Gated by default: displays the VIP access card prompting for the event access code.
    • Interactive validation: entering RACEFEST26 (or visiting with ?code=RACEFEST26) reveals the curated storefront.
    • Includes a quick “Click to Auto-Fill & Unlock” button for fast testing.
    • Features 4 core endurance products with live images, specs, and discounted price calculations:
      • Elite Tyvek Runner Bib (7.5″ x 5.75″) (ID 979)
      • Competitor Tyvek Runner Bib (7.5″ x 7.5″) (ID 7525)
      • Express 2 Race Bibs Pack of 100 (ID 7543)
      • Race Day Safety Pins Box of 1,440 (ID 7689)
  3. Master CSS Architecture:
    Section 9 (.emg-partner-portal) added to master-custom-styles.css, and styles are also embedded directly in the page markup so it renders immediately without cache latency.
  4. Auto-Discount Code Snippet Prepared:
    Saved locally as partner-portal-auto-discount.php and included below for one-click copying into WPCode.

Optional Manual Steps (2 Quick Tasks)

Step 1: Set Page Template to “Blank Page” (For 100% White-Label Isolation)

By default, Divi displays the standard global header & footer on published pages. If you want this page to be 100% white-labeled with only the partner top bar and no main emediagroup menu:

  1. Go to WP Admin → Pages → All Pages.
  2. Click Edit on “RaceFest 2026 Partner Portal”.
  3. In the right-hand sidebar under Page Attributes, change Template from Default Template to Blank Page.
  4. Click Update.

Step 2: Activate Universal Auto-Coupon Snippet (In WPCode)

To ensure that any item added by a visitor who unlocked the portal automatically carries the 15% discount into the WooCommerce cart without typing a promo code:

  1. Go to WP Admin → Code Snippets → Add Snippet.
  2. Click Add Your Custom Code (New Snippet).
  3. Title: EMG Partner Portal Auto-Discount.
  4. Code Type: Select PHP Snippet.
  5. Copy the PHP snippet below and paste it into the Code Preview box.
  6. Insertion: Auto Insert, Location: Run Everywhere.
  7. Toggle the switch in the top right to Active and click Save Snippet.
partner-portal-auto-discount.php
/**
 * Title: EMediaGroup Partner Portal - Auto-Apply Partner Coupons
 * Description: Automatically binds and applies partner coupons (e.g. racefest26) to the WooCommerce cart when visiting via partner link or with active portal session cookie.
 * Author: emediagroup
 * Version: 1.3.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

add_action( 'template_redirect', function() {
    if ( is_admin() || ! function_exists( 'WC' ) || ! WC()->cart || WC()->cart->is_empty() ) {
        return;
    }

    $target_code = '';

    if ( ! empty( $_GET['partner_code'] ) ) {
        $target_code = sanitize_text_field( wp_unslash( $_GET['partner_code'] ) );
    } elseif ( ! empty( $_GET['coupon_code'] ) ) {
        $target_code = sanitize_text_field( wp_unslash( $_GET['coupon_code'] ) );
    } elseif ( ! empty( $_COOKIE['emg_partner_code'] ) ) {
        $target_code = sanitize_text_field( wp_unslash( $_COOKIE['emg_partner_code'] ) );
    }

    if ( empty( $target_code ) ) {
        return;
    }

    $target_code = strtolower( trim( $target_code ) );
    $applied     = array_map( 'strtolower', WC()->cart->get_applied_coupons() );

    if ( ! in_array( $target_code, $applied, true ) && ! WC()->cart->has_discount( $target_code ) ) {
        $coupon = new WC_Coupon( $target_code );
        if ( $coupon->get_id() ) {
            WC()->cart->apply_coupon( $target_code );
        }
    }
} );

How to Create Future Partner Pages in 2 Minutes

Whenever a new race director or reseller comes on board (e.g., emediagrp.com/greenville-marathon/):

  1. Create Coupon: Go to WooCommerce → Coupons → Add Coupon (e.g. gvlmarathon15, 15% discount).
  2. Duplicate Page: In Pages → All Pages, duplicate the RaceFest 2026 Partner Portal page using Duplicate Page.
  3. Update 3 Variables:
    • Change Page Title & Slug (e.g. /greenville-marathon/).
    • In the page content, search & replace RACEFEST26 with GVLMARATHON15 (and lowercase racefest26 / racefest where applicable).
    • Update event title/branding in the top header.
  4. Click Publish. Done!

0
0
Your Cart
Empty CartYour cart is emptyReturn to Shop