Panier
Il n'y a plus d'articles dans votre panier
$product = $params['product'];
$context = $this->context;
try {
// Crée panier temporaire
$cart = new Cart();
$cart->id_currency = (int)$context->currency->id;
$cart->id_lang = (int)$context->language->id;
$cart->id_shop = (int)$context->shop->id;
// Ajouter le produit
$cart->updateQty(1, (int)$product->id);
// Créer une adresse fictive en France
$address = new Address();
$address->id_country = 73; // France
$address->id_state = 0;
$address->city = 'Paris';
$address->postcode = '75000';
$address->alias = 'Adresse estimative';
$address->add();
$cart->id_address_delivery = (int)$address->id;
// Transporteur fixe : ID 136
$carrier_id = 136;
$carrier = new Carrier($carrier_id);
// Calcul du coût réel pour ce transporteur
$shippingCost = $cart->getPackageShippingCost([$carrier_id => $carrier_id], true, null, true);
// Ajouter frais de manutention
$handlingFee = (float)$carrier->handling_fee;
$totalShipping = $shippingCost + $handlingFee;
// Affichage
echo "
Livraison France (transporteur ID 136 + manutention) : " . Tools::displayPrice($totalShipping) . "
"; // Nettoyer l'adresse temporaire $address->delete(); } catch (\Exception $e) { echo ''; } 379,00 €
Choisissez la tarière thermique JANSEN EBG-100 pour une solution puissante, maniable et polyvalente, adaptée à vos besoins professionnels et personnels en matière de forage.