Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "snowdog/module-hyva-checkout-inpost",
"description": "Hyva Checkout compatybility module for Inpost",
"type": "magento2-module",
"require": {
"smartmage/inpost": "*"
},
"autoload": {
"files": [
"src/registration.php"
],
"psr-4": {
"Snowdog\\Hyva\\Checkout\\Inpost\\": "src"
}
}
}
"name": "snowdog/module-hyva-checkout-inpost",
"description": "Hyva Checkout compatybility module for Inpost",
"type": "magento2-module",
"require": {
"smartmage/inpost": "*",
"hyva-themes/magento2-theme-module": "^1.3.11"
},
"autoload": {
"files": [
"src/registration.php"
],
"psr-4": {
"Snowdog\\Hyva\\Checkout\\Inpost\\": "src"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ $modalBlock = $modal->getContentRenderer();
$modalBlock->setData('token', $viewModel->getGeoToken());
?>
<div
x-data="inpostModalCod"
x-data="snowdogHyvaCheckoutInpostInpostlockerStandardcodGeowidgetModal"
@open-geowidget-cod.window="showInpostModalCod"
>
<?= $modal ?>
</div>
<script>
<?php /** Generated with hyva-csp-helper.php */ ?>
function snowdogHyvaCheckoutInpostInpostlockerStandardcodGeowidgetModal() {
return Object.assign(
inpostModalCod.call(this)
)
}
window.addEventListener('alpine:init', () => Alpine.data('snowdogHyvaCheckoutInpostInpostlockerStandardcodGeowidgetModal', snowdogHyvaCheckoutInpostInpostlockerStandardcodGeowidgetModal), {once: true});
</script>
<?php $hyvaCsp->registerInlineScript() ?>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $heroIcons = $viewModels->require(HeroiconsOutline::class);
<div
id="inpost-geowidget-cod"
class="flex flex-col gap-2 mt-3"
x-data="inpostGeowidgetCod"
x-data="snowdogHyvaCheckoutInpostInpostlockerStandardcodLocker"
>
<?php if($magewire->locker): ?>
<span>
Expand Down Expand Up @@ -55,3 +55,13 @@ $heroIcons = $viewModels->require(HeroiconsOutline::class);
<?= $escaper->escapeHtml(__('Choose locker')) ?>
</button>
</div>
<script>
<?php /** Generated with hyva-csp-helper.php */ ?>
function snowdogHyvaCheckoutInpostInpostlockerStandardcodLocker() {
return Object.assign(
inpostGeowidgetCod.call(this)
)
}
window.addEventListener('alpine:init', () => Alpine.data('snowdogHyvaCheckoutInpostInpostlockerStandardcodLocker', snowdogHyvaCheckoutInpostInpostlockerStandardcodLocker), {once: true});
</script>
<?php $hyvaCsp->registerInlineScript() ?>
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ $modalBlock = $modal->getContentRenderer();
$modalBlock->setData('token', $viewModel->getGeoToken());
?>
<div
x-data="inpostModal"
x-data="snowdogHyvaCheckoutInpostInpostlockerStandardGeowidgetModal"
@open-geowidget.window="showInpostModal"
>
<?= $modal ?>
</div>
<script>
<?php /** Generated with hyva-csp-helper.php */ ?>
function snowdogHyvaCheckoutInpostInpostlockerStandardGeowidgetModal() {
return Object.assign(
inpostModal.call(this)
)
}
window.addEventListener('alpine:init', () => Alpine.data('snowdogHyvaCheckoutInpostInpostlockerStandardGeowidgetModal', snowdogHyvaCheckoutInpostInpostlockerStandardGeowidgetModal), {once: true});
</script>
<?php $hyvaCsp->registerInlineScript() ?>
12 changes: 11 additions & 1 deletion src/view/frontend/templates/inpostlocker_standard/locker.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $heroIcons = $viewModels->require(\Hyva\Theme\ViewModel\HeroiconsOutline::class)
<div
id="inpost-geowidget"
class="flex flex-col gap-2 mt-3"
x-data="inpostGeowidget"
x-data="snowdogHyvaCheckoutInpostInpostlockerStandardLocker"
>
<?php if($magewire->locker): ?>
<span>
Expand Down Expand Up @@ -49,3 +49,13 @@ $heroIcons = $viewModels->require(\Hyva\Theme\ViewModel\HeroiconsOutline::class)
<?= $escaper->escapeHtml(__('Choose locker')) ?>
</button>
</div>
<script>
<?php /** Generated with hyva-csp-helper.php */ ?>
function snowdogHyvaCheckoutInpostInpostlockerStandardLocker() {
return Object.assign(
inpostGeowidget.call(this)
)
}
window.addEventListener('alpine:init', () => Alpine.data('snowdogHyvaCheckoutInpostInpostlockerStandardLocker', snowdogHyvaCheckoutInpostInpostlockerStandardLocker), {once: true});
</script>
<?php $hyvaCsp->registerInlineScript() ?>