Я создал настраиваемый продукт, у него есть три варианта: цвет, размер и стиль.
Теперь на странице продукта каждый вариант имеет текст по умолчанию " Выбрать параметр..." в раскрывающемся списке, но я хочу, чтобы текст был " Выбрать цвет", " Выбрать размер" и " Выбрать стиль".
Я редактировал функцию getJsonConfig() в приложении \code\core\Mage\Catalog\Block\View\Type\Configurable.php
From:
'chooseText' => Mage::helper('catalog')->__('Choose an Option...'),
To:
'chooseText' => ('Select ').$attribute->getLabel(),
И отредактируйте строку 39 файла frontend/base/default/template/catalog/product/view/type/options/configurable.phtml
до:
<option><?php echo $this->__('Select ') ?><?php echo $_attribute->getLabel() ?></option>
Но результат не очень хорош, он всегда показывает текст "Выберите стиль" в трех вариантах. Пожалуйста, дайте мне подсказку по этому вопросу, большое вам спасибо!