• Resolved wellingtonkri

    (@wellingtonkri)


    We are having a problem with the products we send through the API, if I register manually the product pulls the colors defined in the COLOR attribute, but if I register through API integration the attribute is always displayed as LABEL, even when registering the product it is as DEFAULT which should pull the color registered as a HEX code in the attribute registration itself

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Sravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @wellingtonkri,

    Could you please share a screen recording of how you are using the API and the attribute issue, it helps us know more and to answer you accurately.

    Thread Starter wellingtonkri

    (@wellingtonkri)

    Product JSON:
    
    {
    "name": "TOP LLICCE",
    "sku": "518276",
    "type": "variable",
    "regular_price": "55.80",
    "description": "Top super funcional e perfeito para montar muitos looks de arrasar! Top de alça com elástico em tons flúor nas laterais e detalhe para a etiqueta centralizada. Peça em tecido com bastante elastano e viscose, tecido possui gramatura alta evitando marcar o peito.\r\n\r\nComposição: 91,50% Viscose \/ 8,50% Elastano\r\nModelo está vestindo tamanho 16\r\n\r\n\r\nTabela de Medidas\r\nDescrição da Parte X Tamanhos<\/td>10<\/td>12<\/td>14<\/td>16<\/td>18<\/td>20<\/td><\/tr>BUSTO<\/td>50<\/td>58<\/td>62<\/td>66<\/td>68<\/td>72<\/td><\/tr>COMPRIMENTO<\/td>10<\/td>20<\/td>22<\/td>24<\/td>25<\/td>27<\/td><\/tr><\/tbody><\/table>",
    "short_description": "Top de alça com elástico em tons flúor nas laterais e detalhe para a etiqueta centralizada.",
    "weight": "0.09",
    "categories": [
    {
    "id": "294"
    }
    ],
    "attributes": [
    {
    "name": "Cor",
    "position": 0,
    "visible": true,
    "variation": true,
    "options": [
    "PRETO"
    ]
    },
    {
    "name": "Tamanho",
    "position": 0,
    "visible": true,
    "variation": true,
    "options": [
    "10",
    "12",
    "14",
    "16",
    "18",
    "20"
    ]
    }
    ],
    "tags": [],
    "dimensions": {
    "length": "0.00",
    "width": "0.00",
    "height": "0.00"
    }
    }
    Variation JSON:
    
    {
    "manage_stock": true,
    "stock_quantity": 5,
    "attributes": [
    {
    "name": "Cor",
    "option": "PRETO"
    },
    {
    "name": "Tamanho",
    "option": "10"
    }
    ],
    "regular_price": "55.80",
    "weight": "0.09",
    "dimensions": {
    "length": "0.00",
    "width": "0.00",
    "height": "0.00"
    }
    }

    Image of swatches on the product:
    https://prnt.sc/mU6a_-0Yd1EF

    example of globally registered attribute:
    https://prnt.sc/UTuIaJZjU8AT

    image of how the product appears:
    https://prnt.sc/CQ8lKubQAZgt

    whenever I register the product via API it does not pull the colors from the attribute, even though it is globally configured as COLOR and has the HEX code, if I register the product manually directly on the WOO platform it works fine.

    Thread Starter wellingtonkri

    (@wellingtonkri)

    I apologize, I already discovered the error, I wasn’t sending the attribute ID in the API, putting the ID already resolved it.

    Plugin Support Sravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @wellingtonkri,

    Thanks for the update, I hope everything is working smoothly.

    Let us know if we could be of any further assistance. 

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with products sent via API’ is closed to new replies.