Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Magento中显示类别的结束时间_Magento_Magento 1.5 - Fatal编程技术网

在Magento中显示类别的结束时间

在Magento中显示类别的结束时间,magento,magento-1.5,Magento,Magento 1.5,我将如何显示您可以分配给Magento中某个类别的“活动到”时间。最终,我计划使用此信息为客户网站上的一些短期销售创建倒计时,但我无法确定要调用哪个变量。活动日期实际上是一个自定义设计日期,因此您可以在类别对象上使用getCustomDesignTo()调用它 在design\frontend\base\default\template\catalog\category\view.phtml中,您只需运行 echo $_category->getCustomDesignTo(); 加载$

我将如何显示您可以分配给Magento中某个类别的“活动到”时间。最终,我计划使用此信息为客户网站上的一些短期销售创建倒计时,但我无法确定要调用哪个变量。

活动日期实际上是一个自定义设计日期,因此您可以在类别对象上使用getCustomDesignTo()调用它

在design\frontend\base\default\template\catalog\category\view.phtml中,您只需运行

echo $_category->getCustomDesignTo();

加载$\u类别后。

活动日期实际上是一个自定义设计日期,因此可以在类别对象上使用getCustomDesignTo()调用它

在design\frontend\base\default\template\catalog\category\view.phtml中,您只需运行

echo $_category->getCustomDesignTo();
加载$\u类别后。

尝试输出
var\u转储($category->getAttributes())
,查找您搜索的属性的名称,然后尝试类似于
$category->getActiveToDate()
的操作。尝试输出
var\u转储($category->getAttributes())
,查找您搜索的属性的名称,然后尝试类似于
$category->getActiveToDate()
的操作。