Override Select.phtml per il prodotto configurabile
-
12-12-2019 - |
Domanda
Sto cercando di apportare alcune modifiche al layout della vista del prodotto configurabile. Questo è il mio file 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>
.
Vorrei modificare leggermente il modo in cui viene visualizzata la selezione delle opzioni.
Ho duplicato il file
catalog/product/view/options/type/select.phtml
.
Nella mia cartella di design tematica e ha provato a modificarlo ma non riesco a vedere le mie modifiche sul frontend. Sto modificando il file giusto.O dovrei modificarne uno diverso?
Soluzione
Il file che stavo modificando non era quello giusto.Il file da modificare è questo
catalog/product/view/type/options/configurable.phtml
. Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange