Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Stop products from being added to cart.

Locked

Started by distraub on 15 Sep 2008, 1:06 PM · Views: 1,372

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

Post #1 by distraub

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

Post #2 by fairestcape

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

Post #3 by distraub

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

Post #4 by ajeh

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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!