Domanda

Quando vai su www.domain.com/customer/address/edit/id/1 /

dove si può modificare il loro indirizzo

Per qualche motivo c'è un blocco Confronta nella barra laterale sinistra

Quale file devo modificare per rimuoverlo?

Grazie

carlo

nel mio layout.xml (app / design / frontend / mythememage / default / layout / local.xml)

Ho questo:

 <!-- CUSTOMER ACCOUNT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
<customer_account>

    <reference name="left">
        <!-- Remove cart from the left column -->
        <action method="unsetChild"><name>cart_sidebar</name></action>

        <!-- Remove Compare block, it is already inserted in DEFAULT section -->
        <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    </reference>

</customer_account>
.

La sezione predefinita si riferisce a è questo credo nello stesso file:

<?xml version="1.0" encoding="UTF-8"?>
.

.

<!-- Left ====================================================================== -->
    <reference name="left">
        <remove name="left.newsletter"/> <!-- Moved newsletter to the footer -->
        <action method="unsetChild"><name>left.permanent.callout</name></action>
        <action method="unsetChild"><name>left.reports.product.viewed</name></action>
      <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
        <!--  <block type="reports/product_compared" name="right.reports.product.compared" template="reports/product_compared.phtml" />
       <block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
       <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" template="wishlist/sidebar.phtml"/>
       <block type="poll/activePoll" name="right.poll">
           <action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action>
           <action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action>
       </block>
       <block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
       <block type="paypal/logo" name="paypal.partner.right.logo" template="paypal/partner/logo.phtml"/> -->

        <action method="unsetChild"><name>tags_popular</name></action>
        <action method="unsetChild"><name>cart_sidebar</name></action>
        <action method="unsetChild"><name>right.reports.product.compared</name></action>
        <action method="unsetChild"><name>right.reports.product.viewed</name></action>
        <action method="unsetChild"><name>wishlist</name></action>
        <action method="unsetChild"><name>sale.reorder.sidebar</name></action>
        <action method="unsetChild"><name>right.poll</name></action>
        <action method="unsetChild"><name>paypal.partner.right.logo</name></action>
    </reference>
.

È stato utile?

Soluzione

Assumendo che non si utilizza il proprio modulo, è necessario creare un file di layout locale sulla posizione app/design/frontend/[package]/[theme]/layout/local.xml e supponendo che si veda il blocco Confronto aggiunto per impostazione predefinita, è necessario aggiungere quanto segue nel file:

<?xml version="1.0"?>
<layout version="0.1.0">
    <customer_account>
        <remove name="catalog.compare.sidebar" />
    </customer_account>
</layout>
.

Tuttavia questo significa che non sarà possibile riutilizzare il nome del blocco (catalog.compare.sidebar) se si utilizza <remove>.Se si desidera riutilizzare lo stesso nome di blocco all'interno del layout, quindi utilizzare il seguente:

<?xml version="1.0"?>
<layout version="0.1.0">
    <customer_account>
        <reference name="left">
            <action method="unsetChild">
                <name>catalog.compare.sidebar</name>
            </action>
        </reference>
    </customer_account>
</layout>
.

Altri suggerimenti

Prova questo

<customer_address_edit>
<reference name="left">
 <remove name="catalog.compare.sidebar" />
</reference>
<customer_address_edit>
.

In Magento 2 Aggiungere le linee nel file predefinito di temi.xml

.

\ app \ Design \ Frontend \ Default \ magento_theme \ layout \ default.xml

<referenceBlock name="catalog.compare.sidebar" remove="true"/>
<referenceBlock name="catalog.compare.link" remove="true"/>
.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top