Yes, it is possible to create a new product via admin API. Where you can set title, description, price etc
Are you looking for information on how to add a custom line item to a cart in POS or to an order using the Admin API? Or are you looking to add custom "Line item properties" for engravings or something to an existing variant before adding it to the cart?
Yes right i am looking for sale custom product item i.e item not exist in store.
I checked this link https://shopify.dev/tools/app-bridge/actions/cart but didn't find anything related. Can You please guide me how to add custom line item in shopify?
It's further down the page. See screen shot below. Where you can add a "dummy" non-inventoried item by specifying a title, compared to adding an inventoried item where you provide its variantId.
These actions require the following app versions:
- Point of Sale iOS v5.11.0 or above
- Point of Sale Android v3.3.2 or above
I'm trying to do this directly in the online store, is there any way to do it from the theme code ?
Thanks for your help,
There are existing app plug-ins that can facilitate this already. So you might check those out. Otherwise here's an article with a few tips. Hope this helps!