Support » Plugin: WooCommerce » Product with los of variables

  • Resolved aceofjames

    (@aceofjames)


    We are selling photos with the following attributes:

    Print Size
    Print Type
    Edge Type
    Gloss Type

    There are two “Print Types”. “Metal Paper with White Matte” and “Aluminum”.

    If you choose to buy a photo on “Metal Paper with White Matte” you can only buy 8×10 or 11×14.

    However the same product can be both also in the “Aluminum” “Print Type” which has 8 sizes and two edge types as well as 3 gloss types to choose from.

    2 questions….

    1) If you choose Print Type “Metal Paper with White Matte” you should only be able to choose “8×10 or “11×14” “Print Size” out of the 8 available. All the other options should not be selectable. Each of the two sizes that are selectable would have different prices associated with them along with 2 separate fixed shipping rates. How is this done?

    2) The 8 sizes are also available in Print Type “Aluminum” but has “Edge Type” and “Gloss Type” options to choose from. Each of the 8 sizes would have different prices depending on the “Edge Type” and shipping would be a different “Flat Rate” based on “Size”. You should also not be able to select the variables associated with the other “Print Type” of “Metal Paper with White Matte” mentioned in #1 above.

    I have a working model and making adjustments over and over all day to no avail.

    I am sure I am missing an important step along the way.

    Please assist!

    Thank you in advance!

    James P. Williams

Viewing 4 replies - 1 through 4 (of 4 total)
  • lorro

    (@lorro)

    There is a threshold of 30 variations. Below this number, all variations data is loaded with the product page, and the page will not allow the user to choose combinations which are not available. Above the threshold, the user can choose what he wants, then Ajax is used to find out if the variation is available, and if not, a variation unavailable message is given.

    To avoid the frustration of the unavailable message, you can increase the threshold. This can be achieved by a code snippet in functions.php. This should be in a child theme to make it update-safe.
    https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb

    As the threshold increases, so does the page size and therefore the page load time. Try increasing the threshold, then make a judgement as to whether your page load time is acceptable.

    Thread Starter aceofjames

    (@aceofjames)

    I fixed everything I was having an issue with.

    Firstly, I learned how to use the shopping cart properly as far as variations.

    Secondly, I had to edit a woo file to increase the number of variables allowed from 30 to 100. We use 50 but needed more than 30.

    Thirdly, we bought the “Per Product Shipping” add-on so we could easily add a “per variance” shipping fee along with the built in “Local Deliver” option.

    https://woocommerce.com/products/per-product-shipping/

    Woocommerce rocks and the shipping add-on made it all that much easier to build a shop!

    Thanks!

    James P. Williams

    lorro

    (@lorro)

    Best not to alter core files, as edits will be overwritten by updates. There are periods when these are quite regular! The recommended way is to put the snippet in functions.php in a child theme.

    Thread Starter aceofjames

    (@aceofjames)

    Thanks. I will do that right away!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Product with los of variables’ is closed to new replies.