【发布时间】:2020-09-01 02:46:55
【问题描述】:
在 OpenCart 2 中,我仅在“成功”/“谢谢”页面 (catalog/view/theme/*/template/common/success.tpl) 中编辑标题的外观/php。
所以,在 catalog/view/theme/*/template/common/header.tpl 我想做类似的事情:
if( $is_thank_you_page ){
echo "stuff";
// bonus: I wanted to get the order email but maybe it should be a different post
}
但是如果是“成功”/“谢谢”页面,我如何查看header.tpl?
我尝试在success.tpl 中设置一个变量,然后打印标题但没有结果。
【问题讨论】:
标签: php opencart opencart2.x