diff --git a/CHANGELOG.md b/CHANGELOG.md
index 51b8664..42275bb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,8 +6,14 @@ Please file changes under `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed` o
The format is based on [Keep a Changelog](http://keepachangelog.com/).
## Unreleased
+
## Released
+## [1.3.1](https://github.com/kabisa/wuunder-webshopplugin-prestashop/releases/tag/1.3.1)
+
+### Changed
+- Moved html from php to template [#24](https://github.com/wuunder/wuunder-webshopplugin-prestashop/pull/24)
+
## [1.3.0](https://github.com/kabisa/wuunder-webshopplugin-prestashop/releases/tag/1.3.0)
### Fixed
diff --git a/README.md b/README.md
index 79efa05..8b2a6d3 100644
--- a/README.md
+++ b/README.md
@@ -13,8 +13,10 @@ More info regarding the installation: https://wearewuunder.com/eenvoudig-prestas
* With this module you connect your Prestashop store to your Wuunder account.
## Install ##
+
* Download a release .zip from this repository. If you are not familiar with composer, download the -composer-installed.zip version.
* Use FTP to transfer the .zip to the module folder located inside the installation folder of your prestashop web install and unpack.
+
* Navigate to __Modules and Services__->__Modules and Services__ and scroll down until you find __Wuunder shipping module__.
* To enable and edit __Wuunder shipping module__ click on install to the right.
* Fill in the form.
diff --git a/wuunderconnector/classes/WuunderCarrier.php b/wuunderconnector/classes/WuunderCarrier.php
index 3d51b22..89ff3a1 100644
--- a/wuunderconnector/classes/WuunderCarrier.php
+++ b/wuunderconnector/classes/WuunderCarrier.php
@@ -1,28 +1,16 @@
insert('carrier_group', array('id_carrier' => (int)($carrier->id), 'id_group' => (int)($group['id_group'])));
- }
+ }
}
$rangePrice = new RangePrice();
@@ -227,7 +215,7 @@ public static function installExternalCarrier($config)
Db::getInstance()->insert('carrier_zone', array('id_carrier' => (int)($carrier->id), 'id_zone' => (int)($zone['id_zone'])));
Db::getInstance()->update('delivery', array('id_carrier' => (int)($carrier->id), 'id_range_price' => (int)($rangePrice->id), 'id_range_weight' => null, 'id_zone' => (int)($zone['id_zone']), 'price' => pSQL('0')));
Db::getInstance()->update('delivery', array('id_carrier' => (int)($carrier->id), 'id_range_price' => pSQL(null), 'id_range_weight' => (int)($rangeWeight->id), 'id_zone' => (int)($zone['id_zone']), 'price' => pSQL('0')));
- }
+ }
}
// Copy Logo
@@ -247,69 +235,43 @@ public static function installExternalCarrier($config)
public function getContent()
{
- $this->_html .= '
' . $this->l('My Carrier') . '
';
+ $postResponse = "";
if (!empty($_POST) and Tools::isSubmit('submitSave')) {
$this->_postValidation();
if (!sizeof($this->_postErrors)) {
- $this->_postProcess();
- } else {
- foreach ($this->_postErrors as $err) {
- $this->_html .= '