Copied to clipboard

Flag this post as spam?

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


  • Bill 2 posts 22 karma points
    Sep 11, 2014 @ 02:12
    Bill
    0

    How to set productIdentifier to sku, or add/update order by sku not note id

    Currently, we have a quick order panel on the home page, which allows users adding product to cart directly by entering product sku string with quantity. 

    I am wondering if I can use your javascript api to do something like:

    "

    var sku = "233456"; //unique product id, but it's not node id
    TC.AddOrUpdateOrderLine(1, sku, 1);
    var stock = TC.getStock({storeId:1, productIdentifier: sku});

    "

    Thanks.

  • Anders Burla 2560 posts 8256 karma points
    Sep 11, 2014 @ 08:17
    Anders Burla
    0

    Hi Bill

    Tea Commerce for Umbraco only works with the node id for the product identifier. So you should make a quick search service to find the node id from your sku.

    Kind regards
    Anders

  • Bill 2 posts 22 karma points
    Sep 15, 2014 @ 02:07
    Bill
    0

    Thanks Anders.

    I have created a Umbraco web api to handle the conversion between sku and nodeid.

    Cheers,

    Bill 

Please Sign in or register to post replies

Write your reply to:

Draft