Prestashop - Relay point import

Prestashop - Relay point import

Overview


Relay point ID are imported from Prestashop to select the relay point during the shipping label generation. 

Note : to import relay / pickup point from Prestashop, you need to install the Connect module for Prestashop

In Connect, you can see / edit the relay point in the order view :





Relay point import priority


To retrieve the relay point from Prestashop during order import, Connect makes several attempts, in this order. The first successfull attempt is used to get the relay point ID: 
  1. Check in "other" field in shipping address, value length must be below 15 characters
  2. If the BoostMyShop Connect module is installed on prestashop, it performs additionnals checks : 
    1. If boxtal module is installed on prestashop, retrieve relay point from table emc_points::point_ep
    2. If common service / Mondial relay module is installed, retrieve from table mr_selected::MR_Selected_Num
    3. If common service / Colissimo module is installed, retrieve from table colissimo_delivery_info::prid
    4. If Bepost module is installed, retrieve from table cart_bpost::service_point_id
    5. If Socolissimo module is installed, retrieve from table socolissimo_delivery_info::prid
    6. If Chronopost module is installed, retrieve from table chrono_cart_relais::id_pr
    7. If DPD module is installed, retrieve from table dpdfrance_shipping::relay_id
    8. If colissimo point relay by agencya, retrieve from table colissimo_pickup::id_point_pickup

How to debug ?

If you experience problems with imported relay points in Boostmyshop, you can manually run the url called by Boostmyshop to download relay points.

Url is : https://www.website.com/modules/boostmyshopagent/webservice/relayPoint.php?&api_key=APIKEY&order_id=ORDER_ID
In the url above, replace codes with the correct value : 
  1. Replace website.com by your website URL
  2. Replace APIKEY with the prestashop api key (visible in the prestashop integration in Boostmyshop)
  3. Replace ORDER_ID by the prestashop order ID (not the reference)
Here is an example of the response : 

{
  • order_id"68763",
  • relay_code"9568U",
  • errorfalse,
  • msg"",
  • source"chronopost"
}




    Unlock your online store's potential

    Whatever your e-commerce business, discover how to streamline your operations and boost your business growth with Boostmyshop.