- 2010-07-28 - Resolved SQL join issues for the product model due to ambiguous "SELECT *" queries.
A complete patch that adds out-of-the-box manufacturer descriptions to a vanilla install source (the opencart archive's 'upload' directory). Apply patch prior to installation. The patch has been fairly well tested. Please let me know if any problems arise.
I hope this patch can get integrated into the source of the next release, since it will add a really basic (in my opinion, an overdue) feature to opencart.
Both the admin section and public frontend have been patched. Manufacturer descriptions are handled in exactly the same way as category descriptions in the admin section.
Minimal database changes were made (all included in the patch of the installation sql). So you don't have to make these changes manually, they are included in the patch. I just list them here for clarity.
The 'name' column has been removed from the manufacturer table:
Code: Select all
CREATE TABLE `oc_manufacturer` (
`manufacturer_id` int(11) NOT NULL AUTO_INCREMENT,
`image` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`sort_order` int(3) NOT NULL,
PRIMARY KEY (`manufacturer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=11 ;
Code: Select all
CREATE TABLE `oc_manufacturer_description` (
`manufacturer_id` int(11) NOT NULL,
`language_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
`meta_keywords` varchar(255) COLLATE utf8_bin NOT NULL,
`meta_description` varchar(255) COLLATE utf8_bin NOT NULL,
`description` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`manufacturer_id`,`language_id`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=11 ;
I am willing to help to integrate the changes upstream.
For now, I hope it helps someone who desperately needs the same functionality.
Some admin section screenshots:
Have Fun,
Werner
---
PLEASE NOTE: Do not patch your live site or a populated local opencart deployment. Apply patch prior to a new installation only.
NOTE: This patch was also posted to http://code.google.com/p/open-cart/issues/list.
EDIT: Patch File was updated to exclude white-space only changes.