Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Imposing a minimum order value

    How can you restrict orders to be above a certain minimum order value ?

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Imposing a minimum order value

    Quote Originally Posted by irishshopper View Post
    How can you restrict orders to be above a certain minimum order value ?
    try this http://www.zen-cart.com/downloads.php?do=file&id=402

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Imposing a minimum order value

    Quote Originally Posted by irishshopper View Post
    How can you restrict orders to be above a certain minimum order value ?
    And by value you did mean total price amount correct? Not a minimum quantity of product? (The above plugin is for the first aspect.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Imposing a minimum order value

    Quote Originally Posted by irishshopper View Post
    How can you restrict orders to be above a certain minimum order value ?
    If it is a minimum quantity of product you require:
    In your admin -> catalog -> categories/products-> select your category -> select your product -> look for Product Qty Minimum: and enter your value.

    Hope that helps,

  5. #5
    Join Date
    Jul 2013
    Location
    Birmingham, UK
    Posts
    9
    Plugin Contributions
    0

    Default Re: Imposing a minimum order value

    Hi, the Minimum Order plugin mentioned above is great (as is everyone who posts replies here on this lovely forum, thankyou so much by the way) it works very nicely by preventing the 'Go to checkout' button working unless they have hit the minimum order value.

    But.. if I have the 'Checkout with paypal' module installed there is a button that will still take them out to pay pal to make their payment even though they are below the min order value.

    I was wondering, there probably is a way to get this button to also check before working
    but im not sure how (not good with code) anyone got an idea or fancy updating this plugin? Thank you in advance, George

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Imposing a minimum order value

    Quote Originally Posted by georgemurcott View Post
    But.. if I have the 'Checkout with paypal' module installed there is a button that will still take them out to pay pal to make their payment even though they are below the min order value.
    While PayPal doesn't like it when you do, you have the option to entirely turn off that "Express Checkout Shortcut Button" inside your Express Checkout module settings.

    Alternatively this might work too:
    edit /includes/modules/payment/paypal/tpl_ec_button.php and add the section shown here:
    Code:
      // cart contents qty must be >0 and value >0
      if ($_SESSION['cart']->count_contents() <= 0 || $_SESSION['cart']->total == 0) {
        $paypalec_enabled = false;
      }
    
    
      // enforce minimum order value
      if (defined('MIN_ORDER_AMOUNT') && MIN_ORDER_AMOUNT > 0 && $currencies->value($_SESSION['cart']->total, true, DEFAULT_CURRENCY) < MIN_ORDER_AMOUNT) {
        $paypalec_enabled = false;
      }
    
    
      // PayPal module cannot be used for purchase > $10,000 USD equiv
      if ($currencies->value($_SESSION['cart']->total, true, 'USD') > 10000) {
        $paypalec_enabled = false;
      }
    You'll need to re-add that customisation during any Zen Cart upgrades you do.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Imposing a minimum order value

    FYI This module is incorporated in Zen Cart core.

    Adjustments are made in Admin >> Configuration >> Minimum Values
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Imposing a minimum order value

    Time passed for edit. This mod is not included in the current version.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  9. #9
    Join Date
    Jul 2013
    Location
    Birmingham, UK
    Posts
    9
    Plugin Contributions
    0

    Default Re: Imposing a minimum order value

    Hi, this is a really late reply but thank you DrByte your suggestion worked perfectly. I didn't see your original reply but i have just re discovered this thread after upgrading to ZC 1.5.8a and your tweak worked brilliantly, the Checkout with paypal just appears by magic once the order is above the threshold set, thank you. And in case anyone else finds this helpful the minimum order quantity plugin being discussed here works fine with 158a and php 8.1

 

 

Similar Threads

  1. how to define minimum order value?
    By lina0962 in forum Setting Up Specials and SaleMaker
    Replies: 6
    Last Post: 4 Oct 2010, 06:25 PM
  2. How to set minimum order value?
    By candlesandsoaps in forum Managing Customers and Orders
    Replies: 4
    Last Post: 3 Jun 2010, 03:03 PM
  3. Minimum Order Value per Product
    By acater in forum Managing Customers and Orders
    Replies: 4
    Last Post: 15 Dec 2006, 10:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg