Y a-t-il des attributs obligatoires pour les ensembles d'attributs produits?
-
16-10-2019 - |
Question
Lors de la construction d'un nouvel ensemble d'attributs pour les produits dans le back-end. Y a-t-il des attributs obligatoires qui doivent être inclus dans le jeu d'attribut personnalisé?
La solution
Je pense que tous les attributs marqués comme system
(ou is_user_defined
= 0) puisque vous ne pouvez pas les supprimer de l'ensemble d'attributs Default
.
Voici une liste des codes d'attributs qui tombent dans cette catégorie. Il y a un assez grand nombre.
name
description
short_description
sku
price
special_price
special_from_date
special_to_date
weight
meta_title
meta_keyword
meta_description
image
small_image
thumbnail
media_gallery
group_price
tier_price
news_from_date
news_to_date
gallery
status
url_key
url_path
minimal_price
is_recurring
recurring_profile
visibility
custom_design
custom_design_from
custom_design_to
custom_layout_update
page_layout
category_ids
options_container
required_options
has_options
image_label
small_image_label
thumbnail_label
created_at
updated_at
country_of_manufacture
msrp_enabled
msrp_display_actual_price_type
msrp
enable_googlecheckout
tax_class_id
gift_message_available
price_type
sku_type
weight_type
price_view
shipment_type
links_purchased_separately
samples_title
links_title
links_exist
Vous pouvez obtenir la liste de ces attributs de cette requête
SELECT
e.attribute_code
FROM
eav_attribute e
WHERE
e.entity_type_id =
(SELECT
entity_type_id
FROM
eav_entity_type
WHERE entity_type_code = 'catalog_product'
)
AND e.is_user_defined = 0
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange