Selaa lähdekoodia

housenumber

master
Daniel 3 vuotta sitten
vanhempi
commit
3ff2aa8648
3 muutettua tiedostoa jossa 26 lisäystä ja 1 poistoa
  1. +3
    -1
      src/EventListener/PostCheckoutListener.php
  2. +18
    -0
      src/ExactApi/config.yml
  3. +5
    -0
      src/ExactApi/services.yml

+ 3
- 1
src/EventListener/PostCheckoutListener.php Näytä tiedosto

@@ -66,6 +66,8 @@ class PostCheckoutListener
$order->getBillingAddress()->firstname === $order->getShippingAddress()->firstname &&
$order->getBillingAddress()->lastname === $order->getShippingAddress()->lastname &&
$order->getBillingAddress()->street_1 === $order->getShippingAddress()->street_1 &&
$order->getBillingAddress()->street_2 === $order->getShippingAddress()->street_2 &&
$order->getBillingAddress()->street_3 === $order->getShippingAddress()->street_3 &&
$order->getBillingAddress()->postal === $order->getShippingAddress()->postal &&
$order->getBillingAddress()->city === $order->getShippingAddress()->city &&
$order->getBillingAddress()->company === $order->getShippingAddress()->company &&
@@ -77,7 +79,7 @@ class PostCheckoutListener
{
return [
'Name' => $address->firstname . ' ' . $address->lastname,
'AddressLine1' => $address->street_1,
'AddressLine1' => $address->street_1 . ' ' . $address->street_2,
'AddressLine2' => $address->company,
'City' => $address->city,
'Postcode' => $address->postal,


+ 18
- 0
src/ExactApi/config.yml Näytä tiedosto

@@ -0,0 +1,18 @@
# config/config.yml
#framework:
# mailer:
# transports:
# website: smtp://info@washnroll.de:WashnRoll%402020@washnroll.de

contao:
url_suffix: ""
# mailer:
# transports:
# website:
# from: info@washnroll.de

#services:
# wnr.product.import:
# class: App/Command/CmdUpdateProducts
# arguments: ["@contao.framework"]
# tags: ["console.command"]

+ 5
- 0
src/ExactApi/services.yml Näytä tiedosto

@@ -0,0 +1,5 @@
services:
app.product.import:
class: App\Command\CmdUpdateProducts
arguments: ["@doctrine.dbal.default_connection"]
tags: ["console.command"]

Ladataan…
Peruuta
Tallenna