WordPress.org

Ready to get started?Download WordPress

Forums

FoxyShop
[resolved] Product Variation Dependencies vs. Inventory (2 posts)

  1. zanedefazio
    Member
    Posted 1 year ago #

    I am trying to setup a product with 3 colors and 4 size variations. I need a customer to be able to choose their preferred color and size using 2 separate dropdowns. Instead of having a dropdown with the following to correspond to the correct product codes for inventory and order filling purposes:

    Shirt Black Small
    Shirt Black Medium
    Shirt Black Large
    Shirt Black X-Large
    Shirt White Small
    Shirt White Medium
    Shirt White Large
    Shirt White X-Large
    Shirt Red Small
    Shirt Red Medium
    Shirt Red Large
    Shirt Red X-Large

    Is this capability built in?

    http://wordpress.org/extend/plugins/foxyshop/

  2. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Zane,

    There's two ways to do this. First, you could setup codes like this:

    Base Code: shirt

    Color:
    Black{c+_bl}
    White{c+_wh}

    Size
    Small{c+_sm}
    Large{c+_lg}

    And you'd end up with a computed code of shirt_bl_sm for a small black shirt. That doesn't solve your item code problem, though, so if you wanted to solve that, you could do something like this:

    Select Size:
    Small{dkey:sm}
    Medium{dkey:md}
    Large{dkey:lg}

    Select Color: (with a dkey of sm)
    Black{c:sku for small black}
    Red{c:sku for small red}

    Select Color: (with a dkey of md)
    Black{c:sku for medium black}
    Red{c:sku for medium red}

    etc....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.