echo $product_obj->get_title(); ?> </a><br/> <?php if (!empty($values['variation_id'])) { echo wc_get_formatted_variation($product_obj->variation_data, false); } //get price before showing the addon data as proce could change if (!isset($values['price'])) { $values['price'] = get_quotelist_product_price($product_obj); } $temp_arr = array(); if (isset($addon_cart_obj) && $addon_cart_obj instanceof Product_Addon_Cart) { $temp_arr = dvin_wcql_get_add_on_list($addon_cart_obj, $values['price'], $product_obj, $values); } else { $temp_arr = dvin_wcql_get_add_on_list(array(), $values['price'], $product_obj, $values); } echo wc_get_formatted_variation($temp_arr, false); ?> </td> <?php if (!$remove_price_col) { ?> <td class="product-price"> <?php $price_in_html = apply_filters('woocommerce_cart_product_price', wc_price($values['price']), $product_obj); echo apply_filters('woocommerce_cart_item_price', $price_in_html, '', ''); ?> </td> <?php }
} else { $values['prod_id'] = $values['ID'] = $values['product_id']; $values['ID'] = $values['product_id']; } $_product = !empty($values['variation_id']) ? get_product($values['variation_id'], array('parent_id' => $values['product_id'])) : get_product($values['prod_id']); if ($_product && $_product->exists()) { $product_name = apply_filters('woocommerce_cart_item_name', $_product->get_title()); $thumbnail = apply_filters('woocommerce_cart_item_thumbnail', $_product->get_image()); //get price before showing the addon data as proce could change if (!isset($values['price'])) { $values['price'] = get_quotelist_product_price($_product); } $temp_arr = array(); if (class_exists('Product_Addon_Cart')) { $addon_cart_obj = new Product_Addon_Cart(); $temp_arr = dvin_wcql_get_add_on_list($addon_cart_obj, $values['price'], $_product, $values); } $addons_str = wc_get_formatted_variation($temp_arr, false); $price_in_html = apply_filters('woocommerce_cart_product_price', wc_price($values['price']), $_product); $price_in_html = apply_filters('woocommerce_cart_item_price', $price_in_html, '', ''); ?> <li> <?php if (!$_product->is_visible()) { ?> <?php echo str_replace(array('http:', 'https:'), '', $thumbnail) . $product_name; ?> <?php } else { ?>
if (!empty($values['variation_id'])) { $product_name_str .= woocommerce_get_formatted_variation(unserialize($values['variation_data']), false); } //get price before showing the addon data as proce could change if (!isset($values['price'])) { $unit_price = get_quotelist_product_price($product_obj); } else { $unit_price = $values['price']; } //get price before showing the addon data as proce could change //if addons extensions active if (class_exists('Product_Addon_Cart')) { $addon_cart_obj = new Product_Addon_Cart(); $temp_arr = dvin_wcql_get_add_on_list($addon_cart_obj, $unit_price, $product_obj, $values); } else { $temp_arr = dvin_wcql_get_add_on_list(array(), $unit_price, $product_obj, $values); } $addons_str = wc_get_formatted_variation($temp_arr, false); //if only set the price as visible NOT remove if ($add_price_col == 'on') { $unit_price_in_html = apply_filters('woocommerce_cart_product_price', wc_price($unit_price), $product_obj); $unit_price_in_html = apply_filters('woocommerce_cart_item_price', $unit_price_in_html, '', ''); //decide the quantity $quantity = isset($_POST['qty'][$product_obj->id]) ? $_POST['qty'][$product_obj->id] : $values['quantity']; $total_price = (double) $unit_price * (int) $quantity; $total_price_str = apply_filters('woocommerce_cart_item_price_html', woocommerce_price($total_price)); } else { //decide the quantity $quantity = isset($_POST['qty'][$product_obj->id]) ? $_POST['qty'][$product_obj->id] : $values['quantity']; } //handle hiiden elements/columns