Limiting the cart to a single item , based on item selected

General ShopSite user discussion

Limiting the cart to a single item , based on item selected

Postby bkgca » Sat Mar 28, 2015 11:38 am

We are looking at adding a particular item for sale for a limited time along with some other constraints.
So immediate attention can be paid to that order and item, we are trying to have it so that it doesn't get lost in the shuffle if an order has 30 other items on it.

Is there a way to set an item up in the store so that once selected, the cart is limited to that 1 item and no other items can be added to the cart ?

TIA
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Limiting the cart to a single item , based on item selec

Postby Jim » Sat Mar 28, 2015 1:55 pm

There is no way to do what you are trying to do built into ShopSite. You might be able to do something with javascript but it would probably be very difficult if not impossible. What happens is the special product is the 31st one in an order? Do you want to delete the other 30 products just so the shopper can get this one special one?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Limiting the cart to a single item , based on item selec

Postby bkgca » Sat Mar 28, 2015 1:59 pm

Jim wrote:There is no way to do what you are trying to do built into ShopSite. You might be able to do something with javascript but it would probably be very difficult if not impossible. What happens is the special product is the 31st one in an order? Do you want to delete the other 30 products just so the shopper can get this one special one?


Jim, tnx.
I hear ya, we figured we'd have to build the warning in the description.
But if shopsite can't - we can't do it in our shopsite, we'll have to figure out some other way.
tnx
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Limiting the cart to a single item , based on item selec

Postby robm » Sun Mar 29, 2015 3:56 pm

It would be pretty easy to use JavaScript in the CheckIt function to not allow the customer to proceed to checkout if the special item is in the cart and other items are also in the cart. You could have a JavaScript pop-up asking the customer to remove any other items besides X before checking out. This would require having ShopSite Pro -

Code: Select all
ns_count = 0;
 for(ns=0; ns<ss_sku.length; ns++){
    if(ss_sku[ns]=='XYZ' && number_products > 1 && button == "8"){
     alert("Please remove all other items besides XYZ before proceeding to checkout");
     return false;     
    }
 }



Rob
LexiConn
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: No registered users and 103 guests