|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +/** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> |
| 9 | + <body> |
| 10 | + <referenceContainer name="top.container"> |
| 11 | + <block class="Magento\Paypal\Block\PayLater\Banner" name="top.container.paylater" |
| 12 | + template="Magento_Paypal::paylater/banner.phtml"> |
| 13 | + <arguments> |
| 14 | + <argument name="placement" xsi:type="string">product</argument> |
| 15 | + <argument name="position" xsi:type="string">header</argument> |
| 16 | + <argument name="jsLayout" xsi:type="array"> |
| 17 | + <item name="components" xsi:type="array"> |
| 18 | + <item name="payLater" xsi:type="array"> |
| 19 | + <item name="config" xsi:type="array"> |
| 20 | + <item name="displayAmount" xsi:type="boolean">true</item> |
| 21 | + <item name="amountComponentConfig" xsi:type="array"> |
| 22 | + <item name="component" xsi:type="string"> |
| 23 | + Magento_Paypal/js/view/amountProviders/product-grouped |
| 24 | + </item> |
| 25 | + </item> |
| 26 | + </item> |
| 27 | + </item> |
| 28 | + </item> |
| 29 | + </argument> |
| 30 | + </arguments> |
| 31 | + </block> |
| 32 | + </referenceContainer> |
| 33 | + <referenceContainer name="product.info.addtocart"> |
| 34 | + <block class="Magento\Paypal\Block\PayLater\Banner" name="product.info.addtocart.paylater" |
| 35 | + template="Magento_Paypal::paylater/banner.phtml"> |
| 36 | + <arguments> |
| 37 | + <argument name="placement" xsi:type="string">product</argument> |
| 38 | + <argument name="position" xsi:type="string">near_pp_button</argument> |
| 39 | + <argument name="jsLayout" xsi:type="array"> |
| 40 | + <item name="components" xsi:type="array"> |
| 41 | + <item name="payLater" xsi:type="array"> |
| 42 | + <item name="config" xsi:type="array"> |
| 43 | + <item name="displayAmount" xsi:type="boolean">true</item> |
| 44 | + <item name="amountComponentConfig" xsi:type="array"> |
| 45 | + <item name="component" xsi:type="string"> |
| 46 | + Magento_Paypal/js/view/amountProviders/product-grouped |
| 47 | + </item> |
| 48 | + </item> |
| 49 | + </item> |
| 50 | + </item> |
| 51 | + </item> |
| 52 | + </argument> |
| 53 | + </arguments> |
| 54 | + </block> |
| 55 | + </referenceContainer> |
| 56 | + <referenceBlock name="product.info.addtocart.additional"> |
| 57 | + <block class="Magento\Paypal\Block\PayLater\Banner" name="product.info.addtocart.additional.paylater" |
| 58 | + template="Magento_Paypal::paylater/banner.phtml"> |
| 59 | + <arguments> |
| 60 | + <argument name="placement" xsi:type="string">product</argument> |
| 61 | + <argument name="position" xsi:type="string">near_pp_button</argument> |
| 62 | + <argument name="jsLayout" xsi:type="array"> |
| 63 | + <item name="components" xsi:type="array"> |
| 64 | + <item name="payLater" xsi:type="array"> |
| 65 | + <item name="config" xsi:type="array"> |
| 66 | + <item name="displayAmount" xsi:type="boolean">true</item> |
| 67 | + <item name="amountComponentConfig" xsi:type="array"> |
| 68 | + <item name="component" xsi:type="string"> |
| 69 | + Magento_Paypal/js/view/amountProviders/product-grouped |
| 70 | + </item> |
| 71 | + </item> |
| 72 | + </item> |
| 73 | + </item> |
| 74 | + </item> |
| 75 | + </argument> |
| 76 | + </arguments> |
| 77 | + </block> |
| 78 | + </referenceBlock> |
| 79 | + </body> |
| 80 | +</page> |
0 commit comments