我成功地为一些客户创建了一些完全定制的主题和模块。我最终选择了 Classic 主题(因为我们保证它是最新的)并剥离文件,每次 prestashop 仍然可以正常工作时进行测试。
我还使用 Prestashop 的源代码来确定哪些 tpl 是必要的(因为有时它不是那么简单)。
你可以摆脱很多 tpl 文件。实际上花了几天的时间才真正构建了一些非常小的东西。
这是我们在其中一个项目中使用的模板文件列表,它可能会对您有所帮助(我们合并了很多拆分为多个文件的 tpl 文件):
.
./catalog
./catalog/listing
./catalog/listing/product-list.tpl
./catalog/product.tpl
./catalog/_partials
./catalog/_partials/miniatures
./catalog/_partials/miniatures/product.tpl
./checkout
./checkout/cart-empty.tpl
./checkout/cart.tpl
./checkout/checkout-process.tpl
./checkout/checkout.tpl
./checkout/order-confirmation.tpl
./checkout/_partials
./checkout/_partials/address-form.tpl
./checkout/_partials/address-selector-block.tpl
./checkout/_partials/customer-form.tpl
./checkout/_partials/steps
./checkout/_partials/steps/addresses.tpl
./checkout/_partials/steps/payment.tpl
./checkout/_partials/steps/personal-information.tpl
./checkout/_partials/steps/shipping.tpl
./checkout/_partials/steps/unreachable.tpl
./cms
./cms/category.tpl
./cms/page.tpl
./cms/sitemap.tpl
./cms/stores.tpl
./contact.tpl
./customer
./customer/address.tpl
./customer/addresses.tpl
./customer/authentication.tpl
./customer/guest-login.tpl
./customer/guest-tracking.tpl
./customer/history.tpl
./customer/identity.tpl
./customer/my-account.tpl
./customer/order-detail.tpl
./customer/order-follow.tpl
./customer/order-return.tpl
./customer/order-slip.tpl
./customer/registration.tpl
./customer/_partials
./customer/_partials/address-form.tpl
./customer/_partials/customer-form.tpl
./customer/_partials/login-form.tpl
./errors
./errors/404.tpl
./errors/forbidden.tpl
./errors/maintenance.tpl
./index.tpl
./layouts
./layouts/layout.tpl
./page.tpl
./_partials
./_partials/form-errors.tpl
./_partials/form-fields.tpl
./_partials/subcategory_list.tpl
可能还有一些简化的空间,尤其是在“客户”部分。