首先,让我解释一下。我是Prestashop开发的新手,我有使用Wordpress的背景。问题是,我试图将'blockcart.php‘挂接到我的自定义钩子' hook _SHOPPINGBAG’。我已经尝试了很多,几个小时后,我决定在这里问这个问题。
首先,我在Prestashop数据库中创建了ps_hook内部的钩子。这个钩子工作正常,Prestashop读取它。之后,我将新钩子添加到FrontController.php,代码如下所示:
public function initContent()
{
$this->process();
if (!is
Prestashop 1.7.2.4
安装后,生成的.htaccess的第一行包含以下内容:
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com
从几天开始,我就遇到了Prestashop管理部门的问题。当我试图打开页面时,它不起作用了。
为了理解为什么,我打开_PS_MODE_DEV_ .这是完美的工作!
我将Prestashop升级到1.7.5,但仍然有相同的问题
现在,我不能在生产或切换的_PS_MODE_DEV_,当我需要去行政。
我试着检查服务器和PHP日志,但是没有任何报告。
发生什么事了?我该怎么解决呢?
以下是一些信息:
server Info Linux #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64
Server software: Apache
PHP Vers
该项目是PHP服务器中的Prestashop。我意外地将控制器/前台/ProductController.php的名称更改为ProductController.phps。我立即将其更改为ProductController.php。但是,在我重新加载页面后,系统返回带有错误的响应代码500:
ClassNotFoundException
Attempted to load class "Product" from the global namespace.
Did you forget a "use" statement for "PrestaShop\
我的Prestashop 1.4x安装在一个子目录中,例如: on Apache server。可以选择从admins生成Htaccess文件,这些文件被复制到/prestashop/目录中。它的位置是否正确,或者我应该将htaccess放到父(根)目录中?
示例:
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC C
我安装了Prestashop 1.7.3.3,在登录管理面板(后台)时遇到问题,前台工作正常。
当我尝试在我的浏览器上查看后台时,我得到:
( ! ) Fatal error: Cannot declare class ComposerAutoloaderInit637ded6dc8ff9e657131d3b1c456aaa1, because the name is already in use in /Users/ufk/projects/luckylee/prestashop/prestashop-suite/PrestaShop/vendor/composer/autoload_rea
如果PrestaShop基于三层体系结构(MVC),那么在主题中呈现.tpl文件的控制器的名称是什么?
例如myProject/themes/Default(“Prestashop中的默认主题”)/(.tpl文件)
或者在哪里可以找到呈现.tpl文件的控制器的位置?这样我才能增加更多的智能标签?
//Assume this file is the controller that renders the .tpl files in a theme
//I got this code for converting a php value to a smarty tag in creating a
昨天我们把主机版本从PHP7.0改成了7.3,在那之后我们的网站www.bofast.cz停止了工作,出现了一些错误。我们返回到7.0版,但它没有帮助。这是我们得到的错误: (1/1) ClassNotFoundException
Attempted to load class "Repository" from namespace "PrestaShop\PrestaShop\Core\Cldr".
Did you forget a "use" statement for e.g. "PrestaShop\PrestaShop\Co