Hello! I've come to a stump in the road when trying to develop my own WHMCS theme..
I've been trying to limit the client's cart so that they are only allowed to have one of the 6 total products. I'm also trying to limit a client's active services.. Let me explain a little more.
Basically I'm not sure how to limit a clients active services so that after they order one of the 6 products, and it sets as active, they cannot order another product from the 6 total products.
Also, to enforce this I'd like to limit the client's cart to only 1 item.. For example.. If they add item 1 to their cart, and try to add item 2 to their cart it'll replace the original with the new one item and not have both of them in the cart..
Let me know if this is possible, i'm really not sure how I could go about this.
P.S
-is there a way to "call" or "display" the number of items in the clients cart at that given time? I'm not sure if theres a smarty command as I couldn't find it in the documentation.
Thanks for reading!