I've posted an issue on the Ubercart project page (http://drupal.org/node/1524376) looking for guidance on creating a module to remove all links to individual products from the cart and checkout pages.

Will my solution for removing links in Ubercart still work with this module, or will I have to implement something else to override this module too? I do have 'Ajaxify cart page' enabled.

Thanks so much! Wonderful module!

Comments

stewart.adam’s picture

Status: Active » Postponed

I'll start by noting that the 7.x version isn't officially supported at the moment; I recently took over development of this module from the previous maintainer and do not have the resources to develop the 7.x branch at the moment.

That said, in Drupal 6 there is a uc_ajax_cart_block_content.tpl.php file that you may copy to your theme folder and then override to style how the ajax cart block appears. It should function in the same way for D7.

tj99ay’s picture

Issue summary: View changes

In D7 the cart block template file only has:

print $item['title']; print $item['descr'];

therefore has anyone been able to find out how to remove the links in the cart?

Links appear to be set in uc_ajax_cart.module so can we put some of that code in template.php and change accordingly? If so, would it be a preprocess function?

Great module. Hope someone can help :-)

tj99ay’s picture

If it helps anyone I ended up putting:

print strip_tags($item['title']); print $item['descr'];

in the uc_ajax_cart_block_content.tpl file. The strip_tags takes away the HTML tags - in this case the A tag used in bit. Seems to do the job.