Pertanyaan yang diberi tag «customer-grid»

1
Kisi pelanggan Magento _prepareCollection () override tidak berfungsi
Saya telah mengganti metode _prepareCollection () dari Mage_Adminhtml_Block_Customer_Grid dan menambahkan baris berikut ->addAttributeToSelect('cus_city') ->addAttributeToSelect('cus_country') ->addAttributeToSelect('cus_state') untuk: protected function _prepareCollection() { $collection = Mage::getResourceModel('customer/customer_collection') ->addNameToSelect() ->addAttributeToSelect('email') ->addAttributeToSelect('created_at') ->addAttributeToSelect('group_id') ->addAttributeToSelect('cus_city') // added ->addAttributeToSelect('cus_country') // added ->addAttributeToSelect('cus_state') // added ->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left') ->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left') ->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, …
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.