Results 1 to 10 of 42

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: attribute quantity box

    Quote Originally Posted by crankyjim View Post
    Hello all.

    The site in question is my wife's site. I did the custom coding necessary to display the stock on hand.

    There is no module available that I am aware of that replicates this functionality.

    For those of you technically minded, it is really just a matter of filling two multi-dimensional arrays and looping through them to write out the html required for the table.

    The first array is filled with the attribute type names and becomes the column heading contents.

    The second array is filled with the attribute value names and includes the quantity as a final element within each array row.

    The most difficult part of this was calculating the correct nested loops to ensure that we would always have only 3 "columns" of information and it would be limited to a maximum of 30 items per "column".

    The display itself is rendered as an html table and is styled using css.

    Hope this helps get you started.


    Jim
    Hey crankyjim - are you still around? I am going to modify the 'Stock By Attributes' mod to solve this problem (well, I'm going to give it a go!!). It sure does sound like it would be helpful to have a look at your code... would you mind?

    Not sure when the next release of Zen Cart is planned, or if there are guidelines for making mods compatible with future versions? If so, now would be a great time to find out, so I don't have to re-write everything in 6 weeks...!

    Cheers,
    Pat

  2. #2
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: attribute quantity box

    Hey guys

    In case you haven't noticed, you can install 2 add-ons that make this work quite easily, Stock By Attributes
    HTML Code:
    http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=310
    and also Product Attribute Grid
    HTML Code:
    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=876
    - when both of these are installed, you can set up an attribute grid with either one attribute or two. See example from my website below. Customers are able to choose a combination of the number of tickets they require for a specific performance, and ticket type. In addition by adding a 3rd value for each attribute, and setting only that combination to one with stock, they are able to make a once-time donation as well!

    See here:

    Cheers

    Cliff

  3. #3

    Default Re: attribute quantity box

    After having a few chats with the gentleman that hosts our website. He wrote coding in it for us to show stock by attribute in this type of grid

    It splits stuff by color and size and then shows the quantity you have in the box with it as well as an input box for qty wanted to buy. I'm sure this could work for anything with attributes like shirts, clothing etc.

    If you need more help than the coding you can see from the page source send me a msg and I can forward his name and ways to get in touch with him.

  4. #4
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: attribute quantity box

    Another request for this one.
    Is there somebody who can solve this BIG problem!!!!


 

 

Similar Threads

  1. Attribute-wise quantity box
    By lordsindia in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 30 Oct 2010, 04:39 PM
  2. Quantity Box per attribute
    By cassiedesigns in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Oct 2009, 09:54 PM
  3. Attribute with Quantity Box
    By giddyup in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 16 Jan 2009, 04:48 PM
  4. Attribute Quantity Box
    By directdesign in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 22 Jan 2008, 09:39 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