MAGENTO 2.1.9 API for Custome Attributes doesnt get the values- URGENT
min $50 USD / jam
Hello,
Our developer is having a lot of trouble and we are in need of an expert high level developer with a lot of experience.
The error is : that the Magento API is not getting the values from custom_attributes when we try to add a product with the API : .'/[login to view URL]'
HERE IS THE CODE EXAMPLE:
/// attributes //
$custom_attributes = array(
array( 'attribute_code' => 'category_ids', 'value' => [ $category_id ] ),
array( 'attribute_code' => 'description', 'value' => $product['product_description'] ),
array( 'attribute_code' => 'short_description', 'value' => $product['product_name'] ),
array( 'attribute_code' => 'manufacturer', 'value' => $manufacturer_id ),
array( 'attribute_code' => 'upc_code', 'value' => $product['product_code'] ),
);
$requestUrl= $data['store_url'] .'/[login to view URL]';
$add = [
"product" => [
"sku" => $product['product_sku'],
"name" => $product['product_name'],
"price" => $product['retail_price'] ,
"status" => $product['status_magento'] ,
"visibility" => 4,
"type_id" => "simple",
"attribute_set_id" => 4,
"weight" => 1,
"custom_attributes" => $custom_attributes,
"extension_attributes" => array(
"stockItem"=> array("qty"=> $product['quantity'], "isInStock" => true)
),
]
];
$headers = array("accept: application/json","content-type: application/json","authorization: Bearer ".$data['token']) ;
$ch = curl_init();
$ch = curl_init($requestUrl);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($add) );
$result = curl_exec($ch);
$result = json_decode($result);
$result = (array) $result ;
Here is the error we are receiving:
Error occured during "custom_attributes" processing. A custom attribute is specified withou an attribute code.
If you have experience with this and know how to help us - I will gladly pay you well for your time.
ID Projek: #15696702
Tentang projek
44 pekerja bebas membida secara purata $53/jam untuk pekerjaan ini
Dear Client, We like to fix this API issue. Kindly reach us to fix the same. Magento certified team. Kind Regards Ewall
alredy done this kind of job pls ping me for sample , need more detail start this project can start right now
Hello , Hope you're doing well. I have checked the details mentioned in your project post and would like to confirm our interest in working for your project. Please let me know ,if we can talk on $-k-y-p-e ca-l Lagi
I am flexible, good and expertise with Magento, and can troubleshoot problems and have quick solutions. I did much work to adjust sites for their requirements doing PHP and Magento programming for e-mail subscriptio Lagi
Hello I am Magento expert. I have customized and built lots of magento extension. I can complete your project perfectly. Regards
I always like to take a challenge and enjoy any kind of bug.I have more than 5 years of experience in web application sector
Hello We are a contemporary and excellent Website design and development team with a focus on user-centered design while helping clients to achieve the desired result. We are a dynamic and outstanding team with 5+yea Lagi
"" Magento Expert "" Hello there, We are a small but excellent team of designer and developer. If you will hire us then I am damn sure that you will be fully satisfied with my expertise. I have extensive exper Lagi
I have more then 18 years web development experience. I have worked in magento and different other applications
Hii I have lot of exp in magneto nd I can solve your issue within stipulated time. If you want to discuss about your query you can call me over the chat we will be discuss on there.
Dear Hiring Manager, I am having a team of experienced Magento 1 & 2 developers. We are currently working for a company but want to establish ourselves as Freelancer. We will be very pleased to hear from you. NOTE Lagi