Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Stop products from being added to cart.

Stop products from being added to cart.

Locked

Views: 1,368

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Sep 2008, 1:06 PM
#1
distraub avatar

distraub

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Stop products from being added to cart.

Is there a away to stop a product to be added to the cart, besides giving an out of stock option. Here is my situation.

I am running a digital music store, where the products are albums, but in order for the user to be able to pick and choose individual tracks, I made each track a product attribute.

The problem I am having is someone can click on the product and select add to cart, before adding any tracks or the attribute for the full album. I would like to be able to pop up a message asking them to make a track or album selection, instead of adding a $0.00 item into their cart.

Can this be done easily?

Thank you,

-distraub

15 Sep 2008, 6:00 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Stop products from being added to cart.

You probably need to look at making the attributes "REQUIRED ATTRIBUTES".

There are many posts inb the forum on working with REQUIRED ATTRIBUTES.

When attributes are required, a product cannot be added to the cart until that required attribute has been selected.

17 Sep 2008, 1:01 PM
#3
distraub avatar

distraub

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: Stop products from being added to cart.

fairestcape:

You probably need to look at making the attributes "REQUIRED ATTRIBUTES".

Thanks for the reply, unfortuately I am still having trouble after reading the required attribute threads. I tried making the attributes required but I could still add the product to the cart without selecting an attribute.

Each song in my store is an attribute (checkbox) you can seleect multiple songs which makes sense. I would like to have a way to force the user to select one item , and if they try to add nothing to the cart pop up a message saying you must add an album or track.

Here is my product page.

http://s9sonline.com/store/index.php?main_page=product_music_info&cPath=1_3&products_id=6

please if you know of a way to do this, or could point me in the right direction that would be great.

17 Sep 2008, 5:52 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Stop products from being added to cart.

Unfortunately, you are using checkboxes for this and checkboxes do not have, at this time, any kind of testing done to ensure a selection has been made ...