Generate a unique ID for the cart item being added.
md5( implode( '_', $id_parts
Sortie :
@param int $product_id - id of the product the key is being generated for. @param int $variation_id of the product the key is being generated for. @param array $variation data for the cart item. @param array $cart_item_data other cart item data passed which affects this items uniqueness in the cart. @return string cart item key
// Modifier la valeur avec le filtre 'woocommerce_cart_id'
add_filter('woocommerce_cart_id', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(md5( implode( '_') {
// Modifier la valeur
return md5( implode( '_';
}
Chargement des actualités...