$data = array(
    'category' => 
        array (
            'name' =>top,
            'is_active' => 1,
            'include_in_menu' => true
  • Id is the primary column, why you need to create that with category ID? Dec 7, 2021 at 10:01
  • @DhirenVasoya issue is that I am getting these category id and name both from API, so if I want to add product on behalf of category id also, then if I use auto increment category then the product which will come from API will be different in that category. ? Dec 7, 2021 at 11:50
  • I am working on last one week but not getting any solution Dec 7, 2021 at 11:50


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.