dpdconnect / woocommerce-shipping

Hieronder vindt u de nieuwste versies van de DPD plugins met o.a. Brexit functionaliteiten. Let op: Verstuurt u na Brexit naar UK, dan doet u er verstandig aan u te registreren bij de HMRC in de UK. Wij raden altijd aan om de module eerst op een testomgeving te installeren.
7 stars 5 forks source link

High-Performance Order Storage (HPOS) compatibility #69

Open remcotolsma opened 10 months ago

remcotolsma commented 10 months ago

If I understand correctly, you are already aware that this plugin is not yet compatible with the High-Performance Order Storage (HPOS) (previously known as Custom Order Tables) functionality of WooCommerce.

https://woo.com/document/high-performance-order-storage/

However, I couldn't find an issue on GitHub that addressed this. We would like to follow the developments in this area. So that we can also inform our customers about a possible switch to HPOS.

At @Pronamic we already have some experience with making plugins for WooCommerce HPOS-compatible. Among other things, you will have to look at the use of functions such as get_post_meta, add_post_meta, update_post_meta etc.:

Adding meta boxes will also have to be set up slightly differently.

https://github.com/dpdconnect/woocommerce-shipping/blob/1e85ed09ac08a3c0d92642de86a1002b2c6f0433/classes/Handlers/DownloadLabelBox.php#L10-L18

https://github.com/dpdconnect/woocommerce-shipping/blob/1e85ed09ac08a3c0d92642de86a1002b2c6f0433/classes/Handlers/GenerateLabelBox.php#L11-L27

If you need help with this, please feel free to contact us.