Monday 27 August 2018

Add the order number to the subject in order email template in magento 2

Re: Add the order number to the subject in order email template


{{trans "Your %store_name order confirmation" store_name=$store.getFrontendName()}} #{{var order.increment_id}}

Thursday 23 August 2018

Customer Account Navigation links how to remove in magento 2

Customer Account Navigation links how to remove in magento 2

I created a file , inserted below, in app/design/frontend/Custom_VENDOR_Theme/My_Custom_THEME/Magento_Customer/layout/customer_account.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom">
    <body>
        <!-- To Remove My Downloadable Products-->
        <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
        <!-- To Remove Billing Agreements-->
        <referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
        <!-- To Remove My Credit Cards-->
        <referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
 
<move element="customer-account-navigation-quotes-link" destination="customer_account_navigation" after="customer-account-navigation-orders-link"/>

    </body>
</page>