設定可能な製品のためにSelect.PhTMLをオーバーライドします
-
12-12-2019 - |
質問
設定可能な製品ビューのレイアウトにいくつかの変更を加えようとしています。 これはMy Catalog.xmlファイルです
<block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
<label>Info Column Options Wrapper</label>
<block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
<block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
<action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
<action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
<action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
<action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
</block>
<block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
</block>
.
選択肢の選択方法を少し変更したいと思います。
ファイルを複製した
catalog/product/view/options/type/select.phtml
.
自分のテーマデザインフォルダに編集しようとしましたが、フロントエンドでの変更が表示されません。 正しいファイルを変更しています。それとも私は別のものを編集するべきですか?
解決
ファイルが修正されていたファイルは正しいものではありませんでした。編集するファイルはこれです
catalog/product/view/type/options/configurable.phtml
. 所属していません magento.stackexchange