ACFW – Fraud prevention on one-time coupons

add_action( ‘woocommerce_checkout_process’, function() { $coupon_code = ‘your_coupon_code’; $billing_phone = wc_clean( wp_unslash( $_POST[‘billing_phone’] ?? ” ) ); $billing_addr1 = strtolower( wc_clean( wp_unslash( $_POST[‘billing_address_1’] ?? ” ) ) ); if ( ! WC()->cart ) { return; } $applied = array_map( ‘wc_format_coupon_code’, WC()->cart->get_applied_coupons()…Continue reading

ALP – Fix missing custom order status options

add_filter( ‘lpfw_filter_get_settings_sections’, function( $response ) { $data = $response->get_data(); // Build options dynamically from all registered WooCommerce order statuses $status_options = array(); foreach ( wc_get_order_statuses() as $slug => $label ) { $status_options[] = array( ‘key’ => str_replace( ‘wc-‘, ”, $slug…Continue reading

Claude shop code

Shop All Products Gym wear, rugby designs & Celtic collections Category: All Gym Wear Rugby Designs Celtic Designs FeaturedPrice: Low to HighPrice: High to LowName: A to ZName: Z to ANewest First Loading products…Continue reading

Untitled Snippet

CV. ABIMACHINARY — Bengkel Maintenance & Mesin UMKM, Perkebunan & Pertanian Beranda Tentang Kami Layanan Produk Hubungi Kami Konsultasi CV. ABIMACHINARY — MALANG, JAWA TIMUR BENGKEL MAINTENANCE& READY MESIN UMKM, Perkebunan & Pertanian Kami melayani perbaikan dan perawatan mesin produksi,…Continue reading

Gravity Forms Hook — BOL Upload Triggers Capture

add_action( ‘gform_after_submission_5’, ‘wcv_dynamic_bol_capture’, 10, 2 ); function wcv_dynamic_bol_capture( $entry, $form ) { $order_id = null; $bol_file_url = null; foreach ( $form[‘fields’] as $field ) { $label = strtolower( trim( $field->adminLabel ?: $field->label ) ); if ( in_array( $label, array( ‘order…Continue reading

Untitled Snippet

{ “data”: [ { “action_source”: “system_generated”, “custom_data”: { “event_source”: “crm”, “lead_event_source”: “Your CRM” }, “event_name”: “Lead”, “event_time”: 1673035686, “user_data”: { “em”: [ “7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068” ], “lead_id”: 1234567890123456, “ph”: [ “6069d14bf122fdfd931dc7beb58e5dfbba395b1faf05bdcd42d12358d63d8599” ] } } ] }Continue reading