问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/13856979/theming-drupal-7s-ubercart-cart-page