• Resolved Vivek Athalye

    (@vnathalye)


    Hello,

    I’m trying out WC Marketplace and have following queries / suggestions

    1. How do I change the page template for /vendor/* urls? Currently it uses Default Template but that’s not what I want. Let’s say, I want to use Full Width template.
    2. How is the tax calculation handled for following scenario:
      If vendor and buyer are from same state, X % tax is to be applied.
      If vendor and buyer are from different state, Y % tax is to be applied.
      Buyer is trying to buy 2 products, one from a vendor in same state and another from a vendor who is in different state.
      What are the considerations for defining the tax rates? Are there any code changes needed?
    3. Where can I get the API docs? (Like, I want to know how to get the vendor URL based on vendor / user ID and vice-versa. Which API should I use?)
    4. When some custom fields are added to vendor registration form, it would be expected that the user entered data gets associated with that user (vendor) and admin will be able to see that data while approving / rejecting the vendor request. Currently I could find that the data is getting displayed under Users > Vendor Application > Vendor Name. But that’s a bit obscure location and it’s not readily available for admin under ToDo section. Ideally I would have expected that data to be part of user profile that admin (and vendor as well) can view and edit.
      At least a link to View Vendor Application from ToDo section as well as User Profile would be helpful.
    5. From the vendor application page, if there is an attachment field, its forcing to download the attachment even though the file type was JPG/PNG. Ideally it will be good to open the attachment in new tab/window so that admin can view the file online (whenever possible).
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @vnathalye, thanks for reaching WCMp Support!!

    Our replies are inline :

    1. How do I change the page template for /vendor/* urls? Currently it uses Default Template but that’s not what I want. Let’s say, I want to use Full Width template.

    >> WC Marketplace by default provides three different templates for the vendor shop page. Admin can select them via WCMp >> Settings >> Vendor >> Vendor Dashboard.

    2. How is the tax calculation handled for following scenario:
    If vendor and buyer are from same state, X % tax is to be applied.
    If vendor and buyer are from different state, Y % tax is to be applied.
    Buyer is trying to buy 2 products, one from a vendor in same state and another from a vendor who is in different state.
    What are the considerations for defining the tax rates? Are there any code changes needed?

    >> WC Marketplace use WooCommerce;s tax flow. Hence, the tax will either be calculated as per customer’s address. So, admin has to define the tax rule for each state, you can follow the documentation here – https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/

    Now, if the admin sets that the tax will be calculated as per customer’s state, then at the time of checkout woocommerce will check the state of the customer and will apply the tax as per that.

    3. Where can I get the API docs? (Like, I want to know how to get the vendor URL based on vendor / user ID and vice-versa. Which API should I use?)

    >> I am afraid, we don’t have any such API doc. However, you can visit our GitHub repository to look into our codes:https://github.com/dualcube/dc-woocommerce-multi-vendor

    4. When some custom fields are added to vendor registration form, it would be expected that the user entered data gets associated with that user (vendor) and admin will be able to see that data while approving / rejecting the vendor request. Currently I could find that the data is getting displayed under Users > Vendor Application > Vendor Name. But that’s a bit obscure location and it’s not readily available for admin under ToDo section. Ideally I would have expected that data to be part of user profile that admin (and vendor as well) can view and edit.
    At least a link to View Vendor Application from ToDo section as well as User Profile would be helpful.

    >> We will soon launch the Beta version of WC Marketplace version 3.0. Here we are adding fields for Vendor Registration like Shop Description, Store address etc.
    In our next update, we will try to make the navigation more user-friendly.

    5. From the vendor application page, if there is an attachment field, its forcing to download the attachment even though the file type was JPG/PNG. Ideally it will be good to open the attachment in new tab/window so that admin can view the file online (whenever possible).

    >> We will definitely look into this and if possible we will add the option to display the file in our future update.

    Let us know if you have any further query.

    Thread Starter Vivek Athalye

    (@vnathalye)

    Thank you for your reply. But …

    WC Marketplace by default provides three different templates for the vendor shop page. Admin can select them via WCMp >> Settings >> Vendor >> Vendor Dashboard.

    I’m aware of these 3 templates and those are good. But these template control what is displayed inside #content div on the page. I’m talking about the overall page template. So in my specific case the default page template (page.php in theme folder) displays a sidebar, which I don’t want to show up on Vendor page. How do I do that? Is there an easy way / setting?

    WC Marketplace use WooCommerce;s tax flow. Hence, the tax will either be calculated as per customer’s address. So, admin has to define the tax rule for each state, you can follow the documentation here – https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/

    Now, if the admin sets that the tax will be calculated as per customer’s state, then at the time of checkout woocommerce will check the state of the customer and will apply the tax as per that.

    I’ll go through that document again but here is my understanding:

    In single vendor scenario: if my shop is located in a state ABC, then I define 2 rates in a tax class. One for state ABC (say X %) and other for rest of the states i.e. * (say Y %). Here I’ve hardcoded ABC inside the tax rate because its the only vendor that we have. So when a customer places an order, his state will be compared against the hardcoded ABC (which is the state of the vendor) and then appropriate tax rate (X % / Y %) will be used for further calculation.

    In multi vendor scenario: I can not hardcode ABC in the tax rate because different vendors will be from different states. So how do I define the tax rate X % (which should get applied only if the vendor and buyer are from same state)?

    I am afraid, we don’t have any such API doc. However, you can visit our GitHub repository to look into our codes:https://github.com/dualcube/dc-woocommerce-multi-vendor

    Ok. Better I’ll go through the local copy of the code ??

    In our next update, we will try to make the navigation more user-friendly

    We will definitely look into this and if possible we will add the option to display the file in our future update.

    Thanks for consideration.

    Here are our replies :

    I’m aware of these 3 templates and those are good. But these template control what is displayed inside #content div on the page. I’m talking about the overall page template. So in my specific case the default page template (page.php in theme folder) displays a sidebar, which I don’t want to show up on Vendor page. How do I do that? Is there an easy way / setting?

    >> In order to remove the sidebar from the vendor shop page, override archive-product.php file in your current theme folder and remove sidebar if the page is vendor shop page. You can check if it is a vendor shop page using is_tax(‘dc_vendor_shop’) function.
    For reference how to override WooCommerce template file in theme folder please follow the link Template structure & Overriding templates via a theme.

    In multi vendor scenario: I can not hardcode ABC in the tax rate because different vendors will be from different states. So how do I define the tax rate X % (which should get applied only if the vendor and buyer are from same state)?

    >> Let me get in touch with our developer so that they can help with this flow, as the default flow will only calculate tax as per admin’s address or customer’s.

    p.s. The response might get delayed as our office is closed due to Holidays and we will reopen on 2nd January 2018

    Thread Starter Vivek Athalye

    (@vnathalye)

    In order to remove the sidebar from the vendor shop page, override archive-product.php file in your current theme folder and remove sidebar if the page is vendor shop page. You can check if it is a vendor shop page using is_tax(‘dc_vendor_shop’) function.

    Ok. Thanks. Will handle it that way.

    The response might get delayed as our office is closed due to Holidays and we will reopen on 2nd January 2018

    OOPS. 2nd Jan?? OK ??

    Thread Starter Vivek Athalye

    (@vnathalye)

    Let me get in touch with our developer so that they can help with this flow

    Did you get any update from your developers?

    @vnathalye Our team has received the flow, the best way to add the customs tax flow is create a tax table that will have tax price per state. Now at the checkout, you need to make sure the customer is logged in and fetch the state. Also, fetch the vendor’s state from vendor_id from the product_id. Then apply the tax rule as per your requirement.

    Thread Starter Vivek Athalye

    (@vnathalye)

    I’ll need some time to try that out. Will let you know if I face any issue.

    Thread Starter Vivek Athalye

    (@vnathalye)

    Regarding the tax calculation flow, I’ve opened a ticket on WooCommerce support forum couple of days back @ https://www.ads-software.com/support/topic/tax-calculation-based-on-customer-seller-address/.

    Hoping to get some answer there.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Few queries’ is closed to new replies.