Forums / General Questions / once selected an item, cant select another in that category

once selected an item, cant select another in that category

Locked

Started by greybeard on 9 May 2007, 12:59 PM · Views: 1,102

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 May 2007, 12:59 PM
#1
greybeard avatar

greybeard

New Zenner

Join Date:
Mar 2007
Posts:
41
Plugin Contributions:
0

once selected an item, cant select another in that category

Hi,

I am building a kitchens webiste, and there are a few specifics im not sure how to go about implenting.

  1. First off, the customer has to choose a door style, they then choose the units to go with this. So i have set up a category for the doors, and they are all free, but i want to make it that once you have selected one, you cant add another one to the basket.

I also want to be able to add it the the basket and not have the quantity option.

  1. I dont want any of the actual units to be bought unless they have selected their door type.

Any help would be great

The site is currently at https://www.kitchenkings.co.uk/store if you need to get a basic idea of whats going on...

Cheers

Rob

9 May 2007, 1:53 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: once selected an item, cant select another in that category

If all the doors have the same master_categories_id you could test for if there is one in the cart ... if there is, turn off the add to cart on the doors ...

You can do this by editing the functions_general.php and adding a new case statement to the function zen_get_buy_now_button just above the default: ...

where if master_categories_id were 10 for the doors ...

    case ($_SESSION['cart']->in_cart_check('master_categories_id', 10) > 0):
      $return_button = 'ONLY ONE';
      break;
    default:

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!

9 May 2007, 3:12 PM
#3
greybeard avatar

greybeard

New Zenner

Join Date:
Mar 2007
Posts:
41
Plugin Contributions:
0

Re: once selected an item, cant select another in that category

Hi, thanks for the tip, just trying this now.

Have one more question though, how do i make it a buy it now button rather than the add to cart with the quantities?

Thanks

Rob

12 May 2007, 5:04 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: once selected an item, cant select another in that category

Set the Product up so that it hides the Quantity box ... :smile:

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!

14 May 2007, 10:41 AM
#5
greybeard avatar

greybeard

New Zenner

Join Date:
Mar 2007
Posts:
41
Plugin Contributions:
0

Re: once selected an item, cant select another in that category

Hi,

I got the buy it now button working, thanks for that. But i cant get the case code to function correctly...

Not sure what to do here, its a bit beyond what i have done before...

The store is at https://www.kitchenkings.co.uk/store and the code is set up for the category of the 'Choose A Style' but i can keep adding as many of the styles as i want...

Any ideas?

Thanks

Rob