Skip to content

Commit

Permalink
Merge pull request #3 from WeGetFinancing/GET-1769
Browse files Browse the repository at this point in the history
GET-1769 | hotfix(funnel generator request)
  • Loading branch information
rdeleo committed Nov 10, 2022
2 parents e9ae7c7 + 6527e45 commit 0040ced
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Entity/Request/FunnelGeneratorRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ public function initFromArrayAndSession(array $array, Quote $quote): EntityInter
);
}

$customer = $quote->getCustomer();
$address = $quote->getShippingAddress();

$this->firstName = $address->getFirstname();
$this->lastName = $address->getLastname();
$this->telephone = $address->getTelephone();
$this->email = $address->getEmail();
$this->email = $customer->getEmail();
$this->shippingAmount = $array['shipping_amount'];

$this->address->initFromArray([
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"wegetfinancing/php-sdk": "1.*"
},
"type": "magento2-module",
"version": "0.1.3",
"version": "0.1.4",
"autoload": {
"files": [
"registration.php"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="WeGetFinancing_Checkout" setup_version="0.1.3">
<module name="WeGetFinancing_Checkout" setup_version="0.1.4">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit 0040ced

Please sign in to comment.