add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘remove_shipping_method_title’, 10, 2 ); function remove_shipping_method_title( $label, $method ){ $new_label = ”; if ( $method->cost > 0 ) { if ( WC()->cart->tax_display_cart == ‘excl’ ) { $new_label .= wc_price( $method->cost ); if ( $method->get_shipping_tax() > 0 && WC()->cart->prices_include_tax…Continue reading
/* WC Vendors Pro – My Custom Field */ function store_bank_details( ){ if ( class_exists( ‘WCVendors_Pro’ ) ){ $key = ‘_wcv_custom_settings_bankname’; $value = get_user_meta( get_current_user_id(), $key, true ); // Bank Name WCVendors_Pro_Form_Helper::input( array( ‘id’ => $key, ‘label’ => __( ‘Bank…Continue reading
/** * Add order status to the commissions table export */ function wcv_commission_export_columns( $columns ){ $columns[‘order_status’] = __(‘Order Status’,’wc-vendors’ ); return $columns; } add_filter( ‘wcv_commissions_export_columns’, ‘wcv_commission_export_columns’, 1 ); /** * Add the order status column data to the csv export…Continue reading
/** * Add order status to commissions table * * @param Array $columns array stored column names * @return Array $columns */ function wcv_custom_commissions_columns( $columns ) { $columns[‘order_status’] = __( ‘Order Status’, ‘wc-vendors’ ); return $columns; } add_filter( ‘wcvendors_commissions_columns’, ‘wcv_custom_commissions_columns’,…Continue reading
/** * Add custom columns label * * @param Array $columns array stored column names * @return Array $columns */ function custom_commissions_columns( $columns ) { $columns[‘id’] = __( ‘ID’, ‘wc-vendors’ ); return $columns; } add_filter( ‘wcvendors_commissions_columns’, ‘custom_commissions_columns’, 10, 1 );…Continue reading
add_filter( ‘wcv_commission_rate’, ‘my_wcv_custom_filter’, 10, 3 ); function my_wcv_custom_filter( $commission, $product_id, $product_price ) { return WCV_Commission::get_commission_rate( $product_id ); } add_filter( ‘wcv_commission_rate’, ‘my_wcv_commission_rate’, 10, 4 ); function my_wcv_commission_rate( $commission, $product_id, $product_price, $order ) { $per_item_addition = .3; //add $0.30 charge for each…Continue reading
add_action(‘wcvendors_settings_after_paypal’, ‘pv_add_custom_merchant_id_field’); function pv_add_custom_merchant_id_field() { ?>Continue reading
add_filter(‘woocommerce_login_redirect’, ‘login_redirect’, 10, 2); function login_redirect( $redirect_to, $user ) { // WCV dashboard — Uncomment the 3 lines below if using WC Vendors Free instead of WC Vendors Pro if (class_exists(‘WCV_Vendors’) && WCV_Vendors::is_vendor( $user->;ID ) ) { $redirect_to = get_permalink(…Continue reading