Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何显示您可以分配给 Magento 中的类别的“活动到”时间。最终,我计划使用这些信息为客户网站上的一些短期销售创建倒计时 - 但我无法弄清楚要调用什么变量。
“活动日期”实际上是自定义设计日期,因此您可以在类别对象上使用 getCustomDesignTo() 调用它。
在 design\frontend\base\default\template\catalog\category\view.phtml 你可以运行,
echo $_category->getCustomDesignTo();
加载 $_category 之后。