<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>damonparker.org &#187; Software</title>
	<atom:link href="http://damonparker.org/blog/category/technical/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://damonparker.org</link>
	<description>code / ecommerce / life</description>
	<lastBuildDate>Thu, 24 Feb 2011 21:29:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zencart Inventory Report Update v0.9.2</title>
		<link>http://damonparker.org/blog/2007/03/18/zencart-inventory-report-update-v092/</link>
		<comments>http://damonparker.org/blog/2007/03/18/zencart-inventory-report-update-v092/#comments</comments>
		<pubDate>Sun, 18 Mar 2007 15:35:05 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Sites]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/03/18/zencart-inventory-report-update-v092/</guid>
		<description><![CDATA[Feedback from users prompted me to add an extra column to the report display&#8230; the master category. The master_category_id is listed in the products table and is generally the category the product was originally created in (unless changed later). The report won&#8217;t show every category a product is listed in if the product has been [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Feedback from users prompted me to add an extra column to the report display&#8230; the master category.  The master_category_id is listed in the products table and is generally the category the product was originally created in (unless changed later).  The report won&#8217;t show every category a product is listed in if the product has been linked to multiple categories.</p>
<p><a href="http://damonparker.org/files/zen_inventory_report.tar.gz">Download ZenCart Inventory Report</a> </p>
<p><em>Thanks to <a href="http://www.first-class-hosting.com/" rel="external">Ron</a> for the <a href="http://damonparker.org/blog/donationware/">donation</a> to help out with these feature additions.</em></p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=328" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=328&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/03/18/zencart-inventory-report-update-v092/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Revision History Plugin</title>
		<link>http://damonparker.org/blog/2007/03/12/wordpress-revision-history-plugin/</link>
		<comments>http://damonparker.org/blog/2007/03/12/wordpress-revision-history-plugin/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 21:24:15 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Sites]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/03/12/wordpress-revision-history-plugin/</guid>
		<description><![CDATA[Editing a post is a necessity from time to time, especially with any type of coding related blog. I particularly like to keep older posts up to date with revised download links as new versions are released. This prevents a user following a link off of a search engine to an old post and downloading [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Editing a post is a necessity from time to time, especially with any type of coding related blog.  I particularly like to keep older posts up to date with revised download links as new versions are released.  This prevents a user following a link off of a search engine to an old post and downloading an old version of one of my pieces of code.  Surprisingly, I could not find a <a href="http://wordpress.org" rel="external">WordPress</a> plugin to do just this.  This tiny plugin allows you to attach timestamped revision tags to a post using the WordPress metadata system.</p>
<p>For an example in action see the <a href="http://damonparker.org/blog/2007/03/12/wordpress-revision-history-plugin/#history">Post History</a> heading after this post.</p>
<h4>Installation</h4>
<ol>
<li>Download and unzip <a href="http://damonparker.org/files/wp_revision_history.zip">wp_revision_history.zip</a></li>
<li>Upload revision_history.php to your WordPress <em>wp-content/plugins/</em> directory.</li>
<li>Add the following CSS to your stylesheet.  Change CSS to match your site layout.
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#revision-date&nbsp; <span style="color: #66cc66;">&#123;</span></span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #66cc66;">:</span> 3px 5px 3px 12px<span style="color: #66cc66;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">bold</span><span style="color: #66cc66;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #66cc66;">:</span> #<span style="color: #cc66cc;">333</span><span style="color: #66cc66;">;</span><br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#revision &nbsp; <span style="color: #66cc66;">&#123;</span></span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #66cc66;">:</span> 2px 5px 8px 18px<span style="color: #66cc66;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #66cc66;">:</span> #<span style="color: #cc66cc;">555</span><span style="color: #66cc66;">;</span><br />
<br />
<span style="color: #66cc66;">&#125;</span></div></div>
</li>
<li>Add the following snippet to your template where you want a post&#8217;s revision<br />
	history to display</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #000066;">function_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wp_has_history'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&amp;&amp;</span> wp_has_history<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;h3&gt;Post History&lt;/h3&gt;<br />
&lt;div class=&quot;cmeta&quot; style=&quot;bottom-margin: 20px;&quot; id=&quot;history&quot;&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_history<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/div&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?</span>&nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
</li>
</ol>
<h4>Usage</h4>
<p>To add a revision tag to a post, add a new custom field named &#8216;history&#8217; to the post.  Set the custom field&#8217;s value to the revision note text.  Multiple revision tags may be made to the same post by adding more custom fields with the key &#8216;history&#8217;.  Each note will be automatically timestamped.  The history listing will be sorted by the timestamp value.</p>
<h4>Download <a href="http://damonparker.org/files/wp_revision_history.zip">WordPress Revision History</a></h4>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=322" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=322&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/03/12/wordpress-revision-history-plugin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ZenCart Inventory Report</title>
		<link>http://damonparker.org/blog/2006/11/29/zencart-inventory-report/</link>
		<comments>http://damonparker.org/blog/2006/11/29/zencart-inventory-report/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 17:36:23 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/29/zencart-inventory-report/</guid>
		<description><![CDATA[Here&#8217;s a simple admin report for ZenCart that will generate an inventory report with per product totals and a report total. The report may be paginated or generated over the whole catalog. The report was created by modifying the ZenCart default Products Viewed report. It was created from the ZenCart v1.2x source but has been [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s a simple admin report for <a href="http://zencart.com" rel="external">ZenCart</a> that will generate an inventory report with per product totals and a report total.  The report may be paginated or generated over the whole catalog.</p>
<p>The report was created by modifying the ZenCart default Products Viewed report.  It was created from the ZenCart v1.2x source but has been installed on v1.3x versions.  This is the first release, so any problems please comment below.</p>
<p>In future updates, I would like to allow for CSV export as well as reporting by category.</p>
<p>To install, simply unzip and upload to your main ZenCart install directory.</p>
<p><a href="http://damonparker.org/files/zen_inventory_report.tar.gz"><br />
<h4>ZenCart Inventory Report</h4>
<p></a></p>
<p><a href="http://damonparker.org/releases.php?file=zen_inventory_report">View all releaseas</a></p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=282" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=282&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/11/29/zencart-inventory-report/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ZenCart Reports Search Function</title>
		<link>http://damonparker.org/blog/2006/11/09/zencart-reports-search-function/</link>
		<comments>http://damonparker.org/blog/2006/11/09/zencart-reports-search-function/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 18:29:20 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/09/zencart-reports-search-function/</guid>
		<description><![CDATA[The ZenCart default reports are sufficient for most uses, but with many products pages of results are a pain to look through. Adding a search is pretty simple. The example below adds a search to the products purchased report: Add the search box and form: admin/stats_products_purchased.php Line ~#64 BEFORE: &#60;/table&#62;&#60;/td&#62; &#60;/tr&#62; &#60;tr&#62; &#60;td&#62;&#60;table border=&#34;0&#34; width=&#34;100%&#34; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The <a href="http://zencart.com" rel="external">ZenCart</a> default reports are sufficient for most uses, but with many products pages of results are a pain to look through.  Adding a search is pretty simple.  The example below adds a search to the products purchased report:</p>
<p>Add the search box and form:<br />
admin/stats_products_purchased.php Line ~#64</p>
<p>BEFORE:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;</span></a><span style="color: #66cc66;">/</span>table&gt;<a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftd%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span><br />
<span style="color: #009900;">&lt;td&gt;<a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etable.html"><span style="color: #000000; font-weight: bold;">&lt;table</span></a> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span><a href="http://december.com/html/4/element/%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div></div>
<p>AFTER:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;</span></a><span style="color: #66cc66;">/</span>table&gt;<a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftd%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Eform.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stats_products_purchased.php&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;get&quot;</span><a href="http://december.com/html/4/element/%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etd.html"><span style="color: #000000; font-weight: bold;">&lt;td</span></a> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span><a href="http://december.com/html/4/element/%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Eb%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;b&gt;</span></a></span>Search<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Fb%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/b&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Einput.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;search&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $_GET['search']; ?&gt;</span></span>&quot;/&gt;<br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Einput.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Go&quot;</span> <span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftd%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/td&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Fform%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3E%2Ftr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></a></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etr%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span><br />
<span style="color: #009900;">&lt;td&gt;<a href="http://december.com/html/4/element/%26amp%3Blt%3CSEMI%3Etable.html"><span style="color: #000000; font-weight: bold;">&lt;table</span></a> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span><a href="http://december.com/html/4/element/%26amp%3Bgt%3CSEMI%3E.html"><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div></div>
<p>Add the processing to the query:<br />
admin/stats_products_purchased.php Line ~#84</p>
<p>BEFORE:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&amp;&amp;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0000ff;">$rows</span> = <span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">*</span> MAX_DISPLAY_SEARCH_RESULTS_REPORTS - MAX_DISPLAY_SEARCH_RESULTS_REPORTS;<br />
<br />
<span style="color: #808080; font-style: italic;">// The following OLD query only considers the &quot;products_ordered&quot; value from the products table.</span><br />
<span style="color: #808080; font-style: italic;">// Thus this older query is somewhat deprecated</span><br />
&nbsp; <span style="color: #0000ff;">$products_query_raw</span> = <span style="color: #ff0000;">&quot;select p.products_id, p.products_ordered, pd.products_name from &quot;</span> . TABLE_PRODUCTS . <span style="color: #ff0000;">&quot; p, &quot;</span> . TABLE_PRODUCTS_DESCRIPTION . <span style="color: #ff0000;">&quot; pd where pd.products_id = p.products_id and pd.language_id = '&quot;</span> . <span style="color: #0000ff;">$_SESSION</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'languages_id'</span><span style="color: #66cc66;">&#93;</span>. <span style="color: #ff0000;">&quot;' and p.products_ordered &gt; 0 group by pd.products_id order by p.products_ordered DESC, pd.products_name&quot;</span>;</div></div>
<p>AFTER:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&amp;&amp;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0000ff;">$rows</span> = <span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'page'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">*</span> MAX_DISPLAY_SEARCH_RESULTS_REPORTS - MAX_DISPLAY_SEARCH_RESULTS_REPORTS;<br />
&nbsp; <br />
<span style="color: #808080; font-style: italic;">//11/03/06 21:40 &nbsp;damonp add search</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'search'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">!</span>= <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$db_search</span> = <span style="color: #ff0000;">&quot;AND (pd.products_id = '&quot;</span>.<span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'search'</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;' OR pd.products_name LIKE '%&quot;</span>.<span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'search'</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;%')&quot;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #808080; font-style: italic;">// The following OLD query only considers the &quot;products_ordered&quot; value from the products table.</span><br />
<span style="color: #808080; font-style: italic;">// Thus this older query is somewhat deprecated</span><br />
&nbsp; <span style="color: #0000ff;">$products_query_raw</span> = <span style="color: #ff0000;">&quot;select p.products_id, p.products_ordered, pd.products_name from &quot;</span> . TABLE_PRODUCTS . <span style="color: #ff0000;">&quot; p, &quot;</span> . TABLE_PRODUCTS_DESCRIPTION . <span style="color: #ff0000;">&quot; pd where pd.products_id = p.products_id and pd.language_id = '&quot;</span> . <span style="color: #0000ff;">$_SESSION</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'languages_id'</span><span style="color: #66cc66;">&#93;</span>. <span style="color: #ff0000;">&quot;' and p.products_ordered &gt; 0 $db_search group by pd.products_id order by p.products_ordered DESC, pd.products_name&quot;</span>;</div></div>
<p>This simple mod will search the products_id and products_name fields.  Adding a search to the other reports is similar.  One only needs to adjust the query to match the applicable fields for the report.</p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=277" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=277&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/11/09/zencart-reports-search-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZenCart Simple Attributes Stock Tracking</title>
		<link>http://damonparker.org/blog/2006/06/12/zencart-simple-attributes-stock-tracking/</link>
		<comments>http://damonparker.org/blog/2006/06/12/zencart-simple-attributes-stock-tracking/#comments</comments>
		<pubDate>Mon, 12 Jun 2006 23:30:26 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/06/12/zencart-simple-attributes-stock-tracking/</guid>
		<description><![CDATA[I developed a quantity by attribute modification for ZenCart for a client about six months ago. It has been working very well for them, but it only supports simple attributes. Size OR color OR fabric not size AND color or size AND fabric. The complexity and time involved with maintaining such a detailed inventory of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I developed a quantity by attribute modification for <a href="http://zencart.com" rel="external">ZenCart</a> for a client about six months ago.  It has been working very well for them, but it only supports simple attributes.  Size OR color OR fabric not size AND color or size AND fabric.  The complexity and time involved with maintaining such a detailed inventory of their 1,000&#8242;s of products steered us both away from that.  Instead they were able to make intelligent choices on which attribute to track for a given type of product so that their inventories are very close without the added complexity.</p>
<p>An example:<br />
<a href="http://www.pimpcostumes.com/costumes/Hos-Sexy-Shoes/Sexy-Heels-Orbit-Red/643,139" rel="external">http://www.pimpcostumes.com/&#8230;/Hos-Sexy-Shoes/Sexy-Heels-Orbit-Red/643,139</a></p>
<p>The size select box should have some items that show as low stock.</p>
<p>Thanks to another client who needed a similar modification, I was able to more generalize the mod more and roll it into a contribution for <a href="http://zencart.com" rel="external">ZenCart</a>.</p>
<h3>Download <a href="http://damonparker.org/files/zencart_attributes_quantity.zip">zencart_attributes_quantity.zip</a></h3>
<p><em>This is a first draft release, so if you find any issues, please <a href="http://damonparker.org/contact.php?subject=ZCA Beta">forward me</a> your Zencart version, the issue you encountered and a solution if you found one.</em></p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=257" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=257&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/06/12/zencart-simple-attributes-stock-tracking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ZenCart Sales Report State Filter</title>
		<link>http://damonparker.org/blog/2006/06/05/zencart-sales-report-state-filter/</link>
		<comments>http://damonparker.org/blog/2006/06/05/zencart-sales-report-state-filter/#comments</comments>
		<pubDate>Mon, 05 Jun 2006 15:44:35 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/06/05/zencart-sales-report-state-filter/</guid>
		<description><![CDATA[The ZenCart Sales Report contribution allows a site owner to easily and quickly generate sales reports with many different filters. The one missing filter was a state or local zone filter. This filter would be useful for figuring out total local sales for state sales tax purposes. I have updated the contribution to include this [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The <a href="http://www.zen-cart.com/index.php?main_page=product_contrib_info&#038;products_id=83" rel="external">ZenCart Sales Report</a> contribution allows a site owner to easily and quickly generate sales reports with many different filters.  The one missing filter was a state or local zone filter.  This filter would be useful for figuring out total local sales for state sales tax purposes. </p>
<p>I have updated the contribution to include this filter.</p>
<p>Thanks to Frank Koehl for the orignal contribution.</p>
<p>Download <a href="http://damonparker.org/files/zen_sales_report_v1.4.1.zip">zen_sales_report_v1.4.1.zip</a> </p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=253" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=253&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/06/05/zencart-sales-report-state-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mint Pepper DLoads v0.74</title>
		<link>http://damonparker.org/blog/2006/03/06/mint-pepper-dloads-v074/</link>
		<comments>http://damonparker.org/blog/2006/03/06/mint-pepper-dloads-v074/#comments</comments>
		<pubDate>Mon, 06 Mar 2006 20:58:39 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/03/06/mint-pepper-dloads-v074/</guid>
		<description><![CDATA[DLoads v0.74 is released. This is a minor bugfix release. Upgrade is only necessary if you are having problems with variables being appended to your download links (like PHPSESSID=&#8230;). This problem was reported by some users who were using session.use_trans_sid to support cookie-less sessions. Changelog: Added routine to break apart request URI to remove any [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>DLoads v0.74 is released.</p>
<p>This is a minor bugfix release.  Upgrade is only necessary if you are having problems with variables being appended to your download links (like PHPSESSID=&#8230;).  This problem was reported by some users who were using <em>session.use_trans_sid</em> to support cookie-less sessions.</p>
<p>Changelog:</p>
<div class="code">
Added routine to break apart request URI to remove any variables passed in the URL
</div>
<p>Download: <a href="http://damonparker.org/releases.php?file=DLoads">DLoads v0.74</a><br />
Full DLoads Pepper infomation: <a href="http://damonparker.org/blog/pepper-dloads/">DLoads Pepper</a></p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=214" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=214&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/03/06/mint-pepper-dloads-v074/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mint Pepper DLoads v0.72</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/</link>
		<comments>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comments</comments>
		<pubDate>Wed, 22 Feb 2006 16:04:45 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=210</guid>
		<description><![CDATA[DLoads v0.72 is released. This is a minor bugfix release. Changelog: Moved mint->record below file delivery routine, corrects a header error on some servers Added ini_set() to turn off output compression, if on Added configuration var to set Abbr chars for long file name chopping in mint display Download: DLoads v0.72 Full DLoads Pepper infomation: [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>DLoads v0.72 is released.</p>
<p>This is a minor bugfix release.</p>
<p>Changelog:</p>
<div class="code">
Moved mint->record below file delivery routine, corrects a header error on some<br />
servers<br />
Added ini_set() to turn off output compression, if on<br />
Added configuration var to set Abbr chars for long file name chopping in mint display
</div>
<p>Download: <a href="http://damonparker.org/releases.php?file=DLoads">DLoads v0.72</a><br />
Full DLoads Pepper infomation: <a href="http://damonparker.org/blog/pepper-dloads/">DLoads Pepper</a></p>
<p>Thanks to Scott Boms at <a href="http://www.wishingline.com/notebook/archives/2006_02.php#000904" rel="external">â€¦On A Long Piece Of String</a> for information on a bug he found on his setup.</p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=210" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=210&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Mint Pepper DLoads v0.70</title>
		<link>http://damonparker.org/blog/2006/01/16/mint-pepper-dloads-v070/</link>
		<comments>http://damonparker.org/blog/2006/01/16/mint-pepper-dloads-v070/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 00:21:01 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=182</guid>
		<description><![CDATA[DLoads v0.70 Final is released. Changelog: Add compatibilty for Mint v1.2 Clean up filenames in DLoads pane Run filenames through abbr() to shorten long file names Add checks for additional _SERVER variables for downloaded file name Download: DLoads v0.7 Final Full DLoads Pepper infomation: DLoads Pepper DLoads versions greater than the last release (v0.5) will [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>DLoads v0.70 Final is released.</p>
<p>Changelog:</p>
<div class="code">
Add compatibilty for Mint v1.2<br />
Clean up filenames in DLoads pane<br />
Run filenames through abbr() to shorten long file names<br />
Add checks for additional _SERVER variables for downloaded file name
</div>
<p>Download: <a href="http://damonparker.org/releases.php?file=DLoads">DLoads v0.7 Final</a><br />
Full DLoads Pepper infomation: <a href="http://damonparker.org/blog/pepper-dloads/">DLoads Pepper</a></p>
<p>DLoads versions greater than the last release (<a href="http://damonparker.org/blog/2005/10/14/dloads-pepper-version-05/">v0.5</a>) will only work with Mint v1.2 or greater. </p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=182" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=182&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/01/16/mint-pepper-dloads-v070/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mint Pepper DLoads 0.70 Beta</title>
		<link>http://damonparker.org/blog/2006/01/06/mint-pepper-dloads-070-beta/</link>
		<comments>http://damonparker.org/blog/2006/01/06/mint-pepper-dloads-070-beta/#comments</comments>
		<pubDate>Fri, 06 Jan 2006 17:20:30 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2006/01/06/mint-pepper-dloads-070-beta/</guid>
		<description><![CDATA[I finally found the time to work out the issues in my DLoads Pepper for Mint. This release has only been tested on a couple of Mint v1.25 releases so, YMMV. The documentation still needs update a bit too, but the install should be straightforward on a v1.2x install. DLoads v0.7 Beta DLoads versions greater [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I finally found the time to work out the issues in my <a href="http://damonparker.org/blog/pepper-dloads/">DLoads Pepper</a> for <a href="http://www.haveamint.com" rel="external">Mint</a>.</p>
<p>This release has only been tested on a couple of Mint v1.25 releases so, YMMV.  The documentation still needs update a bit too, but the install should be straightforward on a v1.2x install.</p>
<p><a href="http://damonparker.org/files/DLoads.v0.7B.zip">DLoads v0.7 Beta</a></p>
<p>DLoads versions greater than the last release (<a href="http://damonparker.org/blog/2005/10/14/dloads-pepper-version-05/">v0.5</a>) will only work with Mint v1.2 or greater.</p>
 <img src="http://damonparker.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=174" width="1" height="1" style="display: none;" /><img src="http://damonparker.org/?ak_action=api_record_view&id=174&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2006/01/06/mint-pepper-dloads-070-beta/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using xcache
Database Caching 72/91 queries in 0.012 seconds using xcache
Content Delivery Network via cdn.damonparker.org/q9i5a4w8/cds/dp

Served from: damonparker.org @ 2012-02-04 14:19:45 -->
