Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Mill 15 posts 85 karma points
    Jul 16, 2018 @ 11:38
    David Mill
    0

    Issues with Variant Stock

    Edit: I'm using Umbraco 7.11.1 & MySQL Database

    I am having some issues with individual variant stock. I will input the stock amount, and save it and can see it has put it into the "teacommerce_stock" table but doesn't save it against the product variant?

    When I reload the page, the stock data isn't pulled in, but I'm unsure of why, so when I save the product again, the stocks are completely removed from the database.

    Input Fields No stock passed through JS

    Anyone got any idea what I'm doing wrong? This is the first project I've worked on with TeaCommerce and it's bugging the life out me I can't figure it out!

  • James Kahler 36 posts 78 karma points
    Jul 25, 2018 @ 16:08
    James Kahler
    0

    I've just run into exactly the same problem, did you ever solve it?

  • David Mill 15 posts 85 karma points
    Jul 26, 2018 @ 08:42
    David Mill
    0

    I never did, it worked as expected on another installation which is a bit annoying more than anything else.

  • James Kahler 36 posts 78 karma points
    Jul 26, 2018 @ 11:53
    James Kahler
    0

    Glad you got it working.

    I've also got another problem when trying to get stock for a variant, the javascript api returns an error that The product doesn't have a store id associated with it. No sure if I can get stock for a variant or what to pass into the api as a product identifier, tried variant node id and sku, maybe it's not possible?

    TC.getStock({storeId: 1, productIdentifier: '1123' });

    Tried this server side and stock comes back null as well TC.GetVariants(1, content, true);

  • Rune Grønkjær 1371 posts 3102 karma points
    Aug 06, 2018 @ 07:09
Please Sign in or register to post replies

Write your reply to:

Draft