problem with the vendors location

MultivendorX

Tagged: , ,

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #217429
      desarrollo
      Participant

      i have many vendors in my multivendorx plugin. there are in many locations. so when a person buy from different vendors i have to send the merch to a multiples citys. is there a way that if the person buys froms different vendors increase the total shipping price? or maybe a way to restrict the person to buy only in 1 vendor account. but the best solution is incrase the price if the person buy for more one vendor.

      can you help with this? maybe a code in the funtions.php?

    • #217455

      Hello @desarrolloThanks for getting in touch with us. Our replies are inline with your queries –
      –i have many vendors in my multivendorx plugin. there are in many locations. so when a person buy from different vendors i have to send the merch to a multiples citys. is there a way that if the person buys froms different vendors increase the total shipping price?
      >>With MultiVendorX the admin gets the option of handling the shipping himself or to let the vendors add and configure shipping from their end for their products. The admin just needs to enable the shipping module and then the vendors can add shipping methods, shipping costs etc. from their own dashboard.
      You can learn about different MultiVendorX modules from our knowledgebase doc here https://multivendorx.com/get-help/knowledgebase/shipping/.
      Now if given an option to vendors to configure shipping from their end then the shipping charges will be applied as set by the vendors. For example – Vendor A has added shipping cost $10 for his products for a particular zone and vendor B has added shipping cost of $15 then if a customer adds products from both Vendor A and Vendor B then he will have to pay shipping cost of $25.
      Now If you are looking for some other flow please do let us know so that we can assist you according to that.
      –or maybe a way to restrict the person to buy only in 1 vendor account.
      >>For this, you can simply follow this doc here https://multivendorx.com/docs/code-snippet/limit-cart-for-one-vendor/.
      Let us know if you need any further assistance.

    • #217469
      desarrollo
      Participant

      thank you, i am going to prove the boths ways.

      do you have a code to icrase de price of the shipping if the person choose more than 1 diferent vendor?

    • #217508

      @desarrollo, When the admin lets vendors set up their own shipping and they add shipping costs, and a customer buys products from different vendors, we show each vendor’s shipping prices in the cart and checkout, like this: http://tinyurl.com/2556ytr7.
      Now kindly let us know how you want the shipping prices to be displayed on your end. Some screenshots describing the requirement will be really helpful for us to understand the flow and help you accordingly.

    • #217598
      desarrollo
      Participant

      add_action(‘woocommerce_add_to_cart_validation’,’woocommerce_add_to_cart_validation’,10,3);
      function woocommerce_add_to_cart_validation($passed, $product_id, $quantity){
      foreach (WC()->cart->get_cart() as $cart_key => $cart_item ){
      $cart_vendor = get_mvx_product_vendors($cart_item[‘product_id’]);
      $product_vendor = get_mvx_product_vendors($product_id);
      if($cart_vendor && $product_vendor){
      if($cart_vendor->id != $product_vendor->id){
      $passed = false;
      wc_add_notice( __( ‘Another vendor product is already in your cart.’, ‘woocommerce’ ), ‘error’ );
      return $passed;
      }
      }
      }
      return $passed;
      }

      this code send my home page when i buy two diferent vendors, can be de advertence above of the page anywhere?, or going tu car y if they boy more than two vendors ,because the buyer can not see the advertence

    • #217607

      Hello @desarrollo, We have checked the code on our end and it works fine. After adding this code the cart gets limited to one vendor and after adding a product from one vendor if a user tries to add a product of another vendor they get an error message on their end accordingly(http://tinyurl.com/2abhnw2h).
      Now kindly let us know about the exact flow you are looking for on your end so that we can assist you according to that.

    • #219376

      Hello There, Its been long and we have not heard back from you. We presume your query is resolved now. We are closing this thread. If you need help or face issue on your end in future please do create a new support ticket.

Viewing 6 reply threads

The topic ‘problem with the vendors location’ is closed to new replies.