主播Drupal 7的Ubercart“/ cart”页 [英] Theming Drupal 7's Ubercart "/cart" page
问题描述
我正在尝试主题Drupal 7的Ubercart 3 / cart
页面,但我很难找到这样的主题功能。
I'm trying to theme Drupal 7's Ubercart 3 /cart
page, but I'm struggling to find the theming function to do so.
我相信正确的代码可能位于 template.tpl.php
中,但我不确定。
I believe the right code may be located in template.tpl.php
, but I am not sure.
Drupal中的哪个主题是这个页面的代码?
Where in Drupal is the code to theme this page?
推荐答案
创建一个新的模板文件命名为 page - cart.tpl.php
Create a new template file and name it page--cart.tpl.php
有关Drupal主题建议的更多信息: http://drupal.org/node/1089656
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)
另一种使用 Devel 模块与主题开发者模块来获取所有可用的主题建议。
Another way to use Devel module with theme developer module to get all available theme suggestions.
更新:
如果您正在寻找仅购物车部分的风格,为什么不使用CSS。在Ubercart,购物车部分有一个div id div#cart-form-pane
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
希望这有帮助.. 。穆罕默德。
Hope this helps... Muhammad.
这篇关于主播Drupal 7的Ubercart“/ cart”页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!