Need modify controller to supply image variable.
opencart/catalog/controller/module/category.php
Need to modify view.
opencart/catalog/view/theme/default/template/module/category.tpl
First add the image in the view
img src="/opencart/image/ $category['image']
don't forget the comma.
If you look in the database there is a table called
category with a column called image that has the url.
However, this is the big full size image we need to shrink it.
$this->load->model('tool/image');
this loads the tool
$image = $this->model_tool_image->resize($category['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
this shrinks the image found in database table category column image
Saturday, August 13, 2011
VQmod
http://www.vqmod.com
Important if you want to do custom modifications.
It uses XML script files to modify via regexp the PHP files
Important if you want to do custom modifications.
It uses XML script files to modify via regexp the PHP files
Images in Open Cart
You can use ftp.
Put all images in image/data folder
Also, can create subfolders.
So can be opencart/image/data/subfolderhere
Put all images in image/data folder
Also, can create subfolders.
So can be opencart/image/data/subfolderhere
Open Cart Getting
Download at opencart.com
Unzip
Copy contents of upload folder to
new folder called opencart on server
example
saverpluslighting.com/opencart
visit website when finish uploading.
Make sure to leave database suffix blank.
Make sure to create database[anyname]
Make sure to create user for database[anyname]
Make sure to grant that user drop,create, and other database privileges
Unzip
Copy contents of upload folder to
new folder called opencart on server
example
saverpluslighting.com/opencart
visit website when finish uploading.
Make sure to leave database suffix blank.
Make sure to create database[anyname]
Make sure to create user for database[anyname]
Make sure to grant that user drop,create, and other database privileges
Subscribe to:
Comments (Atom)