Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
dd17d89
Initial plan
Copilot Dec 23, 2025
691afcd
fix(template): [PCMT-1080] Fix Vue 3 template roots and Vue Router 4 …
Copilot Dec 23, 2025
34b974b
fix(template): [PCMT-1080] Add keyboard navigation to clickable divs …
Copilot Dec 23, 2025
9344641
fix(entity): [PCMT-1080] Add getEntityName() method for Shopware 6.7 …
Copilot Dec 24, 2025
6175e63
fix(entity): [PCMT-1080] Make createdAt/updatedAt nullable for Shopwa…
Copilot Dec 24, 2025
29ec8d5
fix(dbal): [PCMT-1080] Replace deprecated executeUpdate with executeS…
Copilot Dec 24, 2025
0db3fa4
fix(entity): [PCMT-1080] Use PHP typed properties with default null f…
Copilot Dec 24, 2025
d6719e6
fix(vue): [PCMT-1080] Add fallback for mapGetters/mapState compatibil…
Copilot Dec 24, 2025
fc8deec
fix(vue): [PCMT-1080] Add null safety checks to Vuex state fallback a…
Copilot Dec 24, 2025
c78f4a3
fix(vue): [PCMT-1080] Remove Vuex helper dependencies and use direct …
Copilot Dec 24, 2025
735a4fa
fix(settings): [PCMT-1080] Replace sw-select-field with sw-single-sel…
Copilot Dec 24, 2025
4c4db1d
fix(settings): [PCMT-1080] Convert remaining sw-select-field to sw-si…
Copilot Dec 24, 2025
43e8b62
fix(settings): [PCMT-1080] Use v-model:value for sw-single-select to …
Copilot Dec 24, 2025
247372b
fix(settings): [PCMT-1080] Fix prop types for onSaveSettings and onCh…
Copilot Dec 24, 2025
9bed38a
fix(product): [PCMT-1080] Fix grid visibility and Active column with …
Copilot Dec 24, 2025
8a24636
fix(settings): [PCMT-1080] Fix all switch fields with v-model:value a…
Copilot Dec 24, 2025
d20624e
fix(toolbox): [PCMT-1080] Add proper default structure for overviewDa…
Copilot Dec 24, 2025
12ef4fa
fix(toolbox): [PCMT-1080] Provide complete default structure for all …
Copilot Dec 24, 2025
ad56e66
fix(entity): [PCMT-1080] Fix OrderEntity DateTimeInterface compatibil…
Copilot Dec 24, 2025
521d9b9
fix(import): [PCMT-1080] Add required technicalName field to payment …
Copilot Dec 24, 2025
52a99bf
fix(payment): [PCMT-1080] Add technicalName to main payment method an…
Copilot Dec 24, 2025
e3243a9
fix(entity): [PCMT-1080] Fix DateTimeInterface compatibility for Orde…
Copilot Dec 24, 2025
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
8 changes: 4 additions & 4 deletions src/Entity/Lengow/Action/ActionEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class ActionEntity extends Entity
protected $state;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $updatedAt;
protected ?\DateTimeInterface $updatedAt = null;

/**
* @return ShopwareOrderEntity
Expand Down
8 changes: 4 additions & 4 deletions src/Entity/Lengow/Order/OrderEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ class OrderEntity extends Entity
protected $message;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $updatedAt;
protected ?\DateTimeInterface $updatedAt = null;

/**
* @var DateTimeInterface|null
Expand Down
8 changes: 4 additions & 4 deletions src/Entity/Lengow/OrderError/OrderErrorEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class OrderErrorEntity extends Entity
protected $mail;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $updatedAt;
protected ?\DateTimeInterface $updatedAt = null;

/**
* @return LengowOrderEntity
Expand Down
8 changes: 4 additions & 4 deletions src/Entity/Lengow/OrderLine/OrderLineEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class OrderLineEntity extends Entity
protected $orderLineId;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @var DateTimeInterface|null
* @var \DateTimeInterface|null
*/
protected $updatedAt;
protected ?\DateTimeInterface $updatedAt = null;

/**
* @return ShopwareOrderEntity
Expand Down
12 changes: 6 additions & 6 deletions src/Entity/Lengow/Product/ProductEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class ProductEntity extends Entity
protected $salesChannel;

/**
* @var DateTimeInterface
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @return string
Expand Down Expand Up @@ -63,17 +63,17 @@ public function setSalesChannel(ShopwareSalesChannelEntity $salesChannel): void
}

/**
* @return DateTimeInterface
* @return \DateTimeInterface|null
*/
public function getCreatedAt(): DateTimeInterface
public function getCreatedAt(): ?DateTimeInterface
{
return $this->createdAt;
}

