forked from DPDBaltics/PrestaShop-1.7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial opc compatibility * opc compatibility improvements * opc improvements and added some styles * Adding auto indexes * Automatic license addition applying * styling and layout for checkout * Automatic license addition applying * onepagecheckout ps module compatibility fixes * comment edited * fixed onepagecheckout ps dropdown * Automatic license addition applying * changed hardcoded value * css changes to change input order * version bump and changelog added --------- Co-authored-by: GytisZum <[email protected]> Co-authored-by: Justas Vaitkus <[email protected]> Co-authored-by: justelis22 <[email protected]> Co-authored-by: justelis22 <[email protected]>
- Loading branch information
1 parent
0a2c744
commit 329e02d
Showing
16 changed files
with
248 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/Validate/Compatibility/OpcModuleCompatibilityValidator.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Copyright since 2007 PrestaShop SA and Contributors | ||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License version 3.0 | ||
* that is bundled with this package in the file LICENSE.md. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/AFL-3.0 | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @author PrestaShop SA and Contributors <[email protected]> | ||
* @copyright Since 2007 PrestaShop SA and Contributors | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 | ||
*/ | ||
|
||
|
||
namespace Invertus\dpdBaltics\Validate\Compatibility; | ||
|
||
use DPDBaltics; | ||
use Invertus\dpdBaltics\Config\Config; | ||
use Invertus\dpdBaltics\Exception\DpdCarrierException; | ||
use Invertus\dpdBaltics\Repository\PhoneRepository; | ||
use Invertus\dpdBaltics\Util\NumberUtility; | ||
use Invertus\dpdBaltics\Util\StringUtility; | ||
use Module; | ||
|
||
class OpcModuleCompatibilityValidator | ||
{ | ||
public function isOpcModuleInUse(): bool | ||
{ | ||
foreach (Config::DPD_OPC_MODULE_LIST as $opcModule){ | ||
if (Module::isInstalled($opcModule) && Module::isEnabled($opcModule)) { | ||
return true; | ||
} | ||
} | ||
|
||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Copyright since 2007 PrestaShop SA and Contributors | ||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License version 3.0 | ||
* that is bundled with this package in the file LICENSE.md. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/AFL-3.0 | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @author PrestaShop SA and Contributors <[email protected]> | ||
* @copyright Since 2007 PrestaShop SA and Contributors | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 | ||
*/ | ||
|
||
|
||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | ||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); | ||
|
||
header("Cache-Control: no-store, no-cache, must-revalidate"); | ||
header("Cache-Control: post-check=0, pre-check=0", false); | ||
header("Pragma: no-cache"); | ||
|
||
header("Location: ../"); | ||
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* Copyright since 2007 PrestaShop SA and Contributors | ||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License version 3.0 | ||
* that is bundled with this package in the file LICENSE.md. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/AFL-3.0 | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @author PrestaShop SA and Contributors <[email protected]> | ||
* @copyright Since 2007 PrestaShop SA and Contributors | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 | ||
*/ | ||
#phone-block-wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.points-container .list-inline .row { | ||
margin-left: 15px; | ||
margin-right: 15px; | ||
} | ||
|
||
.panel-body .points-container .dpd-services-block { | ||
width: 100%; | ||
} | ||
|
||
.panel-body .points-container { | ||
width: 340px; | ||
margin-left: 18px; | ||
} | ||
|
||
.dpd-services-block .list-inline-item { | ||
min-width: 370px; | ||
} | ||
|
||
.carrier-extra-content { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 10px 5px; | ||
} | ||
|
||
.dpd-phone-block { | ||
padding-bottom: 0; | ||
} | ||
|
||
.chosen-container { | ||
width: 100% !important; | ||
max-width: 290px; | ||
} | ||
|
||
.carrier-extra-content .chosen-select { | ||
min-height: 49px; | ||
height: 100%; | ||
} | ||
|
||
.dpd-checkout-delivery-time--container { | ||
width: 100%; | ||
} | ||
|
||
.search-block-container { | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.