/********************************************************************************* * Copyright (c) 2009, Darrell F Dieringer * www.electricdarrell.com * * This file is part of dfdZazzleStore. * * dfdZazzleStore is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * dfdZazzleStore is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with dfdZazzleStore. If not, see . * * dfdZazzleStore is based on code released in * Zazzle Store Builder 1.0.2 - a Zazzle.com product publishing tool */ README.txt For a working production example (as a Wordpress plugin), see... http://www.artofdancemadison.com/shop/ See also "README_WORDPRESS.txt" and "README_STANDALONE.txt" for other important information about installation, configuration, and usage. WHERE "dfdZazzleStore" COMES FROM... "dfdZazzleStore is based on Zazzle Store Builder v1.0.2 (from zazzle.com). However, I have adapted some parts of it, completely overhauled other parts of it, as well as written my own code so that: (1) it will work as a WordPress plugin (2) multiple store grids work well (including pagination and sorting) (3) it does not use uninitialized variables - zazzle's original code caused a lot of warning messages to be logged to the apache error log (4) the querystring is no longer used for passing configuration settings. supports only the querystring arguments necessary for handling the following: pagination, sorting, and maintenance. Zazzle's unmodified code and documentation can be found here... http://www.zazzle.com/sell/tools/storebuilder WHAT "dfdZazzleStore" DOES... Displays merchandise available on Zazzle.com (either your own products or products from the Zazzle Marketplace) on your website. HOW "dfdZazzleStore" WORKS... "dfdZazzleStore" works using ONE of TWO possible methods of operation: (1) as a Wordpress Blog plugin - you must be running a Wordpress blog and have the ability to install plugins. - if using caching, you must have the ability to change write permissions on a directory - see "CACHING" (below) (2) as a completely stand-alone set of PHP scripts See separate README_WORDPRESS.txt and README_STANDALONE.txt for specific information. DESIGN GOALS... To provide a relatively-simple system for creating one or multiple Zazzle Store Grids on a user's website or Wordpress blog. To make it possible for users with little technical/programming skills to create attractive Zazzle Store Grids. To conceal from the user the "mechanical" parts of how the scripts communicate with zazzle.com, allowing the user to spend more time on layout or store content. To provide the wide base of Wordpress users with an easy system for incorporating Zazzle Store Grids into existing site content and layout. To use css to control presentation of Zazzle Store Grids. REQUIREMENTS... A web server to which you can upload files (the files in "dfdZazzleStore"). A web server that runs PHP. My development system uses PHP5, but I do not think there is anything in "dfdZazzleStore" that would prevent its use on PHP4 environments. (unconfirmed) To use "dfdZazzleStore" as a Wordpress plugin, you must have an installed and working Wordpress blog and the ability to create or edit pages/posts on your site. You must edit several important configuration variables in "/include/_defaultconfig.php" or remember to define appropriate overrides in every ZSTORE_GRID section (as described under "INLINE METHOD" in "/README_WORDPRESS.txt") LIMITATIONS... See "STYLE SHEET" (below). If using "dfdZazzleStore" as a Wordpress plugin, please consider all of the following: - Installation/configuration/alteration advice regarding your Wordpress blog or the theme(s) you use is beyond the scope of this plugin. You must have your own working knowledge regarding maintenance of your blog. - Depending on how you intend to use this plugin, you may need to edit Wordpress template files for your theme. "README_WORDPRESS.txt" and "README_STANDALONE.txt" may offer SUGGESTIONS or tell you to read code comments in specific files for SUGGESTIONS regarding which template files you may need to edit. - I do not know how every single Wordpress theme is designed, so I cannot promise that the suggestions will be correct. I do, however, want to point you in the right direction if I can. - If you disable this plugin through your Wordpress admin control panel, ZSTORE_GRID sections appearing in any page/post WILL DISPLAY AS TEXT. To avoid this behavior, I could have designed the ZSTORE_GRID section to appear inside an html comment section. However that confused Wordpress. Specifically, if markup tags ( , etc) appeared in GRID_DESCRIPTION while the entire ZSTORE_GRID section was inside an html comment, Wordpress deleted some of the tags. I believe this is a Wordpress bug related to how Wordpress attempts to insert a matching closing tag if you unintentionally leave a tag open. I didn't track it down, and instead designed around it. If you disable this plugin, you will need to either (1) delete existing ZSTORE_GRID sections in any page/post (2) wrap existing ZSTORE_GRID sections inside html comments. REMEMBER, a single "-->" closes every open "