Skip to content

Instantly share code, notes, and snippets.

View karthikw3cert's full-sized avatar

Karthik karthikw3cert

  • http://w3cert.in/
  • Erode
View GitHub Profile
foreach ($cart->get_cart() as $cart_item) {
if (isset($cart_item['fooevent_class_date'])) {
$product = $cart_item['data'];
$product_id = $cart_item['variation_id'] > 0 ? $cart_item['variation_id'] : $cart_item['product_id'];
$eventtype=get_post_meta($product_id, "WooCommerceEventsType", true);