• Resolved plitsch

    (@plitsch)


    Hello,
    if i buy a T-shirt via Woocommerce as variable Product,
    the Stock are reduced korrekt.
    If i select Variation and design it with Product Designer, put it into Cart, and buy it,
    Stock are reduced for all Variations.
    Ignore Attribute Stock Checkbox not work.
    It should only reduce selectet Variation.
    How can i solve this Problem with custom Code?

    Best Regards
    plitch

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mewz

    (@mewz)

    Hi @plitsch,

    Are you using “Any” attributes on your variations? Product designers usually don’t work if you don’t specify every attribute for each variation.

    The problem with this is the attributes aren’t added to the cart item properly, so attribute stock can’t match it to the correct stock items.

    Thread Starter plitsch

    (@plitsch)

    Hi,

    you know how your plugin works best.
    Which Metadata, Attributes, Variables, Data, Keys or Other must be available for it to work? I only have 3 variables, color, size, model.
    What else has to be there? When I know that,
    I try to adapt the product and / or the order process.

    Best regards

    plitch

    Plugin Author Mewz

    (@mewz)

    For attribute stock to be matched and reduced properly, you just need to have the correct attribute metadata on the order items.

    So in your case for an order item to reduce attribute stock it should have pa_color, pa_size and pa_model order item meta keys with the correct values.

    Attribute stock is reduced at the same time as product stock, which is when an order is updated to a paid order status.

    If you need any more info, just let me know.

    • This reply was modified 3 years, 12 months ago by Mewz.
    Thread Starter plitsch

    (@plitsch)

    how to do?

    Hi,

    please look Movie.

    There are two points where I could access the attributes via the Variation ID. The designer page or the shopping cart.
    Unfortunately I am a complete WordPress beginner.
    Would you have a code snippet for me, how I can add the correct attribute metadata on the order items?

    Best Regards

    plitsch

    Plugin Author Mewz

    (@mewz)

    It seems like the problem is that Lumise Product Designer is adding the main product to the cart instead of the specific variation. If they did this it would work without needing to change anything.

    Ideally they should fix this so it works better for everyone. But until then I’ve added a compatibility hook into Attribute Stock so that the attribute meta data is added to the order item correctly and attribute stock is reduced.

    An update will be released shortly. Please test it out and let me know if you run into any issues.

    Thread Starter plitsch

    (@plitsch)

    Hi,

    thanks in advance.
    All Lumise users will love you.
    A reference to Lumise compatibility will definitely increase your sales.
    Will you write here, if Update finish?

    Best Regards.

    plitsch

    Plugin Author Mewz

    (@mewz)

    The update is available now.

    Thread Starter plitsch

    (@plitsch)

    Hi,

    just tested it.
    It works!
    THANK YOU THANK YOU THANK YOU
    I was really frustrated.
    Great Support.
    You are the Best.
    Have a nice Day.

    Best Regards

    plitsch

    Plugin Author Mewz

    (@mewz)

    That’s great to hear. Thank you for the feedback @plitsch.

    Have a good weekend ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ignore attribute stock – not work’ is closed to new replies.