Frage

Beim Erstellen eines neuen Attributs für Produkte im Backend. Gibt es obligatorische Attribute, die im benutzerdefinierten Attributsatz enthalten sein sollten?

War es hilfreich?

Lösung

Ich denke, dass alle Attribute als markiert als system (oder is_user_defined = 0) Da Sie sie nicht aus dem entfernen können Default Attributsatz.
Hier ist eine Liste der Attributcodes, die in dieser Kategorie fallen. Es gibt einige.

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

Sie können die Liste dieser Attribute aus dieser Abfrage erhalten

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
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top