Page 1 of 2 12 LastLast
Results 1 to 10 of 65

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Plugin Contributions
    0

    Default Dependant Attributes - Can I do this?

    Hi - I am new to the firum and would like to ask a pre-sale type question.

    Does anyone know whether Zen Cart will do the following or can someone code this option for me?

    I have a number of T Shirt designs which are all available on Unisex T Shirts, Kids T Shirts, Hoodies etc

    What I need is the ability for a customer to intially choose a design, then choose a garment and depending on what they choose, the next option would only show sizes and colours that relate to the choice of garment the customer made.

    Does anyone know whether this can be done?

    I have tried Cube Cart but it will not allow me to achieve this, hopefully Zen Cart will :)

    Regards
    Marc

    www.dogsndubs.com

  2. #2
    Join Date
    Jun 2005
    Posts
    36
    Plugin Contributions
    0

    Default Re: Dependant Attributes - Can I do this?

    I just spent about 2 hours researching this, and came up empty handed. It appears that Zen Cart does not offer this at all, and it doesn't appear to be on the list of goals for the next year or two of development. I couldn't find any module add-ons that offered this either. AND I couldn't find any other free shopping cart solutions that had this functionality. D'oh!

    You're left with basically 3 options:

    1) Use notes in the drop-downs to tell the customers when options aren't available, e.g. "Royal Blue (Unisex Only)". This is the method I'm currently using, but it's not a very good one - customers are dumb (or not web-savvy, at least) and often pick attributes clearly labeled as invalid.

    2) Separate top-tier attributes into categories. In this case you'd have a category for Hoodies, a category for Ladies' Cut, etc. This could be a fairly good solution depending on how many different options you want to have (too many and it'd get cluttered). This also assumes you only have 1 level of dependency - meaning that, different options are set for Hoodies/Ladies'/Kid's, but don't depend on anything else. If your colors ALSO depend on size, for example, this method would be too messy to use.

    3) Code it. Either figure out the PHP or Javascript code to make it happen yourself, or pay someone to do it. This is the method I'll employ when I have the time to do so, but that could be a while. I also don't know how easy it would be to modify something like this and still make it 'external' enough to upgrade easily; you might have to do some extra manual steps each time you update, depending.



    On a side note, this question should really be in the FAQ (if it's in there, I sure didn't see it). I've seen this asked a LOT here when I was searching for past posts in the topic, and they usually either go unanswered or are answered with "Zen Cart doesn't currently support dependent attributes".

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Dependant Attributes - Can I do this?

    Zencart's attributes feature in the current version, does not enable field validation on input.

    I believe the devs are looking at putting it into the next version...
    20 years a Zencart User

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Dependant Attributes - Can I do this?

    For two sets of attributes, you can use the Product Attribute Grid mod to display the available combinations.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Dependant Attributes - Can I do this?

    Good point Glenn... I forgot about this!
    20 years a Zencart User

  6. #6
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    96
    Plugin Contributions
    1

    Default Re: Dependant Attributes - Can I do this?

    Check out Dynamic Drop Downs for Stock by Attributes in the contrib section. The sequenced drop downs work great for multiple attributes. Use the single drop down for single attributes and have the ability to show out of stock next to the attribute.


    Cal

  7. #7
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    96
    Plugin Contributions
    1

    Default Re: Dependant Attributes - Can I do this?

    Here is an example of the Dynamic Drop Downs contrib in action...


    http://www.modernmunchkin.com/mix-ma...hirts-198.html


    Cal

  8. #8
    Join Date
    Apr 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Dependant Attributes - Can I do this?

    Quote Originally Posted by modernm View Post
    Check out Dynamic Drop Downs for Stock by Attributes in the contrib section. The sequenced drop downs work great for multiple attributes. Use the single drop down for single attributes and have the ability to show out of stock next to the attribute.


    Cal
    Hi, this feature is great. I tried installed it in my testing store which was runing with stock by attributes well. After installation, this message appear after the product description, and do not show the product attributes:

    1146 Table 'lessuvco_store.TABLE_PRODUCTS_STOCK' doesn't exist
    in:
    [select quantity from TABLE_PRODUCTS_STOCK where products_id = '1' AND quantity > 0]


    any idea on this?

    Thanks.

  9. #9
    Join Date
    Mar 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Dependant Attributes - Can I do this?

    Hello!

    How works this Dynamic Drop Downs.

    Can You send me an Example!

    Thanks

  10. #10
    Join Date
    Apr 2009
    Posts
    12
    Plugin Contributions
    0

    red flag Re: Dependant Attributes - Can I do this?

    I'm experimenting with this right now, and it (sort of) works..

    I see the selection boxes, the first one is fully populated, but the second one doesn't include all possible variants..

    Right now I'm just a bit too tired of setting up everything that I can't really see straight and follow the code, so please give me some advice here..


    The generated selection box code on the page is this:
    HTML Code:
    <!--bof Attributes Module -->
    <div id="productAttributes">
      <table border="0" cellspacing="0" cellpadding="2">
        <tr>
          <td class="main" colspan="2"><b>Glöm inte att välja: </b></td>
        </tr>
        <tr>
          <td align="right" class="main"><b>Storlek:</b></td>
          <td class="main"><select name="id[1]" onchange="i1(this.form);">
              <option value="0" selected="selected">First select Storlek</option>
              <option value="1"></option>
              <option value="2">9</option>
              <option value="3"></option>
              <option value="4">10</option>
              <option value="5">10½</option>
              <option value="6">11</option>
            </select></td>
        </tr>
        <tr>
          <td align="right" class="main"><b>Färg:</b></td>
          <td class="main"><select name="id[2]">
              <option value="0" selected="selected">Next select Färg</option>
            </select></td>
        </tr>
        <tr>
          <td colspan="2">&nbsp;
            <script type="text/javascript" language="javascript"><!--
      var stk={1:{8:1,9:1,13:1},2:{8:1,9:1,13:1},3:{8:1,9:1,13:1},4:{8:1,9:1,13:1},5:{8:1,9:1,13:1},6:{8:1,9:1,13:1}};
      var txt2={8:'Svart ',9:'Barely black ',11:'Platina ',12:'Choklad ',13:'Brons '};
      function i1(frm) {
        frm['id[2]'].length=1;
        for (opt in stk[frm['id[1]'].value]) {
          frm['id[2]'].options[frm['id[2]'].length]=new Option(txt2[opt],opt);
        }
      }
      i1(document.cart_quantity);
      function chksel() {
        var ok=true;
        if (this['id[1]'].value==0) ok=false;
        if (this['id[2]'].value==0) ok=false;
        if (!ok) alert('Du måste välja vilken storlek, färg med mera du vill ha.');
        return ok;
      }
      document.cart_quantity.onsubmit=chksel;
    //--></script></td>
        </tr>
      </table>
      <br class="clearBoth" />
    </div>
    <!--eof Attributes Module -->
    But the database contains the proper values, and as far as I can see, quite some more options to choose from in the second selection box.

    Code:
    stock_id ; products_id ; stock_attributes ; quantity ;
    1 ; 4 ; 1,7 ; 500000
    2 ; 4 ; 2,7 ; 500000
    3 ; 4 ; 3,7 ; 500000
    4 ; 4 ; 4,7 ; 500000
    5 ; 4 ; 5,7 ; 500000
    6 ; 4 ; 6,7 ; 500000
    7 ; 4 ; 1,8 ; 500000
    8 ; 4 ; 2,8 ; 500000
    9 ; 4 ; 3,8 ; 500000
    10 ; 4 ; 4,8 ; 500000
    11 ; 4 ; 5,8 ; 500000
    12 ; 4 ; 6,8 ; 500000
    13 ; 4 ; 11,1 ; 500000
    14 ; 4 ; 11,2 ; 500000
    15 ; 4 ; 11,3 ; 500000
    16 ; 4 ; 11,4 ; 500000
    17 ; 4 ; 11,5 ; 500000
    18 ; 4 ; 11,6 ; 500000
    19 ; 4 ; 10,1 ; 500000
    20 ; 4 ; 10,2 ; 500000
    21 ; 4 ; 10,3 ; 500000
    22 ; 4 ; 10,4 ; 500000
    23 ; 4 ; 10,5 ; 500000
    24 ; 4 ; 10,6 ; 500000
    25 ; 4 ; 1,9 ; 500000
    26 ; 4 ; 2,9 ; 500000
    27 ; 4 ; 3,9 ; 500000
    28 ; 4 ; 4,9 ; 500000
    29 ; 4 ; 5,9 ; 500000
    30 ; 4 ; 6,9 ; 500000

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Child/dependant attributes on products?
    By Foster in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 May 2013, 07:46 PM
  2. Discounts dependant on attributes
    By lazerradial2003 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Sep 2007, 01:01 PM
  3. Dependant attributes prices
    By redgorilla in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 16 Aug 2007, 12:23 PM
  4. Dependant Attributes
    By Wrongsauce in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Jul 2007, 08:06 PM

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