/**
* @param DateTimeInterface $createdAt
* @param \DateTimeInterface|null $createdAt
*/
public function setCreatedAt(DateTimeInterface $createdAt): void
public function setCreatedAt(?DateTimeInterface $createdAt): void
{
$this->createdAt = $createdAt;
}
Expand Down
24 changes: 12 additions & 12 deletions src/Entity/Lengow/Settings/SettingsEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class SettingsEntity extends Entity
protected $value;

/**
* @var DateTimeInterface
* @var \DateTimeInterface|null
*/
protected $createdAt;
protected ?\DateTimeInterface $createdAt = null;

/**
* @var DateTimeInterface
* @var \DateTimeInterface|null
*/
protected $updatedAt;
protected ?\DateTimeInterface $updatedAt = null;

/**
* @return ShopwareSalesChannelEntity|null
Expand Down Expand Up @@ -90,33 +90,33 @@ public function setValue(?string $value): void
}

/**
* @return DateTimeInterface
* @return \DateTimeInterface|null
*/
public function getCreatedAt(): DateTimeInterface
public function getCreatedAt(): ?DateTimeInterface
{
return $this->createdAt;
}

/**
* @param DateTimeInterface $createdAt
* @param \DateTimeInterface|null $createdAt
*/
public function setCreatedAt(DateTimeInterface $createdAt): void
public function setCreatedAt(?DateTimeInterface $createdAt): void
{
$this->createdAt = $createdAt;
}

/**
* @return DateTimeInterface
* @return \DateTimeInterface|null
*/
public function getUpdatedAt(): DateTimeInterface
public function getUpdatedAt(): ?DateTimeInterface
{
return $this->updatedAt;
}

/**
* @param DateTimeInterface $updatedAt
* @param \DateTimeInterface|null $updatedAt
*/
public function setUpdatedAt(DateTimeInterface $updatedAt): void
public function setUpdatedAt(?DateTimeInterface $updatedAt): void
{
$this->updatedAt = $updatedAt;
}
Expand Down
8 changes: 8 additions & 0 deletions src/EntityExtension/Extension/ProductExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ public function getDefinitionClass(): string
{
return ProductDefinition::class;
}

/**
* @return string
*/
public function getEntityName(): string
{
return 'product';
}
}
7 changes: 4 additions & 3 deletions src/LengowConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public function uninstall(UninstallContext $uninstallContext): void
if (!$uninstallContext->keepUserData()) {
$connection = $this->container->get(Connection::class);

$connection->executeUpdate('DROP TABLE IF EXISTS `lengow_order`, `lengow_order_line`, `lengow_order_error`, `lengow_action`, `lengow_settings`, `lengow_product`;');
$connection->executeStatement('DROP TABLE IF EXISTS `lengow_order`, `lengow_order_line`, `lengow_order_error`, `lengow_action`, `lengow_settings`, `lengow_product`;');

$connection->executeUpdate('
$connection->executeStatement('
DELETE FROM state_machine_transition
WHERE to_state_id = (
SELECT id FROM state_machine_state WHERE technical_name = "lengow_technical_error"
Expand All @@ -81,7 +81,7 @@ public function uninstall(UninstallContext $uninstallContext): void
);
');

$connection->executeUpdate('
$connection->executeStatement('
DELETE FROM state_machine_state
WHERE technical_name = "lengow_technical_error";
');
Expand All @@ -106,6 +106,7 @@ private function addPaymentMethod(Context $context): void
// payment handler will be selected by the identifier
'handlerIdentifier' => LengowPayment::class,
'name' => 'Lengow payment',
'technicalName' => 'lengow_payment',
'description' => 'Lengow payment, DO NOT activate NOR delete',
'pluginId' => $pluginId,
'afterOrderEnabled' => false,
Expand Down
22 changes: 11 additions & 11 deletions src/Migration/Migration1606313662Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function update(Connection $connection): void
* order (FK order_id)
* sales_channel (FK sales_channel_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_order` (
`id` BINARY(16) NOT NULL,
`order_id` BINARY(16) NULL DEFAULT NULL,
Expand Down Expand Up @@ -73,7 +73,7 @@ public function update(Connection $connection): void
* order (FK order_id)
* product (FK product_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_order_line` (
`id` BINARY(16) NOT NULL,
`order_id` BINARY(16) NOT NULL,
Expand All @@ -91,7 +91,7 @@ public function update(Connection $connection): void
* this table reference another lengow table :
* lengow_order (FK lengow_order_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_order_error` (
`id` BINARY(16) NOT NULL,
`lengow_order_id` BINARY(16) NOT NULL,
Expand All @@ -111,7 +111,7 @@ public function update(Connection $connection): void
* this table reference 1 shopware base table :
* order (FK order_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_action` (
`id` BINARY(16) NOT NULL,
`order_id` BINARY(16) NOT NULL,
Expand All @@ -133,7 +133,7 @@ public function update(Connection $connection): void
* this table reference 1 shopware base table :
* sales_channel (FK sales_channel_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_settings` (
`id` BINARY(16) NOT NULL,
`sales_channel_id` BINARY(16) NULL DEFAULT NULL,
Expand All @@ -153,7 +153,7 @@ public function update(Connection $connection): void
* product (FK product_id)
* sales_channel (FK sales_channel_id)
*/
$connection->executeUpdate('
$connection->executeStatement('
CREATE TABLE IF NOT EXISTS `lengow_product` (
`id` BINARY(16) NOT NULL,
`product_id` BINARY(16) NOT NULL,
Expand All @@ -171,7 +171,7 @@ public function update(Connection $connection): void
* order state are linked to state_machine (order.state here)
*/
$StateUuid = Uuid::randomHex(); // Generate new uuid for insert
$connection->executeUpdate('
$connection->executeStatement('
INSERT IGNORE INTO state_machine_state VALUES (
UNHEX("' . $StateUuid . '"),
"lengow_technical_error",
Expand All @@ -197,7 +197,7 @@ public function update(Connection $connection): void
*/
$uuid = Uuid::randomHex(); // Generate new uuid for insert
$availableStateUuid = Uuid::fromBytesToHex($state['id']);
$connection->executeUpdate('
$connection->executeStatement('
INSERT IGNORE INTO state_machine_transition VALUES (
UNHEX("' . $uuid . '"),
"technical_error",
Expand All @@ -219,7 +219,7 @@ public function update(Connection $connection): void
');
}
$uuid = Uuid::randomHex(); // Generate new uuid for insert
$connection->executeUpdate('
$connection->executeStatement('
INSERT IGNORE INTO state_machine_transition VALUES (
UNHEX("' . $uuid . '"),
"cancel_technical_error",
Expand Down Expand Up @@ -252,7 +252,7 @@ public function update(Connection $connection): void
foreach ($languageAvailable as $language) {
$languageId = Uuid::fromBytesToHex($language['id']);
if ($languageId) {
$connection->executeUpdate('
$connection->executeStatement('
INSERT IGNORE INTO state_machine_state_translation VALUES (
UNHEX("' . $languageId . '"),
(
Expand All @@ -272,7 +272,7 @@ public function update(Connection $connection): void

public function updateDestructive(Connection $connection): void
{
$connection->executeUpdate('
$connection->executeStatement('
DROP TABLE IF EXISTS
`lengow_settings`,
`lengow_product`,
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Migration1624606589Update102.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getCreationTimestamp(): int
public function update(Connection $connection): void
{
// modifying the value field to be able to store JSON data
$connection->executeUpdate('ALTER TABLE `lengow_settings` CHANGE `value` `value` TEXT NULL DEFAULT NULL');
$connection->executeStatement('ALTER TABLE `lengow_settings` CHANGE `value` `value` TEXT NULL DEFAULT NULL');
}

public function updateDestructive(Connection $connection): void
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{% block lgw_action_button %}
<template>
<div class="lgw-action-button">
<sw-button v-show="!isLoading"
@click="clickButton(buttonAction)"
size="x-small"
class="lgw-action-tooltip">
{{ buttonContent }}
<span>
{{ tooltipTitle }}
<ul>
<li v-for="error in errors">
{{ error }}
</li>
</ul>
</span>
</sw-button>
<sw-loader v-show="isLoading" size="14px"></sw-loader>
</div>
</template>
<div class="lgw-action-button">
<sw-button v-show="!isLoading"
@click="clickButton(buttonAction)"
size="x-small"
class="lgw-action-tooltip">
{{ buttonContent }}
<span>
{{ tooltipTitle }}
<ul>
<li v-for="error in errors">
{{ error }}
</li>
</ul>
</span>
</sw-button>
<sw-loader v-show="isLoading" size="14px"></sw-loader>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{% block lgw_action_label %}
<template>
<div class="lgw-action-label">
<span v-show="hasActiveAction && !isLoading" :title="labelTitle">
{{ labelContent }}
</span>
<sw-loader v-show="isLoading" size="14px"></sw-loader>
</div>
</template>
<div class="lgw-action-label">
<span v-show="hasActiveAction && !isLoading" :title="labelTitle">
{{ labelContent }}
</span>
<sw-loader v-show="isLoading" size="14px"></sw-loader>
</div>
{% endblock %}
Loading