Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: show orders that are made with 4.1.7 #163

Conversation

RichardPerdaan
Copy link
Collaborator

In old orders the code tries to call WCMPBE_ShipmentOptionsFromOrderAdapter and WCMPBE_ShipmentOptionsFromOrderAdapter but the name has changed.

in old orders the code tries to call WCMPBE_ShipmentOptionsFromOrderAdapter and WCMPBE_ShipmentOptionsFromOrderAdapter but the name has changed.
@@ -25,7 +25,7 @@ public function __construct(?AbstractDeliveryOptionsAdapter $originAdapter, arra
$this->date = $inputData['date'] ?? $adapterDate;
$this->deliveryType = $inputData['delivery_type'] ?? $adapterDeliveryType;
$this->packageType = $inputData['package_type'] ?? $adapterPackageType;
$this->shipmentOptions = new WCMPBE_ShipmentOptionsFromOrderAdapter($originAdapter, $inputData);
$this->shipmentOptions = new WCMP_ShipmentOptionsFromOrderAdapter($originAdapter, $inputData);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new self kan ook, vind ik wel beter, leest makkelijker omdat je meteen begrijpt dat het om de huidige class gaat en het zou ook een paar van deze changes overbodig gemaakt hebben

@RichardPerdaan RichardPerdaan merged commit ff7de34 into develop May 20, 2021
@RichardPerdaan RichardPerdaan deleted the MY-28624-rename-WCMPBE_DeliveryOptionsFromOrderAdapter-name branch May 20, 2021 14:17
@RichardPerdaan RichardPerdaan restored the MY-28624-rename-WCMPBE_DeliveryOptionsFromOrderAdapter-name branch May 26, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants