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});
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.
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 stock = TC.getStock({storeId:1, productIdentifier: sku});
"
Thanks.
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
Thanks Anders.
I have created a Umbraco web api to handle the conversion between sku and nodeid.
Cheers,
Bill
is working on a reply...