Theming Drupal 7's Ubercart “/cart” page

前提是你 提交于 2019-12-23 11:55:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!