Benim ürünler için bir çift yeni özniteliğini (boolean "evet / hayır" alanlar) eklenmiştir. Onlar etkinleştirmek / ürün detay sayfasında görüntülenmesini fiyat devre dışı bırakmak ve ızgara görünümü için değişkenler vardır.
Ben Ürün bilgisi sayfasında çalışmak başardı. Ama ürün ızgara sayfada ben bu değişkene erişmeye cant. Özellikle, i ile çalışıyorum şablon katalog / ürün / list.phtml olduğunu.
Ive Bu düzen / Catalog.xml gibi xml dosyası ekleyerek çalıştı:
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="addAttribute"><name>DisplayPrice</name></action>
<action method="addAttribute"><name>CustomOrder</name></action>
</block>
ve ben çok katalog / ürün / list.phtml gibi özelliklerini erişmeye çalışıyorum:
<?php echo $_product->getDisplayPriceName()? "Yes" : "No" ; echo $_product->getCustomOrderName()? "Yes" : "No" ;?>
ive de Mage config dosyasında app / kod / çekirdek / Katalog / etc / config.xml ekledi:
<frontend>
<!---- stuff before this -->
<product>
<collection>
<attributes>
<name />
<url_key />
<price />
<special_price />
<custom_order /> <!--new attribute -->
<display_price /> <!--new attribute -->
<special_from_date />
<special_to_date />
<short_description />
<thumbnail />
<small_image />
<image_label />
<thumbnail_label />
<small_image_label />
<tax_class_id />
<status />
<news_from_date />
<news_to_date />
<created_at />
<updated_at />
</attributes>
</collection>
</product>
</frontend>
Karanlıkta bu nokta im çekim at. Ben gitmek ya da bakmak gerekir başka nereye bilmek Magento uç hakkında yeterli bilmiyorum. HERHANGİ geri besleme büyük takdir edilecektir.
şimdiden teşekkürler.