Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    108
    Plugin Contributions
    0

    Default Hold Item For Specific Customer Only

    I have a very good customer that needs me to hold an item from the store to ensure he is the one to order it. Is there a way to make this item available only to that customer?

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

    Default Re: Hold Item For Specific Customer Only

    You could customize the functions_general.php in the function zen_get_buy_now_button and add the code in RED:
    Code:
        switch (true) {
    // limit products_id 12 to customers_id 123
        case ($product_id == '12' && $_SESSION['customer_id'] != 123):
          $return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . 'LIMITED PRODUCT' . '</a>';
          break;
    // cannot be added to the cart
        case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
          return $additional_link;
          break;
    which would only allow products_id 12 to be purchased by customers_id 123 ...
    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!]
    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!

 

 

Similar Threads

  1. v139h Display Specific Categories for a logged in Customer Only
    By swilliams88 in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 20 Feb 2014, 02:40 PM
  2. Replies: 0
    Last Post: 29 Sep 2012, 09:05 AM
  3. Only Show/Offer Item if Specific Dollar Amount is Purchased?
    By Rick5150 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Jul 2012, 08:25 PM
  4. Display Specific Categories for a logged in Customer Only
    By JCJXXL in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 16 Mar 2012, 02:11 AM
  5. coupon for specific item only?
    By w2e in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 9 Nov 2007, 07:41 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