How to have wholesale customers get product at cost, with a minimum purchase amount

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • birdwaves
    Mini Mivite


    • Jun 2018
    • 82

    #1

    How to have wholesale customers get product at cost, with a minimum purchase amount

    Hi,
    I’m looking to create a price group for wholesale customers. I want to give them products at cost, and I want them to have to make a minimum purchase amount (in this case, $55).
    I only see product cost as an option if I choose the “legacy” option. But when I do that, I lose the “restrict to qualifying subtotal” option.
    Am I missing something here?do I need to purchase an add-on?
    thanks!
  • Nick
    Super Moderator











    • Dec 2011
    • 575

    #2
    Hello,

    Can you use the 'Product Discount' type then leave the discount at 0.00 but modify the 'Restrict to Qualifying Subtotal'?

    -Nick
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    • Beefy Nugget
      Mini Mivite



      • Oct 2017
      • 70

      #3
      We actually did something kinda like this but it was for the basket total. In order for wholesale to make a purchase with us they need to make a minimum order of $100. So what we did was have some code on the OCST, OPAY, OSEL pages that all sit at the absolute top of the page and kick the customer back to the BASK page if their order total is under $100. We also pass the error code on to the basket page for displaying the error message we want, in this case ws_min_err = 1 is "Wholesale accounts need a minimum total of 100, please increase your total to checkout" If you want something on a per item basis, just create a new custom product field called something like "Minimum Wholesale Quantity" and set the individual values. Then iterate over each item in the basket on the checkout pages and if any one is below the minimum then revert back to basket. From there just run the calculate again and set an error message with the list of products that need the quantity adjusted.

      This is the code we have on each checkout page
      Code:
      <mvt:if expr="g.is_wholesaler EQ 1 AND l.settings:basket:total LT 100">
          <mvt:assign name="l.header" value="miva_output_header('Location', l.settings:urls:bask:auto $ '?ws_min_err=1')" />
          <mvt:exit />
      </mvt:if>

      Comment

      • birdwaves
        Mini Mivite


        • Jun 2018
        • 82

        #4
        Originally posted by Nick View Post
        Hello,

        Can you use the 'Product Discount' type then leave the discount at 0.00 but modify the 'Restrict to Qualifying Subtotal'?

        -Nick
        Yes. but as I said, I lose the “restrict to qualifying subtotal” option. Right now I am going to see if I can use both a product discount and the legacy option.

        Thanks for your feedback!

        Comment

        • birdwaves
          Mini Mivite


          • Jun 2018
          • 82

          #5
          Originally posted by Beefy Nugget View Post
          We actually did something kinda like this but it was for the basket total. In order for wholesale to make a purchase with us they need to make a minimum order of $100. So what we did was have some code on the OCST, OPAY, OSEL pages that all sit at the absolute top of the page and kick the customer back to the BASK page if their order total is under $100. We also pass the error code on to the basket page for displaying the error message we want, in this case ws_min_err = 1 is "Wholesale accounts need a minimum total of 100, please increase your total to checkout" If you want something on a per item basis, just create a new custom product field called something like "Minimum Wholesale Quantity" and set the individual values. Then iterate over each item in the basket on the checkout pages and if any one is below the minimum then revert back to basket. From there just run the calculate again and set an error message with the list of products that need the quantity adjusted.

          This is the code we have on each checkout page
          Code:
          <mvt:if expr="g.is_wholesaler EQ 1 AND l.settings:basket:total LT 100">
          <mvt:assign name="l.header" value="miva_output_header('Location', l.settings:urls:bask:auto $ '?ws_min_err=1')" />
          <mvt:exit />
          </mvt:if>
          I will try this if the above doesn't work. Thanks!

          Comment

          • birdwaves
            Mini Mivite


            • Jun 2018
            • 82

            #6
            The above didn't work. I'm still in the hunt...

            Comment

            • Kent Multer
              Mega Mivite









              • Mar 2006
              • 3251

              #7
              I have a small utility module that can probably solve this puzzle. You can PM or email me. so we can discuss it and make sure the module will work for you.
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment

              Working...
              X