Conversation
| /** | ||
| * @inheritDoc | ||
| */ | ||
| public function isMultipleInvoiceEmailsEnabled(?int $storeId = null): bool |
There was a problem hiding this comment.
nitpick: can we please drop the "Multiple" part? Gives that part too much emphasis IMO :D this is just about whether to enable invoice email or not.
| */ | ||
| public function isMultipleInvoiceEmailsEnabled(?int $storeId = null): bool | ||
| { | ||
| return $this->isSetFlag(self::XML_PATH_ENABLE_MULTIPLE_INVOICE_EMAILS, $storeId); |
| 'checkoutPageUrl' => $this->configRepository->getCheckoutPageUrl(), | ||
| 'redirectUrlCookieCode' => UrlCookie::COOKIE_NAME, | ||
| 'isOrderIntentEnabled' => $this->configRepository->isOrderIntentEnabled(), | ||
| 'isMultipleInvoiceEmailsEnabled' => $this->configRepository->isMultipleInvoiceEmailsEnabled(), |
| 'department', | ||
| 'orderNote', | ||
| 'poNumber', | ||
| 'multipleInvoiceEmails' |
| <input | ||
| type="text" | ||
| id="multiple_invoice_emails" | ||
| data-bind="value: multipleInvoiceEmails, event: { change: validateMultipleEmails }" |
| </div> | ||
| </div> | ||
| <div class="field field-text" data-bind="visible: isMultipleInvoiceEmailsEnabled"> | ||
| <label for="multiple_invoice_emails" class="label"> |
| orderNote: this.orderNote(), | ||
| poNumber: this.poNumber() | ||
| poNumber: this.poNumber(), | ||
| multipleInvoiceEmails: this.multipleInvoiceEmails() |
| }, duration); | ||
| } | ||
| }, | ||
| validateMultipleEmails: function () { |
| autofillToken: '', | ||
| companyName: ko.observable(''), | ||
| companyId: ko.observable(''), | ||
| multipleInvoiceEmails: ko.observable(''), |
| <days_on_invoice>14</days_on_invoice> | ||
| <finalize_purchase>1</finalize_purchase> | ||
| <enable_order_intent>1</enable_order_intent> | ||
| <enable_multiple_invoice_emails>0</enable_multiple_invoice_emails> |
| </field> | ||
| <field id="enable_multiple_invoice_emails" translate="label" type="select" sortOrder="75" showInDefault="1" | ||
| showInWebsite="1" showInStore="1"> | ||
| <label>Enable multiple invoice emails</label> |
| * | ||
| * @return bool | ||
| */ | ||
| public function isMultipleInvoiceEmailsEnabled(?int $storeId = null): bool; |
| public function isOrderIntentEnabled(?int $storeId = null): bool; | ||
|
|
||
| /** | ||
| * Check if order intent is enabled |
There was a problem hiding this comment.
Updated with all other comments on the naming adjustment
| "Your request to %1 failed. Reason: %2","Your request to %1 failed. Reason: %2" | ||
| "Your sole trader account could not be verified.","Your sole trader account could not be verified." | ||
| "Zip/Postal Code is not valid.","Zip/Postal Code is not valid." | ||
| "Forward invoice to email list (optional)","Forward invoice to email list (optional)" |
There was a problem hiding this comment.
Sorry I missed this earlier, can we drop the (optional) and keep the wording similar to Woocom here?
There was a problem hiding this comment.
Updated to match Woocom
| "Your sole trader account could not be verified.","Ditt enskild näringsidkarekonto kunde inte verifieras." | ||
| "Zip/Postal Code is not valid.","Postnummer är inte giltigt." | ||
| "Invoice email address","E-postadress för faktura" | ||
| "Please ensure your forward to email list only contains valid emails seperated by commas.","Se till att din vidarebefordran till e-postlista endast innehåller giltiga e-postmeddelanden separerade med kommatecken." |
There was a problem hiding this comment.
can you please reword "Please ensure your forward to email list only contains valid emails seperated by commas" to "Please ensure that your invoice email address list only contains valid email addresses separated by commas"
Feature branch for additional invoice emails input on order checkout