Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Programming Attributes question

    Hi All, I'm not a programmer so I'm not sure if this is a simple job that I'm over looking or if there's a contribution that handles this or what, but I have a question regarding attributes that I'm going to bounce on you guys here and see what can be done, and where/how.

    A client of mine deals with custom firearms. He wants to sell some items "as is", meaning I just list them in categories/products like any usual product, but they also want a "build a gun" feature where you customize the gun, in the shopping cart, and purchase from there.

    Here's where I am a little lost, not being a programmer. To me, this would look like an "if then else" statement job, but I'm not sure if that is doable with zencart (maybe in the shopping_cart.php file) or not.

    The client wants the customer to be able to start off by seeing an "option" attribute listing "barrel", "action", "trigger", "stock" or "misc.", now if it was just this... it would just be an attribute with options and values, but the client wants the buyer to pick an option such as "barrel", at which time an "option" for "manufacturer" appears with available manufacturers depending on which original option was selected. once the manufacturer is selected, another "option" appears with specifics offered by that manufacturer. once that is done, the buyer can purchase said product.

    Is this something that can be done with zencart? Is there a contribution I haven't found or missed or is this something I would have to author in a php file?

    Any feedback is much appreciated!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Programming Attributes question

    Sorry, no. Zencart doesn't support dependent attributes, and there's no mod I'm aware of.

    It's possible we might be able to suggest a work-around with a little more specific information.

  3. #3
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Programming Attributes question

    What do you mean by work-around, and what info would be needed?

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Programming Attributes question

    He means that someone may be able to work out a way to do what you want using what's available in Zen Cart if you can supply more information about what you're trying to accomplish.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Programming Attributes question

    Alright well here's what I would be looking at

    Type:

    - Action
    - Barrel
    - Stock
    - Misc
    - Trigger

    once you select a type, the next attribute would show the manufacturers that carry said type

    - Manufacturer 1
    - Manufacturer 2
    - Manufacturer 3

    you select a manufacturer and another attribute displays the specifications that manufacturer carries

    - Spec 1
    - Spec 2
    - Spec 3

    Once that is done, you would get your price and go from there. I could put all the attributes into the controller, but the big problem I have is that 1) the prices would be totally inaccurate and 2) every attribute would show, giving the illusion that you could build something that you cannot.

    I was looking at Improved Attributes Controller and the support thread, and I'm wondering if that is something that could work. If anybody has any ideas, please PM me or respond here -- especially if you need more info.

 

 

Similar Threads

  1. Programming Question about the Order class
    By tcarden in forum General Questions
    Replies: 2
    Last Post: 24 Jul 2013, 08:02 PM
  2. v139h Admin Panel - where are images uploaded - programming question!
    By jjj0923 in forum General Questions
    Replies: 1
    Last Post: 23 Feb 2012, 05:56 PM
  3. Shipping Module Programming Question about weight and free shipping
    By voltar in forum Built-in Shipping and Payment Modules
    Replies: 59
    Last Post: 18 Nov 2011, 10:29 PM
  4. Programming glitch?
    By Feznizzle in forum General Questions
    Replies: 17
    Last Post: 15 Jul 2010, 02:51 PM
  5. Programming Question: user/pass to other db
    By websurfer in forum General Questions
    Replies: 1
    Last Post: 27 Aug 2008, 02:04 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