Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
74.91 KB
MD5: 2af4412452c8150e17ed8f8fd53cb675
SHA-1: 222a4126de73ec67e04a4a1869e4b626c7886244
SHA-256: bb025f118b87d31a7d8fabecf8a6d4aa1b587ccb261116d5ec949738271d6a3b
Download zip
129.91 KB
MD5: 1dc0c49e2d14aa687bc3e65a5351b5c1
SHA-1: c911be34949098e72e0606f1e107e98347cd738f
SHA-256: 0e7838f0be01fcd6366592c76be141804a975c8184b8683b0256201396945df5
Release notes
New features
- #3617164: Delivery to MRW points. A shipment can go to an MRW point, a partner shop or an MRW office, instead of the customer's address. A new setting at Commerce > Configuration > Shipping > MRW, Where MRW points can be chosen, offers nowhere (the default), the transmit form, or the transmit form and checkout. On the transmit form, staff choose between the customer address and a point, from the points nearest to the shipping address or by searching every point in the country. At checkout, an MRW method set to deliver to a point lists the points once its rate is chosen, and home delivery stays preselected. The point is stored on the shipment, sent to SAGEC as
CodigoPuntoEntrega, and shown on the shipment, the order, the receipt and in the[commerce_shipment:mrw-delivery-point]tokens. The site keeps a copy of MRW's list of points for each SAGEC environment, refreshed daily by cron and from the settings page, and the transmit form refuses a point missing from that copy or outside the shipping country, since SAGEC ignores an unknown point code and delivers to the address.
Upgrading
- Run the database updates.
commerce_mrw_update_10300()adds the delivery point field to shipments, the table of MRW points, and thepoint_selectorsetting, set to nowhere. Export the configuration afterwards, so thatcommerce_mrw.settingsin the sync directory carries the new key. - With the setting left at nowhere, the transmit form and checkout work as in 1.2.0.
- The protected
send()method moved fromSagecClientto the newSagecSoapClientBaseand gained an optional?int $timeoutargument. A class that extendsSagecClientand overridessend()has to add it.SagecClientInterfaceis unchanged.