Zencart Integration Module
Integrates Gallery2 and Zencart 1.3.9
Author: Dayo Akanji
Current version: 3.3.0
Gallery Version: Gallery 2.3.1
Download the module files here.
Download a patched version of Zencart 1.3.9f here.
This patched version has the module files required on the zencart side preintegrated and will make installation easier.
If you will rather use the official Zencart 1.3.9f Release and carry out all the required installation steps yourself, you can get it here.
Visit the Support Site for enquiries and support requests.
Contents |
The Gallery2/Zencart integration module allows users to organize their photos and other multimedia files in Gallery2, a web-based photo album organizer, while simultaneously offering them for sale through Zencart, a powerful open source e-commerce application. This module was originally developed for Zencart 1.2.7 as part of Google's 2005 Summer of Code by Michael Rodriguez-Torrent. Additional work by Chuck Redman to update it for Zencart 1.3.7. Updates for Zencart 1.3.7 finalised by Dayo Akanji (24/10/2007). Updated for Zencart 1.3.8 (11/01/2008) and then for 1.3.9 (16/06/2010) by Dayo Akanji.
Problem Solution Help! I get a host of errors after trying to add images to my gallery with the module activated. If this is happening with an empty gallery and those are the first images being added, you are probably using a version before Version 3.1.0. If this is the case, upgrade to current version and try again. If the problem persists, deactivate or uninstall the module in Site Admin, add a couple of images to the gallery and then reactivate the module. Help! Thumbnails for Gallery products are not displayed in Zencart in some instances. This may be caused by a limitation in Zencart which restricts the length of the thumbnail URL. As a result, if you are not using URL rewrite or if your Zencart and Gallery2 directories are particularly far away, the URLs may be too long and thumbnails will not be displayed. To correct this, try activating URL rewrite. Alternatively, or if URL rewrite does not solve the problem, do the following:
- Run this query on your Zencart database (where "PREFIX_" is your Zencart table prefix, generally "zen_"): ALTER TABLE `PREFIX_products` CHANGE `products_image` `products_image` VARCHAR (255)
- Check the "Enable long thumbnail URLs" box in the Zencart module options in Gallery2.
- Deactivate and reactivate the module to update the thumbnails in Zencart.
- The above ALTER may also be needed for the categories_image column of categories table.
Thumbnails for Gallery products are not displayed in Zencart at all. Make sure that Zencart is installed in a subdirectory of Gallery2. Category thumbnails in Zencart are squashed or not the right size. Set your album thumbnails and your Zencart subcategory images to the same dimensions. Items are added with a set quantity (9999) and I would like to offer an unlimited quantity (or a more limited quantity). Go to Gallery->Modules->Classes->GalleryZenCart.class and edit this line: "$data = array('products_quantity' => '9999.0',". Any new items you add should be imported into Zencart with the new quantity you set. To change existing items, run this query on your Zencart database (where "PREFIX_" is your Zencart table prefix, generally "zen_" & MY_QTY is the quantity you wish to assign as default): UPDATE `PREFIX_products` SET products_quantity = 'MY_QTY' where products_id = '*'. The order list only shows me the item title. Some of my items have the same title and I'd like to know where to find the right one. Please give your items unique titles. Every store has to have unique id numbers for items and since you are running a store, you have to do the same or things will descend into chaos. Note that a unque ID is appended to the item in Zencart though. I tried to change my integration category from Top to a subcategory and it moved all my categories, even non-Gallery ones. Change back to Top, deactivate, uninstall, and reinstall the module. Configure with your new category and reactivate the module. I deactivated the module and deleted the integration category in Zencart and now I can't reactivate the module to change it. Uninstall the module, reinstall, and configure with your new category choice. Delete the integration category only after you have selected a new one or have uninstalled the module. I want to set pricing per-item, offer a sale on a item, remove an option from an item etc. Go to your Zencart administration and edit the item as you would any other product. All custom pricing, options, and values you apply will remain until you uninstall the module. Please note that any custom quantities will be reset if the module is deactivated and reactivated. I have general or synchronization problems. Deactivating and reactivating the module in Gallery will resynchronize your entire Gallery with their Zencart Items and should cure any synchronization problems that have occurred for any reason (please report bugs!). Things are getting really ugly.
- unistall the module in Gallery2
- delete the Zencart category that held the Gallery2 products
- using your favourite database management software such as phpMyAdmin, delete all entries beginning with "zc_" (or whatever your Zencart Table Prefix is) in your Gallery2 ExternalIdMap table.
- Finally, reinstall the module in Gallery2.