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?
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?
You could customize the functions_general.php in the function zen_get_buy_now_button and add the code in RED:
which would only allow products_id 12 to be purchased by customers_id 123 ...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;
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!