Hook for total weight
-
Bonjour,
Je relance ma demande datant de 9 mois ??
Pourriez-vous ajouter un hook filtre après le calcul du total du poids, afin de pouvoir ajouter du poids additionnel d’emballages selon des règles spécifiques ?
Fichier /includes/shipping/lpc_abstract_shipping.php
Méthode calculate_shipping()foreach ($package['contents'] as $item) { $product = $item['data']; $totalWeight += (float) $product->get_weight() * $item['quantity']; $cartShippingClasses[] = $product->get_shipping_class_id(); } // Modification par dahive $totalWeight = apply_filters( 'lpc_cart_total_weight', $totalWeight, $package );
Merci d’avance,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hook for total weight’ is closed to new replies.