Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Theming Drupal 7's Ubercart "/cart" page

I'm trying to theme Drupal 7's Ubercart 3 /cart page, but I'm struggling to find the theming function to do so.

I believe the right code may be located in template.tpl.php, but I am not sure.

Where in Drupal is the code to theme this page?

like image 204
PapaSmurf Avatar asked Oct 21 '22 22:10

PapaSmurf


1 Answers

Create a new template file and name it page--cart.tpl.php

For more information about Drupal theming suggestions: http://drupal.org/node/1089656

(Don't forget to clear the cache after adding the new template file)

Another way to use Devel module with theme developer module to get all available theme suggestions.

Update:

If you are looking to style just the cart section, why don't use CSS. In Ubercart, the cart section has an div id div#cart-form-pane

like image 188
Muhammad Reda Avatar answered Nov 04 '22 18:11

Muhammad Reda