Pick-up point name for Pugo international
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.