// Output the custom ingredients as the last option on the general tab. add_action( ‘wcv_product_options_general_product_data’, ‘wcv_product_ingredients’ ); function wcv_product_ingredients( $object_id ){ WCVendors_Pro_Form_Helper::textarea( array( ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product_ingredients’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’…Continue reading
add_action(‘woocommerce_product_meta_start’, ‘wcv_ingredients’, 2); function wcv_ingredients() { $output = get_post_meta( get_the_ID(), ‘wcv_custom_product_ingredients’, true ); // Change wcv_custom_product_ingredients to your meta key echo ‘Ingredients: ‘ . $output . ”; }Continue reading
WCVendors_Pro_Form_Helper::input( array( ‘post_id’ => $post_id, ‘id’ => ‘post_title’, ‘label’ => __( ‘Product Name’, ‘wcvendors-pro’ ), ‘value’ => $product_title, ) );Continue reading
[wcv_membership_plans]Continue reading
ID, ‘_paystack_sub_account_code’, ‘ACCT_xxxxxxxxxxxxx’ ); ?>Continue reading
if ( wc_string_to_bool( get_option( ‘wcvendors_vendor_give_shipping’ ) ) ) { // Addd shipping fees to vendor total } else { // Add shipping total to marketplace split }Continue reading
public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach ( $vendors_due as $vendor_id => $products ) { $_vendor_account = get_user_meta( $vendor_id, ‘_paystack_sub_account_code’, true ); $sub_accounts[] = array( ‘subaccount’ => $_vendor_account, ‘share’ => $calculated_share,…Continue reading
$vendor_id = get_post_field( ‘post_author’, $post_id );Continue reading
$vendor_id = get_current_user_id();Continue reading
add_filter( ‘wcvendors_pro_dashboard_open_path’, ‘wcv_override_dashboard_open_path’ ); function wcv_override_dashboard_open_path( $path ){ $path = get_stylesheet_directory(). ‘/wc-vendors/partials/wcvendors-pro-dashboard-open.php’; return $path; }Continue reading