Zen Cart Logo
Forums / General Questions / How to set a special product for an order?

How to set a special product for an order?

Locked

Views: 674

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Oct 2009, 3:56 AM
#1
ghopper avatar

ghopper

New Zenner

Join Date:
Jan 2008
Posts:
39
Plugin Contributions:
0

How to set a special product for an order?

I want to set a special product which appears only one in one order.
the product is limited to be bought by one to one customer.

How to do it?

10 Oct 2009, 12:41 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set a special product for an order?

Can the Product be purchased once per Order or once per Customer?

For once per Order, set the Maximum to 1 ...

For once per Customer, you would need to customize the code to check the orders_products table to see if the products_id has been sold to the customer, and if so, turn off the Add to Cart/Buy Now button ...

This could be done in the button function to change its display based on the customer ...

Do customers have to login to your site to add to cart?

If not, then you need to also have a test to remove the product from the cart if it gets added before the customer is logged in and then test the cart for the product to see if it has already been purchased ...