You will find this code in dc_ajax_add_cart.module
function template_preproce...

Contribution Date
Technology
Contribution Project
Contribution Details

You will find this code in dc_ajax_add_cart.module

function template_preprocess_dc_ajax_shopping_cart(&$variables) { ... foreach ($line_item_list as $line_item) { if (property_exists($line_item, 'commerce_product')) { $product = commerce_product_load($line_item->commerce_product[LANGUAGE_NONE][0]['product_id']); if (variable_get('dc_ajax_add_cart_update_quantity', 0) == 1) { $updateable_quantity = drupal_get_form('dc_ajax_add_cart_update_quantity_' . $line_item->line_item_id, $line_item); $quantity = drupal_render($updateable_quantity); } else { $quantity = intval($line_item->quantity); } $row[] = array( array('data' => $quantity, 'class' => array('quantity')), array('data' => $product->title, 'class' => array('name')), array('data' => $product_prices[$product->product_id], 'class' => array('price')), array( 'data' => l(variable_get(DC_AJAX_ADD_CART_REMOVE_CART, 'link') == 'link' ? t('Remove from cart') : $image_remove_cart, 'remove-product/nojs/' . $line_item->line_item_id, array( 'attributes' => array( 'class' => array('use-ajax'), ), 'html' => TRUE)), 'class' => array('remove-from-cart')), ); } } ... }

array('data' => $product->title, 'class' => array('name')), this is the code that generates product title. You can use this code in your custom theme template preprocess, and override it there, and then use thise code to generate the cart markup:

$variables['products_list_html'] = theme('table', array( 'header' => $header, 'rows' => $row, 'attributes' => array( 'class' => array('ajax-shopping-cart-table'), ), 'sticky' => FALSE, ));
Contribution Author
Files count
0
Patches count
0