BEER SELL SHEETS

Open

Open

add_action('woocommerce_checkout_update_order_meta', 'add_referral_meta', 10, 1); function add_referral_meta($order_id){ update_post_meta($order_id, 'checkout_url', $_SERVER["HTTP_REFERRER"]); }