// Add the audio field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_audio_uploader’); function wcv_audio_uploader( ){ // Remove this check to have it show on sign up and settings pages. if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ Audio Uploader ‘; $value…Continue reading
// Add the image field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_image_uploader’); function wcv_image_uploader( ){ if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ Image Uploader ‘; $value = get_user_meta( get_current_user_id(), ‘_wcv_custom_settings_image_example’, true ); WCVendors_Pro_Form_Helper::file_uploader( array( ‘id’ => ‘_wcv_custom_settings_image_example’, ‘header_text’ => __(‘Image…Continue reading
// Add the document field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_doc_uploader’); function wcv_doc_uploader( ){ if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ ‘; echo ‘ Document Uploader ‘; $value = get_user_meta( get_current_user_id(), ‘_wcv_custom_settings_doc_example’, true ); WCVendors_Pro_Form_Helper::file_uploader( array( ‘id’ => ‘_wcv_custom_settings_doc_example’,…Continue reading
function wcv_wpkses_post_html_tags( $tags, $context ) { if ( ‘post’ === $context ) { $tags[‘iframe’] = array( ‘src’ => true, ‘height’ => true, ‘width’ => true, ‘frameborder’ => true, ‘allowfullscreen’ => true, ); } return $tags; } add_filter( ‘wp_kses_allowed_html’, ‘wcv_wpkses_post_html_tags’, 10,…Continue reading
// PAID MEMBERSHIPS PRO — UPGRADE TO VENDOR, DOWNGRADE TO SUBSCRIBER /* Members signing up for membership level #1 get “Vendor” role. Members signing up for membership level #2 get “Vendor” role. Members cancelling are given the customer role. Admin…Continue reading
/** * @snippet Exibe preços (Parcelado e com desconto a vista), na página do produto e no looping do produto. * @uthor Fernando Paglacci * @Website https://fernandopaglacci.com.br/snippets * @compatible WooCommerce 8 */ // Define as constantes para os valores dos…Continue reading
/** * Set the vendor’s store country to us. */ function wcv_set_vendor_country() { if ( function_exists( ‘set_time_limit’ ) ) { set_time_limit( 0 ); } $vendor_ids = get_users( array( ‘role__in’ => array( ‘vendor’, ‘pending_vendor’, ), ‘number’ => -1, ‘fields’ => ‘ids’,…Continue reading
add_action(‘woocommerce_before_add_to_cart_form’,’vendor_feedback_product_page’); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta(‘ID’); $vendor_shop = urldecode( get_query_var( ‘vendor_shop’ ) ); if ( ‘yes’ != WCVendors_Pro::get_option( ‘ratings_management_cap’ ) ) { echo WCVendors_Pro_Ratings_Controller::ratings_link( $vendor_id, true ); } }Continue reading
add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘wcv_override_vendor_shipping_label’, 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = ‘Flat-rate’; // cost; $hide_cost = ! $has_cost && in_array( $method->get_method_id(), array( ‘free_shipping’, ‘local_pickup’ ), true ); if ( $has_cost && ! $hide_cost ) { if ( WC()->cart->display_prices_including_tax()…Continue reading