• Hello,

    I am trying to use this plugin to manage cart items via API.
    I cannot seem to add products to a cart. It keeps returning an error:

    data: {
    ????code: ‘rest_missing_callback_param’,
    ????message: ‘Missing parameters: id’,
    ????data: { status: 400, params: [Array] }
    ??}

    Id is passed with the request.

    Any ideas?

    Best regards, Alen

    The page I need help with: [log in to see the link]

Viewing 16 replies (of 16 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    Could you tell me what is the correct login endpoint in CoCart?

    There is only one login endpoint in CoCart. The docs are a little outdated as we have just released the JWT plugin but the instructions were clear and I did get a token when I tested your site using the login details you provided.

    Also our programer is curious if the problem lies in axiosConfig

    Yes as I said in my last response it is related to axisonConfig and I don’t know why its not passing the requested parameters when used. I will look into it when I have more resources.

    Sorry if you didn’t get the answers you were looking for at this time.

    best regards,

    Sébastien.

Viewing 16 replies (of 16 total)
  • The topic ‘Cannot add product to cart.’ is closed to new replies.