所讨论的界面是从Prestashop来的。它用在一个模块里。问题是,为了与Prestashop的多个版本兼容,代码必须处理不存在WidgetInterface的情况。在测试接口的存在并随后导入它时,我在考虑如下:
if (interface_exists('PrestaShop\PrestaShop\Core\Module\WidgetInterface')) {us
我是Prestashop的新手,我试图添加一个新的“按”排序“字段”(默认情况下,您有:“相关性”、“名称、A到Z”、“名称、Z到A”、“价格,从低到高”、“价格,从高到低”)我需要复制/粘贴的Ps_facetedsearch模块中的行,以便添加一个额外的“按排序”字段: // of a module.
];
/prestashop-suite/PrestaShop/vendor/composer/autoload_real.php on line 5# Time Memory/PrestaShop/app/bootstrap.php.cache' ) .../PrestaShop/app/autoload.php