Rate Label of "Direct to your door" cannot be overridden

Created on 1 December 2024, about 1 month ago

Problem/Motivation

After selecting the "Percentage of Order value" plugin option for a shipping method, a default rate label of "Direct to your door" is shown. Changing this to another value and then saving the form does not reflect the change, and this default label continues to show in the checkout process.

Proposed resolution

Adjust the submitConfigurationForm method in PercentageOfOrderValue.php so that rate label is set as:

$this->configuration['rate_label'] = $values['rate_label'];

Instead of the current line of code, which is targeting the shipping_settings group (rate_label sits outside of this group).

$this->configuration['shipping_settings']['rate_label'] = $values['rate_label'];
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cYu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024