Skip to content

Commit

Permalink
Merge pull request #12 from forwarder/Magento-2.4.4
Browse files Browse the repository at this point in the history
Release 0.4.3
  • Loading branch information
imichaelv authored Aug 2, 2022
2 parents d130193 + e0cba6e commit 369d272
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/BelcoCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function make(){
);

if ($lastOrder = $this->getLastOrder()) {
if ($lastOrderDate = strtotime($lastOrder->getCreatedAt())) {
if ($lastOrder->getCreatedAt() !== null && $lastOrderDate = strtotime($lastOrder->getCreatedAt())) {
$belcoCustomer['lastOrder'] = $lastOrderDate;
}
}
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ or add this to your composer.json file manually
}
]
```

## Configuration
After installing do the following procedure:
1. Go to the admin panel
2. Navigate to Stores > Configuration.
3. Navigate to Belco > Settings.
4. Fill in the `Shop id` and `API Secret` and save.

`Shop id` and `API Secret` can be found within the belco app.
Under: Settings > API keys
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "forwarder/belco-magento2",
"license": "GPL-3.0",
"type": "magento2-module",
"version": "0.4.2",
"version": "0.4.3",
"description":"Belco.io Magento Module to install widget code and sync customer information.",
"require": {
"php": "~7.2.0|~7.3.0|~7.4.0|~8.0.0|~8.1.0",
Expand Down

0 comments on commit 369d272

Please sign in to comment.