engine->getValue('purchase_page', $fielddaySetting, false)); $content = "

Cart

"; foreach($cartDetails as $cartDetail) { $kids = $cartDetail->kidId; $kidname=''; $key = $cartDetail->_id; $addedForOneDayOnly = $cartDetail->addedForOneDayOnly; $selectedate = ''; if($addedForOneDayOnly){ $bookingtypesel = "Drop-In"; $selectedate = fieldday()->engine->parseDate($cartDetail->oneDaySelectedDate,'d-M-Y'); }else{ $bookingtypesel = "All Session Days"; } foreach($kids as $kid){ $kidname .= ''.$kid->firstName.''; } $session_img = fieldday()->engine->displaySessionThumb($cartDetail->sessionId,false,true); $location = $cartDetail->sessionId->siteLocationId->name; $location_state = $cartDetail->sessionId->siteLocationId->state; $location_country = $cartDetail->sessionId->siteLocationId->country; $location_link = "https://www.google.com/maps/place/".$location.",+".$location_state.",+".$location_country; $content .= '
'; $content .= wp_sprintf('
%s
', $session_img); $content .= wp_sprintf('
%s', $cartDetail->sessionId->name); $content .= wp_sprintf('
%s
', $kidname); $content .= wp_sprintf('
%s', $bookingtypesel); if($selectedate){ $content .= wp_sprintf(' (%s)', $selectedate); } $content .= '
'; $content .= wp_sprintf('', $location_link, $location); $content .= wp_sprintf('
EditRemove
', $key, $key); $content .='
'; } $content .='
'; $content .= wp_sprintf('
Continue Shopping', apply_filters('km_purchase_page', $purchasepage)); $content .= wp_sprintf('Checkout
', apply_filters('km_checkout_page', site_url('/checkout'))); $content .='
'; echo $content; } ?>