Problem/Motivation
Hi! I've noticed when using the module, the shipping method plugin applies() method is ignored.
Steps to reproduce
Add custom shipping method plugin or use shipping plugin with not empty logic in the 'applies' method.
Create shipping method and use the plugin.
Test if applies method from the plugin is executed.
Proposed resolution
Use similar condition from Drupal\commerce_shipping\Entity\ShippingMethod::applies() in Drupal\commerce_conditions_plus\Entity\ShippingMethod::applies():
if ($this->getPlugin() && !$this->getPlugin()->applies($shipment)) {
return FALSE;
}
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
khiminrm commentedComment #3
khiminrm commentedComment #6
jsacksick commentedCommitted, thanks!