fix(main): Task #3 in readme complete

This commit is contained in:
2026-06-22 13:28:47 +02:00
parent 4871860ac4
commit 649bf62430
3 changed files with 3 additions and 14 deletions
-11
View File
@@ -44,15 +44,4 @@ Todo:
{/if}
```
3.) Make this translatable in displayHooks.php
```
if ($paperChoice) {
$note = 'Cadeaupapier: ' . $paperChoice;
$order->note = $order->note ? $order->note . "\n" . $note : $note;
$order->update();
}
```
5.) Make paper choice an entity
+1 -1
View File
@@ -60,7 +60,7 @@ trait DisplayHooks
);
if ($paperChoice) {
$note = 'Cadeaupapier: ' . $paperChoice;
$note = $this->trans('Gift paper: ', [], 'Modules.Wsgiftdropdown.Admin') . $paperChoice;
$order->note = $order->note ? $order->note . "\n" . $note : $note;
$order->update();
}
+2 -2
View File
@@ -48,8 +48,8 @@ class Ws_GiftDropdown extends Module
parent::__construct();
$this->displayName = $this->trans('Gift Paper Selector', [], 'Modules.Ws_giftdropdown.Admin');
$this->description = $this->trans('Adds a paper style selector to the gift wrap option at checkout', [], 'Modules.Ws_giftdropdown.Admin');
$this->displayName = $this->trans('Gift Paper Selector', [], 'Modules.Wsgiftdropdown.Admin');
$this->description = $this->trans('Adds a paper style selector to the gift wrap option at checkout', [], 'Modules.Wsgiftdropdown.Admin');
$this->ps_versions_compliancy = ['min' => '1.7.0.0', 'max' => _PS_VERSION_];
}
}