PayU-EMEA / plugin_magento_2

Plugin for Magento versions: >2.0.6, 2.1, 2.2
GNU General Public License v3.0
18 stars 13 forks source link

Brak możliwości ustawienia adresu dostawy #26

Closed devhero-tech closed 5 years ago

devhero-tech commented 5 years ago

Cześć, wtyczka payu ukrywa opcję ustawienia adresu dostawy. Można podejrzeć jak to wygląda w momencie, gdy wstawimy zwykły checkout. Pojawia się checkbox z możliwością odblokowania formularza dodającego adres dostawy.

jemoon commented 5 years ago

@devhero-tech zdaje sie, ze wtyczka ukrywa adres rozliczeniowy co moze byc klopotliwe ze wzgledu np na brak mozliwosci podania innych danych do faktury. Zaleznie jednak od potrzeby mozna:

  1. Zmienic natywna konfiguracje (spowoduje to wyswietlenie adresu rozliczeniowego pod metodami platnosci) image

  2. Umiescic gdzies u siebie (w theme albo module) w layout/checkout_index_index.xml przywrocenie adresu rozliczeniowego dla PayU:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.root">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="checkout" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="steps" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <item name="billing-step" xsi:type="array">
                                            <item name="children" xsi:type="array">
                                                <item name="payment" xsi:type="array">
                                                    <item name="children" xsi:type="array">
                                                        <item name="renders" xsi:type="array">
                                                            <item name="children" xsi:type="array">
                                                                <item name="payu_gateway" xsi:type="array">
                                                                    <item name="methods" xsi:type="array">
                                                                        <item name="payu_gateway" xsi:type="array">
                                                                            <item name="isBillingAddressRequired" xsi:type="boolean">true</item>
                                                                        </item>
                                                                    </item>
                                                                </item>
                                                            </item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>
devhero-tech commented 5 years ago

Dzięki!