if (isset($_SESSION['box_image_url']) && $productImg == '') { $productImg = $_SESSION['box_image_url']; } ?> <div class="product-image teaser <?php echo $cart_item["variation"]["attribute_pa_boxtype"]; ?> <?php echo $cart_item["variation"]["attribute_pa_boxcolor"]; ?> <?php echo $cart_item["variation"]["attribute_pa_cardcolor"]; ?> " style="background-image: url('<?php echo getSecureURLString($productImg); ?> ');"></div> <div class="product-info teaser"> <h2><?php if ($cart_item["variation"]["attribute_pa_flatterboxname"] != "") { $occasionRerun = str_replace("s-", "'s-", $cart_item["variation"]["attribute_pa_flatterboxoccasion"]); $occasionRun = str_replace("-", " ", $occasionRerun); echo '' . str_replace("-", " ", $cart_item["variation"]["attribute_pa_flatterboxname"]) . '\'s ' . $occasionRun . ' Flatterbox'; } else { echo apply_filters('woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key); ?> <?php } ?> </h2>
the_id(); ?> " id="flatterbox-<?php echo $i; ?> "> <div class="detail"> <div class="img-holder"> <?php foreach (get_the_terms(get_the_ID(), 'flatterbox_type') as $cat) { $catimage = z_taxonomy_image_url($cat->term_id); $catname = $cat->name; } ?> <img src="<?php echo getSecureURLString(get_field('box_image_url')); ?> " alt="img description"> <?php if (strlen(get_field('order_count')) == 0) { ?> <a class="btn small actions edit" id="edit_options_button_<?php echo get_the_ID(); ?> " href="#" onclick="toggleEdit(<?php echo get_the_ID(); ?> );">Edit Flatterbox<span id="up"> ▼</span><span id="down" style="display:none;"> ▲</span></a> <div id="edit_options_<?php echo get_the_ID(); ?>