Jump to content

Recommended Posts

Salve,

è tutta la mattina che ci stò picchiando la testa. Importo i miei prodotti tramite file CVS.

Problema: come faccio ad importare i Featured?

Nel file AdminImport è scritto il seguente codice:

$features = get_object_vars($product);
               foreach ($features AS $feature => $value)
                   if (!strncmp($feature, '#F_', 3) AND Tools::strlen($product->{$feature}))
                   {
                       $feature_name = str_replace('#F_', '', $feature);
                       $id_feature = Feature::addFeatureImport($feature_name);
                       $id_feature_value = FeatureValue::addFeatureValueImport($id_feature, $product->{$feature});
                       Product::addFeatureProductImport($product->id, $id_feature, $id_feature_value);
                   }



ho provato in ogni modo nel mio file cvs, ma non ho ancora capito come posso inserire i miei feature! Qualcuno ci è riuscito e mi può dare un CVS di esempio?

Saluti

Mariani

Link to comment
Share on other sites

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...