图片不会加载到 opencart 中
我正在编写一个打开购物车模块,当我将鼠标悬停在某些
标签上时,该模块应该加载图片。我有两台电脑:我的 Linux 笔记本电脑和 Windows 桌面电脑,我的问题是当我在笔记本电脑上加载页面时,我的模块工作正常,但是当我将其加载到桌面上时,我看不到图片,当我按照图片的SRC属性我发现它有1*1的分辨率
if ($product_info)
{
if ($product_info['image'])
{
$image = $this->model_tool_image->resize($product_info['image'],
$setting['image_width'], $setting['image_height']);
$image_big = $this->model_tool_image->resize($product_info['image'], 300, 300);
}
else
{
$image = false;
$image_big = false ;
}
如果你熟悉open cart你就会知道这个代码;我想不通。
有人看到我的代码中存在问题吗?
I'm writing an open cart module that's supposed to load a picture when I hover on some <li>
tags.
I have two PCs: my laptop on linux and a Windows Desktop, my problem is my module works fine when I load the page on the laptop, but when I load it on my Desktop I can't see the picture, and when I followed the SRC attribute of the picture I found that it has a 1*1 resolution
if ($product_info)
{
if ($product_info['image'])
{
$image = $this->model_tool_image->resize($product_info['image'],
$setting['image_width'], $setting['image_height']);
$image_big = $this->model_tool_image->resize($product_info['image'], 300, 300);
}
else
{
$image = false;
$image_big = false ;
}
If you are familiar with open cart you will know this code; I can't figure it out.
Does any body see the problem in my code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你在两台机器上有两个不同版本的 OpenCart
在早期 1.5 和当前版本 (1.5.1.3.1) 之间,1.5.X 中两个不同版本的 opencart 之间的模块系统进行了一些更改
This sounds like you've got two different versions of OpenCart on the two machines
There were some changes made to the module system between two different versions of opencart in 1.5.X between the early 1.5 and the current version (1.5.1.3.1)