Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Posts
    41
    Plugin Contributions
    0

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

    2. 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 www.kitchenkings.co.uk/store if you need to get a basic idea of whats going on...

    Cheers

    Rob

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    PHP Code:
        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!

  3. #3
    Join Date
    Mar 2007
    Posts
    41
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Set the Product up so that it hides the Quantity box ...
    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!

  5. #5
    Join Date
    Mar 2007
    Posts
    41
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. v151 Can purchase item that has had category disabled....
    By mwray in forum General Questions
    Replies: 9
    Last Post: 4 Jul 2013, 02:16 AM
  2. Add attributes only once shopper has selected another attribute
    By AmandaS in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Sep 2012, 04:37 PM
  3. How do you set that up so when you select the size of an item the price changes?
    By tanyaleann in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 23 Sep 2008, 11:49 PM
  4. allow to buy one item, only if an other item is selected
    By liliebrode in forum Managing Customers and Orders
    Replies: 0
    Last Post: 2 Jun 2008, 12:59 PM
  5. Can buy item 1 only if item 2 is selected
    By liliebrode in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 2 Jun 2008, 09:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg