Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60
  1. #1
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Minimum order for wholesale customers only.

    I am using the "Dual Pricing - Wholesale Pricing" module and want to set up a minimum order amount that only applies to customers in a wholesale group.

    I installed the Minimum Order contribution and it's working prefectly, now I just need to figure out how to exclude non wholesale customers.

    My thought was that this could be accomplished by editing the class.minimum_order_amount.php file and adding another if statement related to the customers wholesale group, but I can't seem to get it working.

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Minimum order for wholesale customers only.

    Does anyone have any suggestions for me?

  3. #3
    Join Date
    Apr 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Minimum order for wholesale customers only.

    I am interested in this information also.

    Thanks!

  4. #4

    Default Re: Minimum order for wholesale customers only.

    I am interested too. Please help!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Minimum order for wholesale customers only.

    There is an add-on for Minimum Order in the Downloads ...

    You could modify that with your wholesale identifier so that only those customers are looked at for this minimum order module ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6

    Default Re: Minimum order for wholesale customers only.

    Quote Originally Posted by Ajeh View Post
    You could modify that with your wholesale identifier so that only those customers are looked at for this minimum order module ...
    Can anyone explain how to do this? Thanks!!!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Minimum order for wholesale customers only.

    How are you identifying wholesale from retail customers?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8

    Default Re: Minimum order for wholesale customers only.

    I was hoping to use the minimum order mod on my wholesale group pricing only. Can this be accomplished?

  9. #9
    Join Date
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: Minimum order for wholesale customers only.

    PHP Code:
    <?php
    /**
     * class.minimum_order_amount.php
     *
     * @copyright Copyright 2005-2007 Andrew Berezin eCommerce-Service.com
     * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: config.minimum_order_amount.php 1.0.1 20.09.2007 0:06 AndrewBerezin $
     */

    /**
     * Observer class used to check minimum order amount
     *
     */
    class minimum_order_amount extends base {
      
    /**
       * constructor method
       *
       * Attaches our class to the ... and watches for 4 notifier events.
       */
      
    function minimum_order_amount() {
        global 
    $zco_notifier;
    //      $_SESSION['cart']->attach($this, array('NOTIFIER_CART_GET_PRODUCTS_START', 'NOTIFIER_CART_GET_PRODUCTS_END'));
        
    $zco_notifier->attach($this, array('NOTIFY_HEADER_END_SHOPPING_CART''NOTIFY_HEADER_START_CHECKOUT_SHIPPING''NOTIFY_HEADER_START_CHECKOUT_PAYMENT''NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION'));
      }
      
    /**
       * Update Method
       *
       * Called by observed class when any of our notifiable events occur
       *
       * @param object $class
       * @param string $eventID
       */
      
    function update(&$class$eventID) {
        global 
    $messageStack;
        global 
    $currencies;
        switch (
    $eventID) {
          case 
    'NOTIFIER_CART_GET_PRODUCTS_END':
          case 
    'NOTIFY_HEADER_END_SHOPPING_CART':
            if (
    $_SESSION['cart']->count_contents() > && $_SESSION['customers_whole'] == && MIN_ORDER_AMOUNT 0) {
              if(
    $_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
                
    $_SESSION['valid_to_checkout'] = false;
                
    $messageStack->add('shopping_cart'sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT$currencies->format(MIN_ORDER_AMOUNT)) . '<br />''caution');
              }
            }
            break;
          case 
    'NOTIFY_HEADER_START_CHECKOUT_SHIPPING':
          case 
    'NOTIFY_HEADER_START_CHECKOUT_PAYMENT':
          case 
    'NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION':
            if (
    $_SESSION['cart']->count_contents() > && $_SESSION['customers_whole'] == && MIN_ORDER_AMOUNT 0) {
              if(
    $_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
                
    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
              }
            }
            break;
          default:
            break;
        }
      }
    }
    ?>
    Replace your includes/classes/observers/class.minimum_order_amount.php
    With the above code. Use this ONLY if you have Dual Pricing - Wholesale Pricing installed.

  10. #10
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Minimum order for wholesale customers only.

    ok, I have a totally separate wholesale site. Is there a way to set up a minimum order there? would that mod work?

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. v150 Help with Minimum Order for Group Pricing Customers Only
    By philip937 in forum General Questions
    Replies: 5
    Last Post: 14 Oct 2013, 03:55 AM
  2. Need to have wholesale pricing with quantity discounts for wholesale customers only..
    By littleturtlemama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 16 Dec 2010, 04:47 AM
  3. Better Together extension for Wholesale Customers Only
    By point4design in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 28 Oct 2010, 11:49 PM
  4. Setting minimum order for check/money order only
    By coldspag in forum Managing Customers and Orders
    Replies: 0
    Last Post: 26 Nov 2008, 02:18 PM
  5. Need to have wholesale pricing with quantity discounts for wholesale customers only..
    By littleturtlemama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 29 Sep 2007, 10:01 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR