Want to Add Extra Price Field for product By using Shopify API

New Member
4 0 0

I am new at Shopify App Development.

I have created a custom app and able to fetch products data and update the Title/Description of the products by using the Shopify API through PHP.

Now I want to create a new custom filed (Integer type ) for each product variant through this app.

So I can consider this custom field as a separate price which can be only used by a specific group of customers only.

Can anyone guide me how can I create a specific custom field for each variant of the product and can save it so later I can be able to use this on frontend.

Any help or hint will be highly appriciated.