단순한 제품에 대한 속성 텍스트는 어떻게 얻을 수 있습니까? 구성 가능한 항목에 숨어 있습니까? 제품보기 Magento.간단한 제품에 속성 텍스트를 가져오고 제품보기에서 구성 가능으로 숨기기 magento
감사
단순한 제품에 대한 속성 텍스트는 어떻게 얻을 수 있습니까? 구성 가능한 항목에 숨어 있습니까? 제품보기 Magento.간단한 제품에 속성 텍스트를 가져오고 제품보기에서 구성 가능으로 숨기기 magento
감사
왜 형식 ID를 기반으로 한 view.phtml에서 예외가 발생하지 않습니까?
<?php if($_product->getTypeId() == "configurable"){ ?>
<div class="product-view"> ... </div>
<?php } else { ?>
<div class="product-view"> ... </div>
<?php } ?>
이 코드는 어떤 장소에, 그리고 단지 1 시간을 실행해야한다. 이 코드를 실행 한 후 제거 할 수 있습니다.
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$setup->addAttribute('catalog_product', 'attributename', array(
'group' => 'Geral',
'label' => 'Backend label',
'note' => '',
'type' => 'int', //backend_type
'input' => 'text', //frontend_input
'frontend_class' => '',
'source' => 'sourcetype/attribute_source_type',
'backend' => '',
'frontend' => '',
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
'required' => true,
'visible_on_front' => false,
'apply_to' => 'simple',
'is_configurable' => false,
'used_in_product_listing' => false,
'sort_order' => 5,
));
감사합니다.이 솔루션을 적용했습니다. – Dar