Pick-up point name for Pugo international

[ad_1]

Greetings,

When delivering to a pick-up point in France (for example), the shipping method is set to “Pugo international”.
The pick-up point name is displayed during checkout, but is not saved as the company’s name in the order, as it is for Pugo, Shop point and Parcels depot.
That means it does not appear in the address, which causes issues during delivery.

To fix the issue, I added the line in bold, in class-wc-bpost-shipping-delivery-method.php :

public function get_company_name($postal_location, $company)
{
switch ($this->delivery_method) {
case self::DELIVERY_METHOD_PUGO:
case self::DELIVERY_METHOD_PARCELS_DEPOT:
case self::DELIVERY_METHOD_SHOP_POINT:
case self::DELIVERY_METHOD_PUGO_INTERNATIONNAL:
return $postal_location;

case self::DELIVERY_METHOD_REGULAR:
case self::DELIVERY_METHOD_BPACK_EXPRESS:
case self::DELIVERY_METHOD_BPACK_BUSINESS:
default:
return $company;
}
}

If it’s OK for you, can you add that change to the plugin?

Thank you

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer