モバイル版のみmagentoの「電話」欄を「不要」にする方法は?
「eav_attribute」テーブルの「Telephone」行の「is_required」列を変更してみました。ただし、デスクトップ版とモバイル版の両方で電話を必要としないように変更します。
コメント
if (!Zend_Validate::is($this->getTelephone(), 'NotEmpty')) {
$errors[] = $helper->__('Please enter telephone.');
magento/app/code/core/Mage/Customer/Model/Address/Abstract.php でも同じことができました!
特定のテーマでこれを機能させる他の方法はありますか?