function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘billing_address_full’, ‘label’ => ‘Billing: All details’, ‘hover’ => ‘Custom Order field within functions.php’ ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_extend_order_fields’ ); function custom_woo_ce_extend_order( $order, $order_id ) { $order->billing_address_full = ”;…Continue reading
function custom_woo_ce_product_variation_pricing( $product, $pricing_args ) { if( $pricing_args[‘min_price’] $pricing_args[‘max_price’] ) { $product->price = woo_ce_format_price( $pricing_args[‘max_price’] ); $product->sale_price = woo_ce_format_price( $pricing_args[‘max_sale_price’] ); } return $product; } add_filter( ‘woo_ce_product_variation_pricing’, ‘custom_woo_ce_product_variation_pricing’, 10, 2 );Continue reading
function custom_woo_ce_override_get_order_assoc_refund_date_filter() { // Allow partial Order refunds to trigger the Refund Date column to be populated return true; } add_filter( ‘woo_ce_override_get_order_assoc_refund_date_filter’, ‘custom_woo_ce_override_get_order_assoc_refund_date_filter’ );Continue reading
function custom_woo_ce_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘order_items_static’, ‘label’ => __( ‘Order Items: Static Field’, ‘woo_ce’ ), ‘hover’ => __( ‘Custom Field within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_order_fields’ ); function custom_woo_ce_extend_order_item( $order_item…Continue reading
function custom_woo_ce_wc_price_decimal_sep( $output ) { // Change the decimal separator to be . (dot) $output = ‘.’; return $output; } add_filter( ‘woo_ce_wc_price_decimal_sep’, ‘custom_woo_ce_wc_price_decimal_sep’ ); function custom_woo_ce_wc_price_thousands_sep( $output ) { // Change the thousand separator to be , (comma) $output =…Continue reading
/* Plugin Name: WooCommerce – Store Exporter Deluxe (Custom Add-on) Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter-deluxe/ Description: Custom Add-on Plugin for Store Exporter Deluxe Version: 1.0 Author: Visser Labs Author URI: http://www.visser.com.au/about/ Text Domain: woocommerce-exporter License: GPL2 Text Domain: woocommerce-exporter Domain Path: /languages/…Continue reading
function custom_woo_pd_is_valid_product_type( $output, $product_type ) { // All strings are sanitized and in lowercase case without spacing // Set all Product Type values of “Variabile” to “Variable” if( $product_type == ‘variabile’ ) $output = ‘variable’; // Set all Product Type…Continue reading
function custom_woo_ce_force_refresh_epo_export_fields() { delete_transient( WOO_CD_PREFIX . ‘_extra_product_option_fields’ ); } add_action( ‘admin_init’, ‘custom_woo_ce_force_refresh_epo_export_fields’ );Continue reading
// Conditionally display a persistent notice on the Single Product screen function custom_woocommerce_before_main_content() { // Check that we are on the Single Product screen if( !is_product() ) return; $text = ‘Hi there, if you have any questions get in touch!’;…Continue reading
// Send a notification to Domoticz when a new Order is processing/completed function custom_woocommerce_order_status_completed_notification( $order_id = 0 ) { // Bail out if no Order ID has been provided if( empty( $order_id ) ) return; // Bail out if it’s…Continue reading