Search results for: admin
more feater
add_shortcode('product_features_boxes', function () { if (!function_exists('wc_get_product')) { return ''; } global $product; if (!$product || !is_a($product,…
Code for Call Tracking
In order to track click to calls.
ACFW – Invalidate coupons based on a product's custom meta field using Custom Cart Item Meta
If you want to manage the restriction visually inside the Advanced Coupons Cart Conditions panel, you…
BOGO Coupons to refer to original subtotal
When a BOGO coupon has a minimum spend (Usage Restriction) configured, applying the coupon can incorrectly…
Untitled Snippet
google.com, pub-9481928342352849, DIRECT, f08c47fec0942fa0
Including product tax to commission calculation
add_filter( 'wcvendors_commission_rate', 'wcv_calculate_commission_include_product_tax', 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product…
change the name of the Commission column
if ( ! function_exists( 'wcv_change_commission_table_columns_name' ) ) { /** * Change the name of the commission…
Hide “Everywhere Else” on the countries dropdown
if ( ! function_exists( 'wcv_hide_everywhere_else' ) ) { /** * Hide the "Everywhere else" option in…
Add CSS classes to apply for vendor label
/** * Add CSS class to apply for vendor label in a registration * * @param…
Force product type for all products
// Disable the product type drop down. add_filter('wcv_disable_product_type', function() { return true; } ); /** *…
Change the sold by label on the product archive
// Unhook WC Vendors method remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9 ); // Define new sold by…
Disable sold by link on checkout page
/** * Disable the sold by link on the checkout page */ add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2);…
Enable product images in vendor order email notifications
add_filter( 'wcvendors_vendor_order_items_args', 'wcv_enable_product_image_vendor_order_email' ); function wcv_enable_product_image_vendor_order_email( $order_item_args ){ $order_item_args['show_image'] = true; return $order_item_args; }
Add custom page to the vendor dashboard - custom menu link
add_filter( 'wcv_pro_dashboard_urls', 'custom_menu_link' ); function custom_menu_link( $pages ) { $pages[ 'custom_link' ] = array( 'slug' =>…