Jump to content

How to add multiple features to product using webservice


Recommended Posts

I am creating a product using webservice. I get the schema and I am filling features with multiple values but it only adds last value to a product. Does anyone know how to add multiple features to the product?

Below is my code.

"product_features" => array:1 [
      "product_feature" => array:2 [
        0 => array:2 [
          "id" => 22
          "id_feature_value" => 90
        ]
        1 => array:2 [
          "id" => 23
          "id_feature_value" => 98
        ]
      ]
    ]
  ]

 

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...