| ';
$cart_thumbnail = '' . wp_get_attachment_image( $pictid, array(60, 60), true ) . '';
$row .= apply_filters('usces_filter_cart_thumbnail', $cart_thumbnail, $post_id, $pictid, $i,$cart_row);
$row .= ' | ' . esc_html($cartItemName) . ' ';
if( is_array($options) && count($options) > 0 ){
$optstr = '';
foreach($options as $key => $value){
if( !empty($key) ) {
$key = urldecode($key);
if(is_array($value)) {
$c = '';
$optstr .= esc_html($key) . ' : ';
foreach($value as $v) {
$optstr .= $c.nl2br(esc_html(urldecode($v)));
$c = ', ';
}
$optstr .= " \n";
} else {
$optstr .= esc_html($key) . ' : ' . nl2br(esc_html(urldecode($value))) . " \n";
}
}
}
$row .= apply_filters( 'usces_filter_option_cart', $optstr, $options);
}
$row .= apply_filters( 'usces_filter_option_info_cart', '', $cart_row, $args );
$row .= ' |
';
if( usces_is_gptekiyo($post_id, $sku_code, $quantity) ) {
$usces_gp = 1;
$Business_pack_mark = ' . '/images/gp.gif) ';
$row .= apply_filters('usces_filter_itemGpExp_cart_mark', $Business_pack_mark);
}
$row .= usces_crform($skuPrice, true, false, 'return') . '
|
';
$row_quant = '';
$row .= apply_filters( 'usces_filter_cart_rows_quant', $row_quant, $args );
$row .= ' |
' . usces_crform(($skuPrice * $cart_row['quantity']), true, false, 'return') . ' |
';
foreach($options as $key => $value){
if(is_array($value)) {
foreach($value as $v) {
$row .= '';
}
} else {
$row .= '';
}
}
$row .= '
|
';
return $row;
}
//Remove unused cell in the Table on confirmation page
add_filter('usces_filter_confirm_row', 'blanc_filter_confirm_row', 10, 3);
function blanc_filter_confirm_row($row, $cart, $materials){
extract($materials);
$row = '';
if (empty($options)) {
$optstr = '';
$options = array();
}
$row .= '
| ';
$cart_thumbnail = wp_get_attachment_image( $pictid, array(60, 60), true );
$row .= apply_filters('usces_filter_cart_thumbnail', $cart_thumbnail, $post_id, $pictid, $i, $cart_row);
$row .= ' | ' . $cartItemName . ' ';
if( is_array($options) && count($options) > 0 ){
$optstr = '';
foreach($options as $key => $value){
if( !empty($key) ) {
$key = urldecode($key);
if(is_array($value)) {
$c = '';
$optstr .= esc_html($key) . ' : ';
foreach($value as $v) {
$optstr .= $c.nl2br(esc_html(urldecode($v)));
$c = ', ';
}
$optstr .= " \n";
} else {
$optstr .= esc_html($key) . ' : ' . nl2br(esc_html(urldecode($value))) . " \n";
}
}
}
$row .= apply_filters( 'usces_filter_option_confirm', $optstr, $options);
}
$row .= ' |
' . usces_crform($skuPrice, true, false, 'return') . ' |
' . $cart_row['quantity'] . ' |
' . usces_crform(($skuPrice * $cart_row['quantity']), true, false, 'return') . ' |
';
return $row;
}