init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="customer_account_navigation">
|
||||
<block class="Magento\Customer\Block\Account\SortLinkInterface"
|
||||
name="customer-account-navigation-coupons-link">
|
||||
<arguments>
|
||||
<argument name="path" xsi:type="string">customer-coupon/account/index</argument>
|
||||
<argument name="label" xsi:type="string" translate="true">My Coupons</argument>
|
||||
<argument name="sortOrder" xsi:type="number">245</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="customer_form_register">
|
||||
<arguments>
|
||||
<argument name="subscription_promotion" xsi:type="object">Esun\CustomerCoupon\ViewModel\RegistrationSubscriptionPromotion</argument>
|
||||
</arguments>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="customer_account"/>
|
||||
<head>
|
||||
<css src="Esun_CustomerCoupon::css/coupons.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="sidebar.additional" remove="true"/>
|
||||
<referenceContainer name="content">
|
||||
<block class="Esun\CustomerCoupon\Block\Account\Coupons"
|
||||
name="customer.coupons.list"
|
||||
cacheable="false"
|
||||
template="Esun_CustomerCoupon::account/coupons.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Esun_CustomerCoupon::css/coupons.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="before.body.end">
|
||||
<block class="Magento\Framework\View\Element\Template"
|
||||
name="esun.customer.coupon.picker"
|
||||
template="Esun_CustomerCoupon::picker/modal.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
Reference in New Issue
Block a user