fix(main): Task #3 in readme complete
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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_];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user