Remove links in cart

Posts: 7
Joined: 05/23/2008

Hello,

I'm setting up a site that has no use of a detailed product view.

Is there a way to remove the link to the detail product view in the cart?

I tried to form_alter 'uc_cart_view_form' but the [title]['#value'] of each item is not modified to the value I wrote (e.g "test" instead of the <a href...>product name</a>)

thanks in advance,

--
magnus

Posts: 301
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

I have used some code before to do this...something like,

<?php
function your_module_form_alter($form_id, &$form) {
  if (
$form_id == 'uc_cart_view_form') {
    foreach (
$form['items'] as $key => $item) {
      if (!empty(
$item['title']['#value'])) {
       
$form['items'][$key]['title']['#value'] = "test";
      }
    }
  }
}
?>