Expanding a Dropdown Attribute to Line Item with its own quantity box in an ADPM page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cnelson
    Mini Mivite

    • Aug 2011
    • 45

    #1

    Expanding a Dropdown Attribute to Line Item with its own quantity box in an ADPM page

    OK, so this is a bit of a conundrum for me. I am trying to setup a system using the Multi Product add to cart function, but also expanding any drop-down attributes into there own line with its own quantity box.

    From this page, http://www.miva.com/videos/articles/...ct-add-to-cart, I have gotten relatively far and can get the ADPM function working - http://dev.discountflies.com/all-fly-fishing-gear.html

    So my first problem is expanding the dropdowns. This is what the drop downs looked like on the previous site: http://www.discountflies.com/category/nymphs.html

    I was thinking something like this would work to expand the dropdown:
    NEW:
    Code:
    <mvt:foreach iterator="option" array="attribute:options">
    <input type="text" name="Products[ &mvt:product:id; ]:attributes[&mvt:attribute:index;]option[&mvt:option:code;]:quantity" value="0" /> &mvt:option:prompt;
    </mvt:foreach>
    Is what I am trying to do possible using the ADPM function?

    The second thing I need to do once I figure this out is to go find the inventory status of the individule attribute option and disable it if its out of stock. Any ideas on the function I should be using for that?

    Thanks again for help on this, I am just hitting a brick wall.

    Calvin Nelson
    Last edited by cnelson; 01-27-16, 12:51 PM.
    Calvin Nelson
    Director of Web Development
    2C Development Group
  • cnelson
    Mini Mivite

    • Aug 2011
    • 45

    #2
    Thanks again for help on this!
    Calvin Nelson
    Director of Web Development
    2C Development Group

    Comment

    Working...
    X