• Resolved OwnYou

    (@ownyou)


    for a few days I have been familiar with the possibilities of your plugin, and I have a few questions:

    1. Is it possible for the customer to receive a bank account of the vendor to whom the product was assigned after the purchase of the product and make a payment directly without the administrator and without providing any commission?
    2. Is it possible for the person who bought the product to receive the contact details of the vendor and the individual return terms to the specific vendor?
    3. If a customer purchases several products from different vendors, can they receive information about payment with an account number to each vendor and each vendor will receive a notification about the product purchase?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hi @ownyou, thanks for getting in touch with us.

    Our replies are inline :

    1. Is it possible for the customer to receive a bank account of the vendor to whom the product was assigned after the purchase of the product and make a payment directly without the administrator and without providing any commission?

    >> The checkout flow gets carried out by WooCommerce, hence by default it will show the admin’s bank account details.

    However, you can also show vendor’s bank account details. For this you have to do some custom code. If you need reffence of hook/filter, let us know.

    2. Is it possible for the person who bought the product to receive the contact details of the vendor and the individual return terms to the specific vendor?

    >> Yes, the vendor can add these parts. All the admin has to do is enable the “Enable Customer Support” option via WCMp >> Settings >> General. This will let the vendor add message via Dashboard >> Store Settings >> Policy. Customer can see these message within the email and order details.

    3. If a customer purchases several products from different vendors, can they receive information about payment with an account number to each vendor and each vendor will receive a notification about the product purchase?

    >> The customer can only see payment details of the admin. However, do you want the vendor to receive money instantly from checkout?

    Just to keep you posted, as per the current flow, when the order status will be Processing/Completed, the vendor will receive the new order email. Along with this, they can also see the order in their order view page.

    Let us know if you have any further query.

    Thread Starter OwnYou

    (@ownyou)

    “However, you can also show vendor’s bank account details. For this you have to do some custom code. If you need reffence of hook/filter, let us know.”

    can you write me what custom code and where should I paste?

    @ownyou, before sharing the code snippet, we just had a query.

    In order, you can have products from several vendors. Hence, they have their shipping and tax. Now, WooCommerce displays the total shipping and tax calculated on all the products.

    So, how will you let the customer know the exact shipping and tax amount of the corresponding vendors?

    Thread Starter OwnYou

    (@ownyou)

    Taxes will be the same everywhere. The shipment, I want the seller to determine individually, I can create individual shipping classes for each vendor.

    @ownyou, we understand that the vendor will set up their own shipping cost.

    Now, WCMp lets vendor add their own shipping cost and the shipping gets calculated as per that. But, in the New Order mail (that customer receives), it will show the total of the shipping cost, instead of individual shipping cost. (see this screenshot – https://prnt.sc/o1sy5h)

    Now, we will provide you the code to display the vendor’s bank details in this email. But how will you let them know how much the customer will pay to each vendor.

    Let us know if you have any further query.

    Thread Starter OwnYou

    (@ownyou)

    after purchase each product(+shipping) should have an account number assigned to the seller and an individual account number, if several sellers receive an e-mail with a list of products and assigned accounts

    @ownyou, so you want to display vendor’s account number here – https://prnt.sc/o25yri

    Thread Starter OwnYou

    (@ownyou)

    Yes

    @ownyou, our team is looking into this.

    They will get back to you on this thread.

    Thread Starter OwnYou

    (@ownyou)

    ok, thanks

    @ownyou add the follows code snippet in your active theme’s functions.php

    function order_vendor_bank_details($item_id, $item, $order){
        if('bacs' !== $order->get_payment_method()) return;
        $vendor = get_wcmp_product_vendors($item['product_id']);
        if(!$vendor) return;
        // Vendor BACS account fields shown on emails.
        $account_fields = array(
            'bank_name'      => array(
                    'label' => __( 'Bank', 'woocommerce' ),
                    'value' => $vendor->bank_name,
            ),
            'account_number' => array(
                    'label' => __( 'Account number', 'woocommerce' ),
                    'value' => $vendor->bank_account_number,
            ),
            'sort_code'      => array(
                    'label' => __( 'Bank code', 'woocommerce' ),
                    'value' => $vendor->aba_routing_number,
            ),
            'iban'           => array(
                    'label' => __( 'IBAN', 'woocommerce' ),
                    'value' => $vendor->iban,
            )
        );
        $account_html = '<a>'.$vendor->page_title.' Bank details</a><ul>';
        foreach ( $account_fields as $field_key => $field ) {
            if ( ! empty( $field['value'] ) ) {
                $account_html .= '<li class="' . esc_attr( $field_key ) . '">' . wp_kses_post( $field['label'] ) . ': <strong>' . wp_kses_post( wptexturize( $field['value'] ) ) . '</strong></li>' . PHP_EOL;
            }
        }
    
        $account_html .= '</ul>';
        echo $account_html;
    }
    add_action('woocommerce_order_item_meta_end', 'order_vendor_bank_details', 99, 3);
    Thread Starter OwnYou

    (@ownyou)

    thanks:)

    Thread Starter OwnYou

    (@ownyou)

    Now I have a problem with notification to the seller, he receives the order email, but email doesn’t show the order product amount, only the amount of commission, the entire amount goes directly to the seller branch, so the commission is set to 0 and now I have only shown the amount of 0 commission and shipping cost, can I set somehow that the seller receive information with the amount of the item instead of the commission information?

    Thread Starter OwnYou

    (@ownyou)

    up

    Hi @ownyou, as you have said ” the entire amount goes directly to the seller branch, so the commission is set to 0 “, are you sending the full amount of the product to the vendor?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘shopping directly from the vendor and excluding the commission’ is closed to new replies.