我试图削减一些代码来加快网站并找到Aclendar.phtml + JS并只是想知道,他们做了什么?

我的网站的主页没有任何日历代码,但如果您要打开内部页面,如 https://www.airyhair.com/tape-in-hair-extensions.html

它有这个:

'DHTML Date/Time Selector\n' +
"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" +
'For latest version visit: http://www.dynarch.com/projects/calendar/\n' +
'Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details.' +
'\n\n' +
'Date selection:\n' +
'- Use the \xab, \xbb buttons to select year\n' +
'- Use the \u2039 buttons to select month\n' +
'- Hold mouse button on any of the above buttons for faster selection.';
Calendar._TT["ABOUT_TIME"] = '\n\n' +
'Time selection:\n' +
'- Click on any of the time parts to increase it\n' +
'- or Shift-click to decrease it\n' +
'- or click and drag for faster selection.';

Calendar._TT["PREV_YEAR"] = 'Prev. year (hold for menu)';
Calendar._TT["PREV_MONTH"] = 'Prev. month (hold for menu)';
Calendar._TT["GO_TODAY"] = 'Go Today';
Calendar._TT["NEXT_MONTH"] = 'Next month (hold for menu)';
Calendar._TT["NEXT_YEAR"] = 'Next year (hold for menu)';
Calendar._TT["SEL_DATE"] = 'Select date';
Calendar._TT["DRAG_TO_MOVE"] = 'Drag to move';
Calendar._TT["PART_TODAY"] = ' (' + "today" + ')';

// the following is to inform that "%s" is to be the first day of week
Calendar._TT["DAY_FIRST"] = 'Display %s first';

// This may be locale-dependent. It specifies the week-end days, as an array
// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1
// means Monday, etc.
Calendar._TT["WEEKEND"] = "0,6";

Calendar._TT["CLOSE"] = 'Close';
Calendar._TT["TODAY"] = "today";
Calendar._TT["TIME_PART"] = '(Shift-)Click or drag to change value';

// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "%b %e, %Y";
Calendar._TT["TT_DATE_FORMAT"] = "%B %e, %Y";

Calendar._TT["WK"] = "Week";
Calendar._TT["TIME"] = 'Time:';
//]]>
.

是零售产品所需的吗?我从来没有看到我网站上的日历

有帮助吗?

解决方案

日历为自定义产品选项的日期输入(在Admin添加/编辑产品中创建期间)

要从您的产品详细信息页面上的标题中删除CSS(假设您没有日期输入类型的任何自定义产品属性)。

看看catalog_product_view / app/design/frontend/base/default/layout/catalog.xml

在您的local.xml

<catalog_product_view>
   <reference name="head">
      <action method="removeItem"><type>skin_css</type><name>calendar/calendar-win2k-1.css</name></action>
      .....
.

请参阅 magento从特定视图中删除CSS或JS

从页面删除代码

<catalog_product_view>
    <reference name="product_options_wrapper">
        <action method="unsetChild"><name>html_calendar</name></action>
    </reference>
</catalog_product_view>
.

请参阅 magento - 删除块使用更新xml

许可以下: CC-BY-SA归因
scroll top