PrestaShop Shipping Woes: Mondial Relay Module 4.3.1 and Incorrect Label Weights

Navigating the complexities of e-commerce shipping can be challenging, and module-specific bugs can add significant friction to daily operations. A recent discussion on the PrestaShop forum highlights a critical issue encountered by merchants using the Mondial Relay module version 4.3.1 on PrestaShop 8.2.5. This particular problem revolves around the persistent use of incorrect package weights during shipping label generation, despite manual adjustments being seemingly saved within the PrestaShop back office.

The Persistent Weight Discrepancy

The original poster, guido59710, brought attention to a frustrating scenario: after updating their Mondial Relay module to version 4.3.1, they observed that while they could successfully modify the calculated package weight within the Mondial Relay block on an order page, this updated weight was not actually utilized when generating the shipping label. Instead, the system reverted to the initial, automatically calculated weight provided by PrestaShop, leading to potential discrepancies in shipping costs and logistical errors. Compounding the problem, attempts to contact Mondial Relay support for a resolution proved fruitless, with no response received even after more than ten days.

Community-Driven Troubleshooting Attempts

The PrestaShop community quickly engaged to help diagnose the problem. A key initial step suggested by Knowband Plugins was to verify if the manually adjusted weight was indeed being saved persistently. The user confirmed that upon reloading the order page, the modified weight was still displayed correctly, indicating that the data was being saved to the database or session. Furthermore, checking PrestaShop’s debug mode (found under Advanced Parameters > Performance) yielded no error messages during the label creation process, ruling out obvious runtime errors.

The discussion progressed with karan06 reiterating the core issue: the module successfully registers the updated weight, but fails to transmit this modified value to the label generation function, instead falling back to the original order weight. This points towards a potential internal logic flaw within the Mondial Relay module itself, specifically how it handles data flow between the order modification interface and the API call for label creation.

Seeking a Resolution: Code Inspection and Version Comparison

Without a readily available older version of the module for comparison, the path to a quick fix remained elusive for guido59710. However, karan06 offered valuable next steps for developers or technically inclined merchants:

  • Module Repository Check: Explore the module's official GitHub repository (if public) or contact the developer directly to request access to previous versions. This would allow for a side-by-side comparison of the code responsible for weight handling and label generation between the problematic 4.3.1 version and a known working version.
  • Code Audit: Conduct a thorough review of the module's code, focusing on the section responsible for generating shipping labels. The goal would be to identify precisely where the weight value is retrieved and passed to the Mondial Relay API. The discrepancy suggests that the module might be querying the original order weight directly from PrestaShop's core data rather than utilizing the updated value stored within its own configuration or the order's custom fields.

This situation underscores a common challenge in e-commerce: the delicate balance of third-party module integrations. Even minor updates can introduce unforeseen bugs that disrupt core functionalities like shipping, directly impacting operational efficiency and customer satisfaction.

Conclusion: An Unresolved Bug Highlighting Integration Challenges

While the thread did not conclude with a definitive solution or a direct code fix, it effectively highlighted a significant bug within a popular PrestaShop shipping module. The community's efforts provided a clear diagnosis and actionable debugging strategies, emphasizing the importance of code inspection and version control in resolving such integration issues. For PrestaShop merchants relying on modules like Mondial Relay, this thread serves as a reminder to thoroughly test module updates and to be prepared for in-depth troubleshooting when official support channels fall short. It also reinforces the value of a proactive approach to module management, including maintaining backups of previous module versions.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools