togliere link nel carrello ubercart
comeè togliere il link al prodotto nel "contenuto del carrello" che appare nel checkout
cioè vorrei la tabellina del carrello con i prodotti , ma senza il link alla pagina del prodotto.
come si fa a togliere?
la funzione nel modulo principale è questa
----------
function theme_uc_cart_review_table($variables) {
$items = $variables['items'];
$show_subtotal = $variables['show_subtotal'];
$subtotal = 0;
// Set up table header.
$header = array(
array('data' => theme('uc_qty_label'), 'class' => array('qty')),
array('data' => t('Products'), 'class' => array('products')),
array('data' => t('Price'), 'class' => array('price')),
);
// Set up table rows.
$display_items = uc_order_product_view_multiple($items);
if (!empty($display_items['uc_order_product'])) {
foreach (element_children($display_items['uc_order_product']) as $key) {
$display_item = $display_items['uc_order_product'][$key];
$subtotal += $display_item['total']['#price'];
$rows[] = array(
array('data' => $display_item['qty'], 'class' => array('qty')),
array('data' => $display_item['product'], 'class' => array('products')),
array('data' => $display_item['total'], 'class' => array('price')),
);
}
// var_dump($display_item['product']); die();
//echo $display_item['product'];
}
// Add the subtotal as the final row.
if ($show_subtotal) {
$rows[] = array(
'data' => array(
// One cell
array(
'data' => array(
'#theme' => 'uc_price',
'#prefix' => '<span id="subtotal-title">' . t('Subtotal:') . '</span> ',
'#price' => $subtotal,
),
// Cell attributes
'colspan' => 3,
'class' => array('subtotal'),
),
),
// Row attributes
'class' => array('subtotal'),
);
}
return theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('class' => array('cart-review'))));
}
/**
* Themes cart items on the checkout review order page.
*
* @param $variables
* An associative array containing:
* - items: An associative array of cart item information containing:
* - qty: Quantity in cart.
* - title: Item title.
* - price: Item price.
* - desc: Item description.
*
* @return
* A string of HTML for the page contents.
*
* @ingroup themeable
*/
function theme_uc_checkout_pane_cart_review($variables) {
$rows = array();
$items = uc_order_product_view_multiple($variables['items']);
foreach (element_children($items['uc_order_product']) as $key) {
$item = $items['uc_order_product'][$key];
$rows[] = array(
array('data' => $item['qty'], 'class' => array('qty')),
array('data' => $item['product'], 'class' => array('products')),
array('data' => $item['total'], 'class' => array('price')),
);
}
return theme('table', array('rows' => $rows, 'attributes' => array('class' => array('cart-review'))));;
}
------------------
come fare l'override di
array('data' => $display_item['product'], 'class' => array('products')),
togliendo il link?
