• Resolved akramhussain4

    (@akramhussain4)


    I am placing an order on my WooCommerce website using it’s REST API and by following this documentation: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order

    Also, I am using WooCommerce TM Extra Product Options plugin to show extra options on my website. I am able to retrieve those options using REST API but unable to add them while placing an order. I don’t know if I need to add extra JSON snippet to the place order request or if I need to call a separate API.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    I’m sorry, I can’t help you.
    this forum for questions about export plugin .
    thanks, Alex

    Hey @akramhussain4 I need your help regarding TM extra Product Options. How you are getting this plugin’s Options in JSON using REST API. I need to know as i am stuck here.

    Thread Starter akramhussain4

    (@akramhussain4)

    Hi @uzma23 are you able to extract product details using REST API? If you goto Woocommerce Settings -> Advanced -> REST API and generate your API Keys and call for the product using the following link you’ll get all the details including extra product options but parsing that JSON is another task in itself.

    https://{YOUR_DOMAIN}/wp-json/wc/v3/products/{PRODUCT_ID}?consumer_key={YOUR_CONSUMER_KEY}&consumer_secret={YOUR_CONSUMER_SECRET}

    Thank you for your reply however I did as you described in answer but couldn’t find any key and values for extra product options.
    Could you please guide me what’s the key for getting ‘extra product options’?
    And my second question is did you get answer for your actual question because I will need that answer as well.

    • This reply was modified 4 years, 1 month ago by uzma23.
    Thread Starter akramhussain4

    (@akramhussain4)

    @uzma23 If you goto REST API Menu in Advanced settings of woocommerce you’ll find an option to “Add Key” enter the description and click generate, It’ll give you both the keys required to make the API call.

    And no I wasn’t able to find any solution for that, I even spoke with the developers of the “TM Extra Product Options Plugin” and they said the plugin wasn’t designed to work that way so there is no solution. So for time being, I am making a nice JSON of the extra options and adding it to the order notes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add Extra product options while placing a request with WooCommerce REST API’ is closed to new replies.