My goal is to prevent adding a specific product to the cart if the cart is empty, and to pop up a message explaining why it can't be added. The item is not cost-effective to ship unless it is with something else, so there is a price, but no shipping cost.
The solution could be a module, or it might just be some code (for the specific product) so that when the add to cart button is clicked:
If the cart is empty, display "You must first have another item in your cart." - EXIT.
I realize that the customer could then remove everything except for the free-ship item, but there is already a note in the description stating that the item can only be purchased with another item (a note which customers miss or ignore) so cancelling an occasional order wouldn't be as big of a problem as the frequent orders are now.
The solution could be a module, or it might just be some code (for the specific product) so that when the add to cart button is clicked:
If the cart is empty, display "You must first have another item in your cart." - EXIT.
I realize that the customer could then remove everything except for the free-ship item, but there is already a note in the description stating that the item can only be purchased with another item (a note which customers miss or ignore) so cancelling an occasional order wouldn't be as big of a problem as the frequent orders are now.
Comment