DEV Community

Taocarts
Taocarts

Posted on

Purchasing Transshipment + International Consolidation , Core Fulfillment Module Development for Reverse Overseas Purchasing

Developers familiar with the reverse overseas purchasing business model know clearly that the core profit link of the purchasing industry lies in the back-endpurchasing transshipment, purchasing consolidation and international warehousing fulfillment services, rather than simple product purchasing sales. 90% of open-source purchasing system source codes and purchasing mall systems on the market only realize front-end order placement and product procurement functions, completely lacking core fulfillment modules such as consolidation and parcel merging, logistics track tracking, overseas warehouse management and intelligent freight estimation, making them unable to support enterprise-level purchasing business deployment. Based on the practical development experience of Taocarts cross-border independent station system, this article deeply disassembles the technical implementation of the entire fulfillment system including consolidation and transshipment, overseas warehouse management, freight calculation and parcel pre-warning, and reviews the development difficulties and solutions of cross-border purchasing fulfillment modules.
For cross-border purchasing and reverse purchasing businesses, the fulfillment chain directly determines user experience and merchant profits. Most overseas customers will purchase multiple products from Taobao and 1688 and require unified consolidation, combined packaging and international transshipment, which demands complete parcel management capabilities of the system. Taocarts purchasing consolidation system allows users to pre-warn domestic express parcels with one click independently. After users send multiple purchased products to the domestic transit warehouse, they can input express numbers independently, and the system automatically identifies parcels, completes warehouse entry registration and classified storage. Merchants can merge or split parcels and provide value-added inspection and photo taking services in the background with full digital management, completely replacing the inefficient manual registration and bookkeeping mode of traditional purchasing businesses.
Intelligent freight estimation is the core difficulty in logistics fulfillment development. Freight rates vary greatly according to parcel weight, volume, destination country, logistics channel and seasonal fuel surcharges. Ordinary overseas purchasing systems adopt fixed freight templates, easily leading to customer loss due to over-quotation or merchant losses due to under-quotation. Taocarts is built with an intelligent freight estimation algorithm that automatically calculates accurate freight based on parcel weight, volume, destination country, logistics channel and real-time fuel rates. Matched with the automatic tariff calculation function, it informs customers of the total cost in advance and eliminates after-sales disputes fundamentally.
Overseas warehouse management is a rigid demand for medium and large cross-border purchasing enterprises and a major shortcoming of most source code systems. Taocarts overseas warehouse purchasing system realizes full-process digital management of inventory storage, warehouse entry, shelf placement, outbound delivery and inventory early warning. It supports multi-warehouse zoning management and batch management, especially suitable for refined management of high-value goods such as sneakers, streetwear and luxury goods. It supports LJR, BV and other sneaker batch classification and archiving to solve the problem of confused inventory management in trendy product purchasing.
The following shares the practical core code of freight estimation and parcel consolidation calculation developed based on Laravel, adapting to all international consolidation scenarios:

<?php
namespace App\Services\Logistics;

// Cross-border consolidation intelligent freight calculation service
class FreightCalculateService
{
    // Basic freight rate configuration by weight range
    protected $weightRate = [
        0 => 18,  // 0-1kg first weight unit price
        1 => 12,  // 1-5kg additional weight unit price
        5 => 10,  // Unit price for weight over 5kg
    ];

    // Calculate total consolidation freight
    public function calculateTotalFreight(float $weight, string $country, float $volume = 0): array
    {
        // Basic freight calculation
        $basePrice = $this->getBaseFreight($weight);
        // Fuel surcharge
        $fuelPrice = $this->getFuelSurcharge($weight);
        // Remote area surcharge by country
        $remotePrice = $this->getRemoteSurcharge($country);
        // Volume weight correction
        $volumePrice = $volume > 0 ? $this->getVolumeFreight($volume) : 0;

        $total = $basePrice + $fuelPrice + $remotePrice + $volumePrice;
        return [
            'base_price' => $basePrice,
            'fuel_price' => $fuelPrice,
            'remote_price' => $remotePrice,
            'total_price' => round($total,2)
        ];
    }

    // Calculate basic weight freight
    protected function getBaseFreight($weight)
    {
        if($weight <= 1) return $this->weightRate[0];
        elseif($weight <=5) return $this->weightRate[0] + ($weight-1)*$this->weightRate[1];
        else return $this->weightRate[0] + 4*$this->weightRate[1] + ($weight-5)*$this->weightRate[2];
    }

    // Dynamic fuel surcharge calculation
    protected function getFuelSurcharge($weight)
    {
        $baseFuel = 3;
        return $baseFuel + round($weight * 0.5,2);
    }

    // Remote area additional fee verification
    protected function getRemoteSurcharge($country)
    {
        $remoteList = ['US','CA','AU'];
        return in_array($country, $remoteList) ? 8 : 0;
    }
}
?>
Enter fullscreen mode Exit fullscreen mode

Front-end parcel pre-warning and logistics track query interface encapsulation:

// Purchasing consolidation parcel pre-warning API
import request from '@/utils/request'
export const addPackageForecast = (data) => {
  return request({
    url:'/api/logistics/package/forecast',
    method:'post',
    data:{
      express_no: data.expressNo,
      source_warehouse: data.warehouse,
      remark: data.remark || 'Regular purchasing parcel'
    }
  })
}

// Real-time logistics track query
export const getLogisticsTrack = (packageId) => {
  return request({
    url:'/api/logistics/track',
    method:'get',
    params:{ package_id: packageId }
  })
}
Enter fullscreen mode Exit fullscreen mode

In actual development and deployment, we have optimized the value-added inspection service module and developed customized photo templates. The system supports automatic in-warehouse shooting, multi-angle retention and defect marking, solving the high return rate pain point caused by overseas customers’ inability to view physical products. This refined function is rarely covered by ordinary purchasing website development projects. Meanwhile, the DIY shopping function is added to support users in independently matching multi-platform products and freely combining consolidated parcels, greatly improving personalized shopping experience.
From a technical development perspective, the fulfillment module of reverse overseas purchasing and cross-border purchasing systems is the core standard to distinguish amateur source codes from commercial systems. Without complete consolidation and transshipment, overseas warehouse management, freight accounting and logistics tracking functions, gorgeous front-end pages cannot support long-term business operation. Through the self-developed full-link fulfillment module, Taocarts realizes a one-stop closed loop covering product purchasing, automatic procurement, consolidation and transshipment, overseas warehousing and international delivery, providing a complete technical solution for cross-border purchasing entrepreneurs.

Top comments (0)