Send Product Data To Stripe

//add order details to Stripe payment metadata function filter_wcv_sc_payment_metadata( $metadata, $order, $source ) { $order_data = $order->get_data(); $metadata[‘Total Tax Charged’] = $order_data[‘total_tax’]; $metadata[‘Total Shipping Charged’] = $order_data[‘shipping_total’]; $count = 1; foreach( $order->get_items() as $item_id => $line_item ){ $item_data = $line_item->get_data();…Continue reading

Why ISO 4217 is Used for Google, Facebook, and Bing in XML Feeds (snippet 2)

//Google Feeds add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Google feeds from ISO4217 formatting return array_filter($feeds, function($feed) { return strpos($feed, ‘google_’) !== 0; }); }); //Facebook Feeds add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Facebook feeds from ISO4217 formatting return array_filter($feeds, function($feed)…Continue reading