1、template.php

/**
 * Implements hook_theme().
 */
function yourtheme_theme($existing, $type, $theme, $path) {
  $base = array(
    'render element' => 'form',
    'path' => drupal_get_path('theme', 'yourtheme') . '/templates/forms',
  );
  return array(
    'commerce_checkout_form_checkout' => $base + array(
      'template' => 'commerce-checkout-form-checkout',
    ),
  );
}
/**
 * Preprocessor for commerce_checkout_form_checkout theme.
 */
function yourtheme_preprocess_commerce_checkout_form_checkout(&$variables) {
  /* Add or modify your variables */
}

2、/templates/forms/commerce-checkout-form-checkout.tpl.php

// Render or hide parts of $form: var_export($form);
// Example given:
hide($form['title']);
print render($form['first']);
// Render remaining form elements as usual.
print drupal_render_children($form);

最新文章

  1. 约瑟夫问题(java实现)
  2. 网络抓包工具-Wireshark学习资料
  3. PHP中GPC
  4. 《孙子算经》之"物不知数"题:中国剩余定理
  5. VS2010编译Qt5.4.0静态库
  6. 258. Add Digits
  7. <span> <div> 局部 keydown ,keyup事件。页面部分div $(document) 无效,可能焦点,添加焦点。
  8. HTML5 Canvas 绘制时钟
  9. Visualsvn Server的搭建
  10. spring 入门笔记(一)
  11. IOS成长之路-Nsstring中搜索方法rangeOfString
  12. POJ1845 数论 二分快速取余
  13. Android 常用代码片小结
  14. 初识Python装饰器
  15. UVA - 11090 - Going in Cycle!!(二分+差分约束系统)
  16. Hdoj 1847.Good Luck in CET-4 Everybody! 题解
  17. 详细说明进程管理工具htop、vmstat等相关命令
  18. Redis-Sentinel 哨兵
  19. 读vue-0.6-observer.js源码
  20. ftrace利器之trace-cmd和kernelshark

热门文章

  1. C++ 求幂的运算符是什么?
  2. python的上下文管理
  3. pip源配置
  4. cisco packet 实验教程(二)
  5. 深入Java数据类型
  6. SQLite的Pragma语句
  7. 牛客网暑期ACM多校训练营 记录
  8. JDBC-oracle(登陆)
  9. 基于http的断点续传和多线程下载
  10. 我的CSS初始化,reset.css