Category: eCommerce
CSS snipett
/* ===== VCLIP MEDIA CLONE – GLOBAL STYLES ===== */ :root { –primary: #2D5BE3; –primary-dark: #1A48C1; –secondary: #FF6B35; –dark: #1A1A2E; –light: #F8F9FA; –gray: #6C757D; –white: #FFFFFF; –shadow: 0 10px 30px rgba(0, 0, 0, 0.08); –radius: 10px; –transition: all 0.3s ease;…Continue reading
Perfume
Donation Fee Calculation
/** * 2. Calculate the exact Stripe Fee (2.9% + .30) if “Yes” is selected */ add_filter( ‘charitable_get_donation_amount’, function( $amount, $data ) { if ( isset( $data[‘cover_fee_choice’] ) && ‘yes’ === $data[‘cover_fee_choice’] ) { // Reverse math formula: (Amount +…Continue reading
Donation Fee Radio Field
/** * 1. Register the Required Yes/No Radio Field */ add_action( ‘init’, function() { if ( ! class_exists( ‘Charitable_Donation_Field’ ) ) return; $field = new Charitable_Donation_Field( ‘cover_fee_choice’, array( ‘label’ => __( ‘Would you like your donation to cover third-party credit…Continue reading
Donation Fee Radio Field
/** * 1. Register the Required Yes/No Radio Field */ add_action( ‘init’, function() { if ( ! class_exists( ‘Charitable_Donation_Field’ ) ) return; $field = new Charitable_Donation_Field( ‘cover_fee_choice’, array( ‘label’ => __( ‘Would you like your donation to cover third-party credit…Continue reading
META CONVERSIONS API (CAPI) — PURCHASE (SERVER-SIDE)
/** * ============================================================================= * VOELGOED — META CONVERSIONS API (CAPI) — PURCHASE (SERVER-SIDE) * ============================================================================= * – Captures fbp/fbc + IP + UA at checkout into order meta * – Sends Purchase via Conversions API when order is PAID (processing/completed)…Continue reading
META PIXEL BASE + MANUAL ADVANCED MATCHING (WooCommerce/WordPress)
/** * ============================================================================= * META PIXEL BASE + MANUAL ADVANCED MATCHING (WooCommerce/WordPress) * Pixel ID: * ============================================================================= * IMPORTANT: * – Remove any other hard-coded Meta Pixel base code (to avoid duplicates). * – Only run this if you have…Continue reading
Hide Selected Coupon Code (Name) in Notices + Classic Cart/Checkout Totals
if ( ! defined( ‘ABSPATH’ ) ) { exit; } if ( class_exists( ‘WooCommerce’ ) ) { add_action( ‘woocommerce_coupon_options’, ‘rd_wc_add_hide_coupon_code_field’, 10, 2 ); function rd_wc_add_hide_coupon_code_field( $coupon_id, $coupon ) { $current = get_post_meta( $coupon_id, ‘_rd_hide_coupon_code_public’, true ); woocommerce_wp_checkbox( array( ‘id’ =>…Continue reading
JS Tickera Auto Click (PassieVol)
// == Voelgoed Auto-Click Seating Map Button == // Priority: Vanilla JS -> jQuery (fallback) // Always ensures button is clicked once it appears, regardless of timing. (function() { var MAX_ATTEMPTS = 20; // Limit retries to avoid performance issues…Continue reading