Skip to content

Commit

Permalink
Merge pull request #18 from Zasilkovna/dev
Browse files Browse the repository at this point in the history
2.0.4
  • Loading branch information
packeta-user authored May 18, 2021
2 parents f483af8 + 06b2db6 commit 63a1dc5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGE_LOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2.0.4 - Fixed: Packeta order now can not be created without pickup point

2.0.3 - Added: widget v6 integration allows pickup point selection for Germany and other countries
- Added: other specific countries price rules
- Added: allow specific countries via Packeta carrier configuration
Expand Down
5 changes: 5 additions & 0 deletions Packetery/Checkout/Observer/Sales/OrderPlaceAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Packetery\Checkout\Observer\Sales;

use Magento\Checkout\Model\Session as CheckoutSession;
use Magento\Framework\Exception\InputException;
use Packetery\Checkout\Model\Carrier\Config\AllowedMethods;

class OrderPlaceAfter implements \Magento\Framework\Event\ObserverInterface
Expand Down Expand Up @@ -122,6 +123,10 @@ public function execute(
}
}

if (empty($pointId)) {
throw new InputException(__('You must select pick-up point'));
}

$paymentMethod = $order->getPayment()->getMethod();

$data = [
Expand Down
2 changes: 1 addition & 1 deletion Packetery/Checkout/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="Packetery_Checkout" setup_version="2.0.3">
<module name="Packetery_Checkout" setup_version="2.0.4">
<sequence>
<module name="Magento_Backend"/>
<module name="Magento_Ui"/>
Expand Down
1 change: 1 addition & 0 deletions Packetery/Checkout/i18n/cs_CZ.csv
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"The API key length must have %d characters!","Délka API klíče musí být %d znaků!"
"The specified API key is not valid!","Zadaný API klíč není platný !"
"Select pick-up point","Vybrat výdejní místo"
"You must select pick-up point","Musíte zvolit výdejní místo"
"Method Name","Název metody"
"Purchase Date","Datum objednávky"
"Title","Název"
Expand Down
1 change: 1 addition & 0 deletions Packetery/Checkout/i18n/en_GB.csv
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"The API key length must have %d characters!","The API key length must have %d characters!"
"The specified API key is not valid!","The specified API key is not valid!"
"Select pick-up point","Select pick-up point"
"You must select pick-up point","You must select pick-up point"
"Method Name","Method Name"
"Purchase Date","Purchase Date"
"Title","Title"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Download module

[Current version 2.0.3](https://github.com/Zasilkovna/magento2/archive/v2.0.3.zip)
[Current version 2.0.4](https://github.com/Zasilkovna/magento2/archive/v2.0.4.zip)

### Installation

Expand Down Expand Up @@ -96,7 +96,7 @@ Multiple payment methods can be selected by holding the "Ctrl" button and clicki

### Stažení modulu

[Aktuální verze 2.0.3](https://github.com/Zasilkovna/magento2/archive/v2.0.3.zip)
[Aktuální verze 2.0.4](https://github.com/Zasilkovna/magento2/archive/v2.0.4.zip)

### Instalace

Expand Down

0 comments on commit 63a1dc5

Please sign in to comment.