Ciao a tutti stavo creando un modulo in magento 1.9 che permette di inserire un attributo all'interno dell'indirizzo di fatturazione e di spedizione, ho provato a creare un layout del modulo ma non riesco a caricarlo, ecco il codice del file di configurazione del modulo:
app/code/local/Groundon/Address/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Groundon_Address>
<version>0.1.0</version>
</Groundon_Address>
</modules>
<global>
<resources>
<Groundon_Address_setup>
<setup>
<module>Groundon_Address</module>
<class>Mage_Customer_Model_Entity_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</Groundon_Address_setup>
<Groundon_Address_write>
<connection>
<use>core_write</use>
</connection>
</Groundon_Address_write>
<Groundon_Address_read>
<connection>
<use>core_read</use>
</connection>
</Groundon_Address_read>
</resources>
<frontend>
<layout>
<updates>
<groundon_address module="Groundon_Address">
<file>groundon_address.xml</file>
</groundon_address>
</updates>
</layout>
</frontend>
<fieldsets>
<sales_convert_quote_address>
<id_codice_fiscale>
<to_order_address>*</to_order_address>
<to_customer_address>*</to_customer_address>
</id_codice_fiscale>
</sales_convert_quote_address>
<customer_address>
<id_codice_fiscale>
<to_quote_address>*</to_quote_address>
</id_codice_fiscale>
</customer_address>
</fieldsets>
</global>
</config>
il file del layout del modulo è il seguente:
app/design/frontend/base/default/layout/groundon_address.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<customer_address_form>
<reference name='customer_address_edit'>
<action method='setTemplate'><template>groundonaddress/customer/address/edit.phtml</template></action>
</reference>
</customer_address_form>
<checkout_onepage_index>
<reference name='checkout.onepage.billing'>
<action method='setTemplate'><template>groundonaddress/opc/onepage/billing.phtml</template></action>
</reference>
<reference name='checkout.onepage.shipping'>
<action method='setTemplate'><template>groundonaddress/opc/onepage/shipping.phtml</template></action>
</reference>
</checkout_onepage_index>
</layout>
e ho creato la cartella all'interno del tema base,dove andrò ad effettuare l'overriding del template inserendo il campo del nuovo attributo all'interno del form:
app/design/frontend/base/default/template/groundonaddress
Grazie in anticipo