diego Posted March 2, 2010 Share Posted March 2, 2010 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?SalutiMariani Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now