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

// Force localization for all feeds add_filter(‘adt_product_feed_localize_price_args’, function($args) { $args[‘decimal_separator’] = ‘.’; $args[‘thousand_separator’] = ‘,’; return $args; }); 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; }); });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

How To Translate Wholesale Price Text

add_filter( ‘wwp_filter_wholesale_price_title_text’ , ‘my_filter_wholesale_price’, 99 , 1 ); function my_filter_wholesale_price ( $titleText ) { $settingTitleText = __(‘Wholesale Price:’, ‘woocommerce-wholesale-prices-premium’); return $settingTitleText; }Continue reading

How To Change The Wholesale Price Text On The Front End

add_filter(‘wwp_filter_wholesale_price_title_text’, ‘override_wholesale_text’, 10, 1); function override_wholesale_text($wholesaletext) { global $current_user; if (isset($current_user) && class_exists(‘WWP_Wholesale_Roles’)) { $wwp_wholesale_roles = WWP_Wholesale_Roles::getInstance(); $wwp_wholesale_role = $wwp_wholesale_roles->getUserWholesaleRole(); if (!empty($wwp_wholesale_role) && in_array(‘wholesale_customer’, $wwp_wholesale_role)) { // Where ‘wholesale_customer’ is the name of the wholesale role you want to target…Continue reading