Custom Dropshipping Module: Calculating Shipping by Supplier in PrestaShop

Implementing Supplier-Specific Dropshipping in PrestaShop

A PrestaShop forum user, PwsX, initiated a discussion on implementing a custom dropshipping solution where shipping costs are calculated based on the supplier, order subtotal, and destination country. The core requirement is to display shipping costs grouped by supplier in the cart and checkout process.

Problem Definition

The user outlined a complex scenario where each supplier has a unique shipping price structure, potentially involving:

  • A dedicated carrier per supplier/brand.
  • A minimum order fee.
  • Free or reduced shipping costs based on the supplier's subtotal exceeding a certain amount, varying by country.

The goal is to present these shipping costs clearly to the customer, grouped by the respective supplier, during the cart and checkout stages.

Example Scenarios

The user provided examples to illustrate the desired behavior:

Country A:

  • 3 products from Supplier A (totaling €10): Shipping costs €15 (free if the total exceeds €20).
  • 1 product from Supplier B (totaling €3): Shipping costs €10 (free if the total exceeds €22).

Country B:

  • 3 products from Supplier A (totaling €10): Shipping costs €25 (€5 if the total exceeds €50).
  • 1 product from Supplier B (totaling €3): Shipping costs €25 (€5 if the total exceeds €50).

Potential Solutions and Customization

The user inquired about existing modules that could fulfill these requirements or modules that could be customized to achieve the desired functionality. Given the complexity of the shipping rules, a custom module or significant customization of an existing shipping module is likely necessary.

The user also mentioned their programming experience in PHP and other relevant languages, indicating a willingness to contribute to the customization process.

Considerations for Implementation

Implementing such a system would likely involve:

  • Extending the PrestaShop cart and checkout processes.
  • Creating a module to manage supplier-specific shipping rules.
  • Integrating with PrestaShop's carrier system.
  • Using hooks to modify the cart display and checkout flow.

Given the lack of replies in the thread, there are no specific module recommendations or code examples provided. However, the problem definition is clear, and the user's willingness to customize suggests a viable path forward through custom module development.

Start with the tools

Explore migration tools

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

Explore migration tools