Adding multiple Custom Term Taxonomy to the Products export type

function custom_woo_ce_extend_product_fields( $fields ) { $fields[] = array( ‘name’ => ‘fruit’, ‘label’ => __( ‘Fruit’, ‘woo_ce’ ), ‘hover’ => __( ‘Fruit within functions.php’, ‘woo_ce’ ) ); $fields[] = array( ‘name’ => ‘vegetable’, ‘label’ => __( ‘Vegetable’, ‘woo_ce’ ), ‘hover’ =>…Continue reading

Add Price and Quantity details in Extra Product Option Order Item fields to the Orders export type

function custom_woo_ce_get_extra_product_option_value_formatting( $output, $tm_field, $order_item ) { $output = sprintf( __( ‘Value: %s’, ‘woocommerce-exporter’ ), $tm_field[‘value’] ) . “\n” . sprintf( __( ‘Price: %s’, ‘woocommerce-exporter’ ), woo_ce_format_price( $tm_field[‘price’] ) ) . “\n” . sprintf( __( ‘Quantity: %s’, ‘woocommerce-exporter’ ), $tm_field[‘quantity’]…Continue reading

Switch to alternate PHPExcel caching methods for large exports

function custom_woo_ce_export_phpexcel_caching_methods() { $cacheSettings = array( ‘memoryCacheSize ‘ => ‘8MB’ ); // Cache to phpTemp $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp; // Cache in memory; gzip // $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip; // Cache in memory; serialized // $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_serialized; // Cache in memory;…Continue reading

Override the time format set in %time% filename Tag

function custom_woo_ce_filename_tag_time( $time ) { // Override the time format and pass it back to the Store Exporter Deluxe $time = date( ‘Hi’, current_time( ‘timestamp’ ) ); return $time; } add_filter( ‘woo_ce_filename_tag_time’, ‘custom_woo_ce_filename_tag_time’ );Continue reading

Strip Shortcodes and Visual Composer markup from the Order Items: Description export field

function custom_woo_ce_get_order_items( $order_items, $order_id ) { foreach( $order_items as $key => $order_item ) { // Remove WordPress shortcodes from Order Items: Description $order_items[$key]->description = strip_shortcodes( $order_item->description ); // Remove Visual Composer markup from Order Items: Description $order_items[$key]->description = preg_replace(“~(?:\[/?)[^/\]]+/?\]~s”, ”,…Continue reading

Remove Shortcodes and Visual Composer markup from Description field in Product exports

function custom_woo_ce_extend_product_item( $product, $product_id ) { // Remove WordPress shortcodes from Description $product->description = strip_shortcodes( $product->description ); // Remove Visual Composer markup from Description $product->description = preg_replace(“~(?:\[/?)[^/\]]+/?\]~s”, ”, $product->description ); return $product; } add_filter( ‘woo_ce_product_item’, ‘custom_woo_ce_extend_product_item’, 10, 2 );Continue reading

Export all field data in uppercase characters

function custom_woo_ce_wp_specialchars_decode( $string = ” ) { // Force all characters, including accented characters to be uppercase $string = mb_strtoupper( $string, ‘UTF-8’ ); return $string; } add_filter( ‘woo_ce_wp_specialchars_decode’, ‘custom_woo_ce_wp_specialchars_decode’ );Continue reading