<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Struggle with OsCommerce</title>
	<atom:link href="http://strugglewithoscommerce.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://strugglewithoscommerce.wordpress.com</link>
	<description>How I try to build my own OsCommerce sites</description>
	<lastBuildDate>Sun, 27 Nov 2011 22:58:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='strugglewithoscommerce.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Struggle with OsCommerce</title>
		<link>http://strugglewithoscommerce.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://strugglewithoscommerce.wordpress.com/osd.xml" title="Struggle with OsCommerce" />
	<atom:link rel='hub' href='http://strugglewithoscommerce.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Slow Oscommerce site, Solution 2</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/10/07/slow-oscommerce-site-solution-2/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/10/07/slow-oscommerce-site-solution-2/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 08:37:44 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[Speeding up slow site]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA["Slow site"]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=326</guid>
		<description><![CDATA[My site Goodlivesbeads is still very slow, so searching on the internet for more solution to speed up the site. I found another solution on this page. Check out post 18. Solution 2 1. First add these lines in php admin: alter table banners add index idx_banners_group (banners_group); alter table banners_history add index idx_banners_history_banners_id (banners_id); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=326&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My site <a href="http://www.goodlivesbeads.nl/winkelen2/catalog/index.php?language=EN" target="_blank">Goodlivesbeads</a> is still very slow, so searching on the internet for more solution to speed up the site.</p>
<p>I found another solution on <a href="http://forums.osquantum.org/index.php?showtopic=341" target="_blank">this page</a>. Check out post 18.</p>
<p><strong>Solution 2</strong></p>
<p>1. First add these lines in php admin:</p>
<blockquote><p>alter table banners add index idx_banners_group (banners_group);<br />
alter table banners_history add index idx_banners_history_banners_id (banners_id);<br />
alter table currencies add index idx_currencies_code (code);<br />
alter table customers add index idx_customers_email_address (customers_email_address);<br />
alter table customers_basket add index idx_customers_basket_customers_id (customers_id);<br />
alter table customers_basket_attributes add index idx_customers_basket_att_customers_id (customers_id);<br />
alter table orders add index idx_orders_customers_id (customers_id);<br />
alter table orders_products add index idx_orders_products_orders_id (orders_id);<br />
alter table orders_products add index idx_orders_products_products_id (products_id);<br />
alter table orders_status_history add index idx_orders_status_history_orders_id (orders_id);<br />
alter table orders_products_attributes add index idx_orders_products_att_orders_id (orders_id);<br />
alter table orders_products_download add index idx_orders_products_download_orders_id (orders_id);<br />
alter table products add index idx_products_model (products_model);<br />
alter table products_attributes add index idx_products_attributes_products_id (products_id);<br />
alter table reviews add index idx_reviews_products_id (products_id);<br />
alter table reviews add index idx_reviews_customers_id (customers_id);<br />
alter table specials add index idx_specials_products_id (products_id);<br />
alter table zones add index idx_zones_to_geo_zones_country_id (zone_country_id);</p></blockquote>
<p>From all these lines, only the last line wasn&#8217;t allready on my site.</p>
<p>2. Add the next lines in php admin:</p>
<blockquote><p>ALTER TABLE `products_to_categories` DROP PRIMARY KEY;<br />
ALTER TABLE `products_to_categories` ADD INDEX `idx_p2c_categories_id` ( `categories_id` );<br />
ALTER TABLE `products_to_categories` ADD INDEX `idx_p2c_products_id` ( `products_id` );</p></blockquote>
<p><strong>Yeeeaaaahhhhhh , the lines of point 2 are really helping for now.</strong></p>
<p>I hope it stays that way. I really see a difference on my site and I think my customers will notice it too.</p>
<br />Posted in Speeding up slow site, Tips and Tricks Tagged: "Slow site", Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, tips &amp; tricks <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/326/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=326&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/10/07/slow-oscommerce-site-solution-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>
	</item>
		<item>
		<title>Update Ultimate SEO Urls to 2.2.2d.5 on Windows</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/10/03/update-ultimate-seo-urls-to-2-2-2d-5-on-windows/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/10/03/update-ultimate-seo-urls-to-2-2-2d-5-on-windows/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 13:47:39 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[050. Ultimate seo urls]]></category>
		<category><![CDATA[SEO Contribs and tips]]></category>
		<category><![CDATA["Ulitmate Seo Urls"]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=322</guid>
		<description><![CDATA[On 2-10-2009 there was an update for the Contrib Ultimate SEO Urls. I started with the normal thing for the update, to copy the seo.class.php to catalog/includes/classes. Then I followed the &#8220;normal&#8221; update procedure to open the file in the browser and after that set the configuration setting back to what they were before. Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=322&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On 2-10-2009 there was an update for the Contrib <a href="http://addons.oscommerce.com/info/2823" target="_blank">Ultimate SEO Urls</a>.</p>
<p>I started with the normal thing for the update, to copy the seo.class.php to catalog/includes/classes. Then I followed the &#8220;normal&#8221; update procedure to open the file in the browser and after that set the configuration setting back to what they were before.</p>
<p>Then I checked my all-products.php pages (those were part of the update changes), and to my surprise it wasn&#8217;t working. back to the forum. In the forum was written that you had to do some more staps this time.</p>
<p>1. Update admin/includes/functions/general.php with the lines in the install instruction.</p>
<p>2. Add an extra line to the .htacces or in case of the windows users to the httd.ini</p>
<p>I checked the lines for the .htaccess file and found out that I also missed two other ones. So my httpd.ini file now looks like this:</p>
<blockquote><p>[ISAPI_Rewrite]</p>
<p>UriMatchPrefix /catalog/<br />
UriFormatPrefix /catalog/</p>
<p># From Ultimate SEO URLs<br />
RewriteRule [^?]*-p-([^?]*)\.html(?:\?(.*))? /product_info.php\?products_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-c-([^?]*)\.html(?:\?(.*))? /index.php\?cPath=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-m-([^?]*)\.html(?:\?(.*))? /index.php\?manufacturers_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-pi-([^?]*)\.html(?:\?(.*))? /popup_image.php\?pID=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-t-([^?]*)\.html(?:\?(.*))? /articles.php\?tPath=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-a-([^?]*)\.html(?:\?(.*))? /article_info.php\?articles_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-au-([^?]*)\.html(?:\?(.*))? /articles.php\?authors_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-pr-([^?]*)\.html(?:\?(.*))? /product_reviews.php\?products_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-pri-([^?]*)\.html(?:\?(.*))? /product_reviews_info.php\?products_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-i-([^?]*)\.html(?:\?(.*))? /information.php\?info_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-links-([^?]*)\.html(?:\?(.*))? /links.php\?lPath=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-pm-([^?]*)\.html(?:\?(.*))? /info_pages.php\?pages_id=$1?2&amp;$2 [I,L]<br />
RewriteRule [^?]*-by-([^?]*)\.html(?:\?(.*))? /all-products.php\?fl=$1?2&amp;$2 [I,L]<br />
UriMatchPrefix<br />
UriFormatPrefix</p></blockquote>
<p>After adding all the changes and uploading the files to the server, my site seems to work fine now.</p>
<br />Posted in 050. Ultimate seo urls, SEO Contribs and tips Tagged: "Ulitmate Seo Urls", Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, SEO <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=322&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/10/03/update-ultimate-seo-urls-to-2-2-2d-5-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>
	</item>
		<item>
		<title>Slow Oscommerce site?</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/10/02/slow-oscommerce-site/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/10/02/slow-oscommerce-site/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:50:00 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[Speeding up slow site]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA["Slow site"]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=318</guid>
		<description><![CDATA[For a couple of weeks I have the feeling that my site Goodlivesbeads became very slow. I don&#8217;t know where that comes from. I did a lot of work on my site, so maybe there is a problem with one (or more) of the contributions. Or maybe my provider did something. I think it will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=318&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For a couple of weeks I have the feeling that my site <a href="http://www.goodlivesbeads.nl/winkelen2/catalog/index.php?language=EN" target="_blank">Goodlivesbeads</a> became very slow. I don&#8217;t know where that comes from. I did a lot of work on my site, so maybe there is a problem with one (or more) of the contributions. Or maybe my provider did something. I think it will be hard to find out what it is.</p>
<p>So I&#8217;m going to surf on the internet and see If I can find some solutions to the slow site.</p>
<p><strong>Solution 1</strong></p>
<p>The first thing that I found was a <a href="http://forums.oscommerce.com/index.php?s=4556e979dd064e2c5fca3e5ede71852e&amp;showtopic=279610&amp;mode=linear" target="_blank">forum post </a> from FWR Media. He found out that if your images on non secure page are loading as https, then you had to do what he did. I couldn&#8217;see if my images are loading that way, but I tried his solution, just in case.</p>
<p>1. In catalog/includes/application_top.php the following line sets the request type SSL or not.</p>
<blockquote><p>// set the type of request (secure or not)<br />
$request_type = (getenv(&#8216;HTTPS&#8217;) == &#8216;on&#8217;) ? &#8216;SSL&#8217; : &#8216;NONSSL&#8217;;</p></blockquote>
<p>For whatever reason my server was always returning ON even when not an SSL request.</p>
<p>This causes the base href of non secure pages to be https and causes ALL images to load as <a href="https://www.mysite.com/thisimage.php" target="_blank">https://www.mysite.com/thisimage.php</a> causing massive slowdown.</p>
<p>Changing the line to &#8230;</p>
<p>// set the type of request (secure or not)<br />
$request_type = (getenv(&#8216;SERVER_PORT&#8217;) == &#8217;443&#8242;) ? &#8216;SSL&#8217; : &#8216;NONSSL&#8217;;</p>
<p>2. catalog/includes/functions/general.php</p>
<p>Change:</p>
<p>if ( (ENABLE_SSL == true) &amp;&amp; (getenv(&#8216;HTTPS&#8217;) == &#8216;on&#8217;) ) { // We are loading an SSL page</p>
<p>Into:</p>
<p>if ( (ENABLE_SSL == true) &amp;&amp; (getenv(&#8216;SERVER_PORT&#8217;) == &#8217;443&#8242;) ) { // We are loading an SSL page</p>
<p>After implementing this solution I did have the feeling that some pages ar loading a little bit faster, but still not what I was used to. It really should have my prioroty from now on to get the site faster, because I have a lot of new products to add, and more products can make it even more slow.</p>
<p>So searching for more&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<!--c2--></p>
<br />Posted in Speeding up slow site, Tips and Tricks Tagged: "Slow site", Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, tips &amp; tricks <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=318&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/10/02/slow-oscommerce-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with Contribution Tracker</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/09/24/problems-with-contribution-tracker/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/09/24/problems-with-contribution-tracker/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:21:42 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[029. Contribution tracker]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[Contribution tracker]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=312</guid>
		<description><![CDATA[This morning I woke up, checked my site and found two warnings on the Contrib_tracker (Contribution 4815), one on the top of the page: Warning: Invalid argument supplied for foreach() in catalog\admin\contrib_tracker.php on line 119 The second warning was after the sentence &#8220;Latest OSC contribution&#8221;, the same sentence, but then on line 735 So I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=312&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning I woke up, checked my site and found two warnings on the Contrib_tracker (<a href="http://addons.oscommerce.com/info/4815" target="_blank">Contribution 4815</a>), one on the top of the page:</p>
<p><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>catalog\admin\contrib_tracker.php</strong> on line <strong>119</strong></p>
<p>The second warning was after the sentence &#8220;Latest OSC contribution&#8221;, the same sentence, but then on line 735</p>
<p>So I googled a little bit, but couldn&#8217;t found a real solution, only the same problems wit other contribs. In One forum I found a &#8220;solution&#8221; that I tried.</p>
<p><strong>Solution</strong></p>
<p>In catalog/admin/contrib_tracker.php, find </p>
<p>1. on line 119: foreach ($articlelist['item'] as $article ) {  </p>
<p>Before this add:</p>
<blockquote><p>if (is_array ($articlelist['item'])){</p></blockquote>
<p>2. add }    after </p>
<blockquote><p>// UPDATE THE CONTRIBUTIONS THAT ARE IN THE RSS FILE<br />
    tep_db_query(&#8220;UPDATE &#8221; . TABLE_CONTRIB_TRACKER . &#8221; SET status =&#8217;0&#8242;, contr_last_modified = &#8216;&#8221; . $osc_rss_pubdate . &#8220;&#8216; where contrib_name = &#8216;&#8221; . $thetitle . &#8220;&#8216; and last_update &lt; &#8216;&#8221; . $osc_rss_pubdate . &#8220;&#8216;&#8221;);<br />
  }<br />
}</p></blockquote>
<p>3.  find on line 737: foreach ($articlelist['item'] as $article ) {</p>
<p>Before this line add:</p>
<blockquote><p>if (is_array ($articlelist['item'])){</p></blockquote>
<p>4. add }    after</p>
<blockquote><p>echo &#8220;ERROR: Could not open RDF feed\n&#8221;;<br />
}</p></blockquote>
<p>After uploading my warnings were gone. Instead of that I saw the sentence</p>
<blockquote>
<ol>ERROR: Could not open RDF feed</ol>
</blockquote>
<p>So probably a problem on the OSC site. I hope it&#8217;s gone soon</p>
<br />Posted in 029. Contribution tracker Tagged: admin, Claudiavandijk.com, Contribution tracker, goodlivesbeads.nl, Oscommerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=312&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/09/24/problems-with-contribution-tracker/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>
	</item>
		<item>
		<title>Update Ultimate SEO urls to version 2.2.d</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/24/update-ultimate-seo-urls-to-version-2-2-d/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/24/update-ultimate-seo-urls-to-version-2-2-d/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 16:24:37 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[050. Ultimate seo urls]]></category>
		<category><![CDATA[SEO Contribs and tips]]></category>
		<category><![CDATA["Ulitmate Seo Urls"]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=303</guid>
		<description><![CDATA[The update to Ultimate Seo urls version 2.2.d is easy. I first made a screenshot of my settings in the control panel and I copied the special character conversion settings to Excell, so Icould easily copy them back later. The only thing you need to do with the installation is copy seo.class.php to catalog/includes/classes. After [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=303&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The update to Ultimate Seo urls version 2.2.d is easy.</p>
<p>I first made a screenshot of my settings in the control panel and I copied the special character conversion settings to Excell, so Icould easily copy them back later.</p>
<p>The only thing you need to do with the installation is copy seo.class.php to catalog/includes/classes. After that you call the file in your browser (www. yourdomain.com/catalog/includes/classes/seo_class.php). I didn&#8217;t see anything in my screen after opening the file, but at the admin site I saw that the configuration settings have changed.</p>
<p>In the admin I went to configuration/SEO Urls and changed back my settings. There is one new line:  Enable use Header tags as name. I left that to false, because I think the Ultimate seo Urls handels the names fine. After that I reseted Seo urls Cache, and finished.</p>
<p><strong>Screenshot Configuration settings:</strong></p>
<p><img class="alignleft size-full wp-image-305" title="050 Ultimateseourls3" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/050-ultimateseourls3.png?w=500&#038;h=317" alt="050 Ultimateseourls3" width="500" height="317" /></p>
<br />Posted in 050. Ultimate seo urls, SEO Contribs and tips Tagged: "Ulitmate Seo Urls", Claudiavandijk.com, goodlivesbeads.nl, Oscommerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=303&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/24/update-ultimate-seo-urls-to-version-2-2-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/050-ultimateseourls3.png" medium="image">
			<media:title type="html">050 Ultimateseourls3</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Simpler Admin session length controller</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-simpler-admin-session-length-controller/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-simpler-admin-session-length-controller/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 16:23:25 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[064. Simpler admin session length controller]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=296</guid>
		<description><![CDATA[Do you also hate the fact when you want to control something in your Admin, you are logged out again (for the hundredst time that day)? Then the contrib Simpler admin session length Controller is something for You too. This Contrib is very easy to install and only takes a couple of minutes work. Warning: be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=296&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you also hate the fact when you want to control something in your Admin, you are logged out again (for the hundredst time that day)? Then the contrib <a href="http://addons.oscommerce.com/info/5899" target="_blank">Simpler admin session length Controller</a> is something for You too.</p>
<p>This Contrib is very easy to install and only takes a couple of minutes work.</p>
<p><em>Warning: be careful if you copy any code from the blog. It is possible that WordPress breaks the code and that during copying whitespaces or other hidden caracters occur in your files, so always check if your codes look normal</em></p>
<p><strong>Installation</strong></p>
<p>1. Upload the row out of the installation file to you php admin.</p>
<blockquote><p>INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (471, &#8216;Admin Session Lifetime&#8217;, &#8216;MYSESSION_LIFETIME&#8217;, &#8217;3600&#8242;, &#8216;Length of time you can stay on one page in ADMIN, without a refresh, before you are required to log in. Measured in Seconds. (The value you set is added to 10 minutes, so that you can not set this to 0 and mess yourself up.)&#8217;, 15, 8, &#8217;2005-01-19 03:43:31&#8242;, &#8217;2005-01-19 03:30:25&#8242;, NULL, NULL);</p></blockquote>
<p>At my site the 471 in the row gave a duplicate error. So I checked my configuration table and the last used configuration_id was 626, so I changed it to 627.</p>
<p>2. Copy the replacement code to admin/includes/function/session.php</p>
<p>Finished with installation</p>
<p>In you admin you can set under the configuration &gt; sessions the time that you want to stay logged into the admin session.</p>
<p><strong>Screenshots (<a href="http://www.claudiavandijk.com/catalog/index.php?language=en" target="_blank">my site</a>)</strong></p>
<p><strong><img class="alignleft size-full wp-image-299" title="064 Simpler admin session length1" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/064-simpler-admin-session-length1.png?w=500&#038;h=114" alt="064 Simpler admin session length1" width="500" height="114" /><br />
</strong></p>
<br />Posted in 064. Simpler admin session length controller Tagged: admin, Claudiavandijk.com, goodlivesbeads.nl, Oscommerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=296&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-simpler-admin-session-length-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/064-simpler-admin-session-length1.png" medium="image">
			<media:title type="html">064 Simpler admin session length1</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Quantity price Breaks per product</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-quantity-price-breaks-per-product/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-quantity-price-breaks-per-product/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:53:15 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[063. Quantity Price break per Product]]></category>
		<category><![CDATA["Quantity Price Break"]]></category>
		<category><![CDATA[catalog]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=281</guid>
		<description><![CDATA[On the shop goodlivesbeads.nl I allready had installed the contrib Quantity Price per Product. I updated it a couple of days ago. Really a terrible contrib to install when you allready have other contribs like margin report, Ultra pics, Ms2 Html manager, tabedit etc. You have to be careful not to copy all the new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=281&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On the shop goodlivesbeads.nl I allready had installed the contrib Quantity Price per Product. I updated it a couple of days ago. Really a terrible contrib to install when you allready have other contribs like margin report, Ultra pics, Ms2 Html manager, tabedit etc. You have to be careful not to copy all the new code over the old code, and also be careful not to forget some code. So trying to install this on Claudiavandijk.com was a little bit faster, cause now I can use the code of the first site. That&#8217;s always better. I installed version 1.3.5 of 7-9-2008 and added the two shopping cart changes of 17-7-2009 after that.</p>
<p><em>Warning: be careful if you copy any code from the blog. It is possible that WordPress breaks the code and that during copying whitespaces or other hidden caracters occur in your files, so always check if your codes look normal</em></p>
<p><strong>Installation</strong></p>
<p>1. First copying the sql statements of price_breaks.sql in php admin.</p>
<p>2. Copying all the new files to their folders</p>
<p>3. Changes in catalog/index.php. Because of product descrition and new products Icon, my code looks a little bit different.  It looks like this now:</p>
<blockquote><p>// show the products of a specified manufacturer<br />
// BOF qpbpp<br />
if (isset($HTTP_GET_VARS['manufacturers_id'])) {<br />
if (isset($HTTP_GET_VARS['filter_id']) &amp;&amp; tep_not_null($HTTP_GET_VARS['filter_id'])) {<br />
// We are asked to show only a specific category<br />
// p.products_date_added to query for New Product Icon contribution<br />
$listing_sql = &#8220;select &#8221; . $select_column_list . &#8221; p.products_id, p.products_date_added, p.manufacturers_id, p.products_price, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &#8221; . TABLE_PRODUCTS . &#8221; p left join &#8221; . TABLE_PRODUCTS_DESCRIPTION . &#8221; pd, &#8221; . TABLE_MANUFACTURERS . &#8221; m, &#8221; . TABLE_PRODUCTS_TO_CATEGORIES . &#8221; p2c left join &#8221; . TABLE_SPECIALS . &#8221; s on &#8216;p.products_id = s.products_id&#8217; where p.products_status = &#8217;1&#8242; and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = &#8216;&#8221; . (int)$HTTP_GET_VARS['manufacturers_id'] . &#8220;&#8216; and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and p2c.categories_id = &#8216;&#8221; . (int)$HTTP_GET_VARS['filter_id'] . &#8220;&#8216;&#8221;;<br />
} else {<br />
// We show them all<br />
// p.products_date_added to query for New Product Icon contribution<br />
$listing_sql = &#8220;select &#8221; . $select_column_list . &#8221; p.products_id, p.products_date_added, p.manufacturers_id, p.products_price, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &#8221; . TABLE_PRODUCTS . &#8221; p left join &#8221; . TABLE_SPECIALS . &#8221; s on &#8216;p.products_id = s.products_id&#8217;, &#8221; . TABLE_PRODUCTS_DESCRIPTION . &#8221; pd, &#8221; . TABLE_MANUFACTURERS . &#8221; m where p.products_status = &#8217;1&#8242; and pd.products_id = p.products_id and pd.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = &#8216;&#8221; . (int)$HTTP_GET_VARS['manufacturers_id'] . &#8220;&#8216;&#8221;;<br />
}<br />
} else {<br />
// show the products in a given categorie<br />
if (isset($HTTP_GET_VARS['filter_id']) &amp;&amp; tep_not_null($HTTP_GET_VARS['filter_id'])) {<br />
// We are asked to show only specific catgeory<br />
// p.products_date_added to query for New Product Icon contribution<br />
$listing_sql = &#8220;select &#8221; . $select_column_list . &#8221; p.products_id, p.products_date_added, p.manufacturers_id, p.products_price, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &#8221; . TABLE_PRODUCTS . &#8221; p left join &#8221; . TABLE_SPECIALS . &#8221; s on &#8216;p.products_id = s.products_id&#8217;, &#8221; . TABLE_PRODUCTS_DESCRIPTION . &#8221; pd, &#8221; . TABLE_MANUFACTURERS . &#8221; m, &#8221; . TABLE_PRODUCTS_TO_CATEGORIES . &#8221; p2c where p.products_status = &#8217;1&#8242; and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = &#8216;&#8221; . (int)$HTTP_GET_VARS['filter_id'] . &#8220;&#8216; and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and p2c.categories_id = &#8216;&#8221; . (int)$current_category_id . &#8220;&#8216;&#8221;;<br />
} else {<br />
// We show them all<br />
// p.products_date_added to query for New Product Icon contribution<br />
$listing_sql = &#8220;select &#8221; . $select_column_list . &#8221; p.products_id, p.products_date_added, p.manufacturers_id, p.products_price, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &#8221; . TABLE_PRODUCTS_DESCRIPTION . &#8221; pd, &#8221; . TABLE_PRODUCTS . &#8221; p left join &#8221; . TABLE_MANUFACTURERS . &#8221; m on p.manufacturers_id = m.manufacturers_id left join &#8221; . TABLE_SPECIALS . &#8221; s on &#8216;p.products_id = s.products_id&#8217;, &#8221; . TABLE_PRODUCTS_TO_CATEGORIES . &#8221; p2c where p.products_status = &#8217;1&#8242; and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and p2c.categories_id = &#8216;&#8221; . (int)$current_category_id . &#8220;&#8216;&#8221;;</p></blockquote>
<p>4. catalog/product_info. I only added  p.products_qty_blocks, at the first instruction for this file.</p>
<p>The second instruction is the same, but the third is different. I use the no stock no checkout contrib for my website. So I had to add the code like this:</p>
<blockquote><p>&lt;?php<br />
if ($product_info['products_quantity'] &lt;=0) { ?&gt;<br />
&lt;td align=&#8221;right&#8221;&gt;&lt;?php echo tep_draw_hidden_field(&#8216;products_id&#8217;, $product_info['products_id']) . tep_image_button(&#8216;button_in_cart_na.gif&#8217;, IMAGE_BUTTON_IN_CART_NA); ?&gt;&lt;/td&gt;<br />
&lt;?php<br />
} else { ?&gt;<br />
&lt;?php // BOF qpbpp<br />
//&lt;td align=&#8221;right&#8221;&gt;&lt;?php echo tep_draw_hidden_field(&#8216;products_id&#8217;, $product_info['products_id']) . tep_image_submit(&#8216;button_in_cart.gif&#8217;, IMAGE_BUTTON_IN_CART);<br />
?&gt;<br />
&lt;td align=&#8221;right&#8221;&gt;<br />
&lt;table border=&#8221;0&#8243; align=&#8221;right&#8221;&gt;<br />
&lt;tr&gt;&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;?php echo TEXT_ENTER_QUANTITY . &#8220;:&#8221; . tep_draw_input_field(&#8216;cart_quantity&#8217;, $pf-&gt;adjustQty(1), &#8216;size=&#8221;6&#8243;&#8216;); ?&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;?php echo tep_draw_hidden_field(&#8216;products_id&#8217;, $product_info['products_id']) . tep_image_submit(&#8216;button_in_cart.gif&#8217;, IMAGE_BUTTON_IN_CART); ?&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;<br />
&lt;?php // EOF qpbpp ?&gt;</p></blockquote>
<p>5. catalog/admin/categories.php</p>
<p>This file is heavily edited in my shop. So with all the replacements I am very careful with what I add and what not. I try to see what&#8217;s new in the replacements and just add that code. There is nothing strange about it, so I don&#8217;t copy all the code here.</p>
<p>6. catalog/includes/classed/shopping_cart.php</p>
<p>It&#8217;s the same as with the categories.php file, be careful not to delete code from other contribs, just add the new code instead of replace all the new code.</p>
<p>7. The last instruction in catalog/includes/modules/product_listing.php is a little bit difficult. I don&#8217;t show prices in this shop for now, so also not in productlisting, but I do have the New products Icon and Products description installed. Why install this contrib then? Well I&#8217;m probably going to sell cards or posters of the photos that I make in the future,  so I&#8217;m preparing the site for this allready. My code looks like this now:</p>
<blockquote><p>switch ($column_list[$col]) {<br />
case &#8216;PRODUCT_LIST_MODEL&#8217;:<br />
$lc_align = &#8221;;<br />
$lc_text = &#8216;&amp;nbsp;&#8217; . $listing[$x]['products_model'] . &#8216;&amp;nbsp;&#8217;;<br />
break;<br />
case &#8216;PRODUCT_LIST_NAME&#8217;:<br />
// added for New Product Icon contribution<br />
//  2592000 = 30 days in the unix timestamp format<br />
if ( ($today_time &#8211; strtotime($listing[$x]['products_date_added'])) &lt; 2592000) {<br />
$listing[$x]['products_name'] .= &#8216;&amp;nbsp&#8217; . tep_image_button(&#8216;icon_newarrival.gif&#8217;, TEXT_ICON_NEW_PRODUCT. &#8216;&amp;nbsp;:&amp;nbsp;&#8217; . $listing[$x]['products_name'], &#8216;align=&#8221;middle&#8221;&#8216;);<br />
}<br />
// end addition<br />
$lc_align = &#8221;;<br />
if (isset($HTTP_GET_VARS['manufacturers_id'])) {<br />
$lc_text = &#8216;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_PRODUCT_INFO, &#8216;manufacturers_id=&#8217; . $HTTP_GET_VARS['manufacturers_id'] . &#8216;&amp;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . $listing[$x]['products_name'] . &#8216;&lt;/a&gt;&#8217;;<br />
} else {<br />
$lc_text = &#8216;&amp;nbsp;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? &#8216;cPath=&#8217; . $cPath . &#8216;&amp;&#8217; : &#8221;) . &#8216;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . $listing[$x]['products_name'] . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;<br />
}<br />
// Product description<br />
if (PRODUCT_LIST_DESCRIPTION &amp;&amp; $listing[$x]['products_description'] &amp;&amp; PRODUCT_LIST_DESCRIPTION_MAX_LENGTH)<br />
$lc_text .= &#8216;&lt;br&gt;&lt;table border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221;&gt;&lt;tr&gt;&lt;td&gt;&#8217; . tep_flatten_product_description($listing[$x]['products_description'],  &#8216; &lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_PRODUCT_INFO, &#8216;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . TEXT_MORE . &#8216;&lt;/a&gt;&#8217;) . &#8216;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#8217;;<br />
// Product description<br />
break;<br />
case &#8216;PRODUCT_LIST_MANUFACTURER&#8217;:<br />
$lc_align = &#8221;;<br />
// Auto Sort Mod Start &#8212;&#8212;<br />
if (PRODUCT_LIST_AUTOSORT == &#8216;True&#8217;) {<br />
// Add the Sort criteria to the URL<br />
$sortcol = PRODUCT_LIST_AUTOSORT_COL;<br />
if (PRODUCT_LIST_AUTOSORT_DIR == &#8216;Ascending&#8217;) {<br />
$autosort = $sortcol . &#8220;a&#8221;;<br />
} else {<br />
$autosort = $sortcol . &#8220;d&#8221;;<br />
}</p>
<p>$lc_text = &#8216;&amp;nbsp;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_DEFAULT, &#8216;manufacturers_id=&#8217; . $listing['manufacturers_id']);</p>
<p>$lc_text .= &#8216;&amp;page=1&amp;sort=&#8217; . $autosort . &#8216;&#8221;&gt;&#8217; . $listing['manufacturers_name'] . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;</p>
<p>} else {<br />
$lc_text = &#8216;&amp;nbsp;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_DEFAULT, &#8216;manufacturers_id=&#8217; . $listing[$x]['manufacturers_id']) . &#8216;&#8221;&gt;&#8217; . $listing[$x]['manufacturers_name'] . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;<br />
}</p>
<p>//    $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . &#8216;&#8221;&gt;&#8217;;<br />
// This was replaced: $lc_text = &#8216;&amp;nbsp;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_DEFAULT, &#8216;manufacturers_id=&#8217; . $listing['manufacturers_id']) . &#8216;&#8221;&gt;&#8217; . $listing['manufacturers_name'] . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;<br />
// Auto Sort Mod End &#8212;&#8212;&#8212;&#8211;<br />
break;<br />
case &#8216;PRODUCT_LIST_PRICE&#8217;:<br />
$lc_align = &#8216;right&#8217;;<br />
if (tep_not_null($listing['specials_new_products_price'])) {<br />
$lc_text = &#8216;&amp;nbsp;&lt;span&gt;&lt;s&gt;&#8217; .  $currencies-&gt;display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . &#8216;&lt;/s&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;&#8217; . $currencies-&gt;display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . &#8216;&lt;/span&gt;&amp;nbsp;&#8217;;<br />
} else {<br />
$lc_text = &#8216;&amp;nbsp;&lt;span&gt;&#8217; . $currencies-&gt;display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . &#8216;&lt;/span&gt;&amp;nbsp;&#8217;;<br />
}<br />
break;<br />
case &#8216;PRODUCT_LIST_QUANTITY&#8217;:<br />
$lc_align = &#8216;right&#8217;;<br />
// Mod for Not Showing Quantity with No Stock No CheckOut<br />
//  $lc_text = &#8216;&amp;nbsp;&#8217; . $listing['products_quantity'] . &#8216;&amp;nbsp;&#8217;;<br />
$lc_text = &#8216;&amp;nbsp;&amp;nbsp;&#8217;;<br />
break;<br />
case &#8216;PRODUCT_LIST_WEIGHT&#8217;:<br />
$lc_align = &#8216;right&#8217;;<br />
$lc_text = &#8216;&amp;nbsp;&#8217; . $listing[$x]['products_weight'] . &#8216;&amp;nbsp;&#8217;;<br />
break;<br />
case &#8216;PRODUCT_LIST_IMAGE&#8217;:<br />
$lc_align = &#8216;center&#8217;;<br />
if (isset($HTTP_GET_VARS['manufacturers_id'])) {<br />
$lc_text = &#8216;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_PRODUCT_INFO, &#8216;manufacturers_id=&#8217; . $HTTP_GET_VARS['manufacturers_id'] . &#8216;&amp;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . &#8216;&lt;/a&gt;&#8217;;<br />
} else {<br />
$lc_text = &#8216;&amp;nbsp;&lt;a href=&#8221;&#8216; . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? &#8216;cPath=&#8217; . $cPath . &#8216;&amp;&#8217; : &#8221;) . &#8216;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;<br />
}<br />
break;<br />
case &#8216;PRODUCT_LIST_BUY_NOW&#8217;:<br />
$lc_align = &#8216;center&#8217;;<br />
// no stock no checkout<br />
if ($listing['products_quantity']&lt;=0) {<br />
$lc_text = tep_image_button(&#8216;button_buy_now_na.gif&#8217;, IMAGE_BUTTON_BUY_NOW_NA) . &#8216;&amp;nbsp;&#8217;;<br />
} else {<br />
$lc_text = &#8216;&lt;a href=&#8221;&#8216; . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array(&#8216;action&#8217;)) . &#8216;action=buy_now&amp;products_id=&#8217; . $listing[$x]['products_id']) . &#8216;&#8221;&gt;&#8217; . tep_image_button(&#8216;button_buy_now.gif&#8217;, IMAGE_BUTTON_BUY_NOW) . &#8216;&lt;/a&gt;&amp;nbsp;&#8217;;<br />
}<br />
// no stock no checkout<br />
break;<br />
}<br />
// EOF qpbpp</p></blockquote>
<p><strong>Screenshots (<a href="http://www.claudiavandijk.com/catalog/index.php?language=en" target="_blank">my site</a>)</strong></p>
<p>These screenshots are from both of my sites, because on claudiavandijk.com the prices are not visible, and that won&#8217;t show the price breaks then.</p>
<p><em>Product Information:</em></p>
<p><img class="alignleft size-full wp-image-289" title="063 QPBPP1" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp1.png?w=499&#038;h=303" alt="063 QPBPP1" width="499" height="303" /></p>
<p><em>File in product listing:</em></p>
<p><img class="alignleft size-full wp-image-290" title="063 QPBPP4" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp4.png?w=500&#038;h=152" alt="063 QPBPP4" width="500" height="152" /></p>
<p><em>Tabel in Product Info Admin site:</em></p>
<p><img class="alignleft size-full wp-image-291" title="063 QPBPP2" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp2.png?w=500&#038;h=164" alt="063 QPBPP2" width="500" height="164" /></p>
<p><em>Configuration Price break:</em></p>
<p><img class="alignleft size-full wp-image-293" title="063 QPBPP3" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp3.png?w=500&#038;h=123" alt="063 QPBPP3" width="500" height="123" /></p>
<br />Posted in 063. Quantity Price break per Product Tagged: "Quantity Price Break", catalog, Claudiavandijk.com, goodlivesbeads.nl, Oscommerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=281&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/21/install-quantity-price-breaks-per-product/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp1.png" medium="image">
			<media:title type="html">063 QPBPP1</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp4.png" medium="image">
			<media:title type="html">063 QPBPP4</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp2.png" medium="image">
			<media:title type="html">063 QPBPP2</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/063-qpbpp3.png" medium="image">
			<media:title type="html">063 QPBPP3</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Tabedit 1.0</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/16/install-tabedit-1-0/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/16/install-tabedit-1-0/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 22:06:15 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[058. Tabedit]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[Tabs]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=272</guid>
		<description><![CDATA[Since I have Header Tags SEo installed on my mulptiple language store, my product editing page on the admin site became very large. In the other shop (goodlivesbeads), I also have quantitiy price break installed, so there it&#8217;s even larger.  Searching on the internet I found the Tabedit Contrib. Only this contrib is in French. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=272&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since I have Header Tags SEo installed on my mulptiple language store, my product editing page on the admin site became very large. In the other shop (goodlivesbeads), I also have quantitiy price break installed, so there it&#8217;s even larger.  Searching on the internet I found the <a href="http://addons.oscommerce.com/info/6828" target="_blank">Tabedit Contrib</a>.</p>
<p>Only this contrib is in French. So I tried to translate it to English, and put the translation on the contrib page. You can choose between a normal version and a version with Header tags and FCK editor. I first tried the Header tags with FCK editor, but that one gave me a parse error. And I don&#8217;t have the FCK editor, I use Ultrapics with html editor.</p>
<p><em>Warning: be careful if you copy any code from the blog. It is possible that WordPress breaks the code and that during copying whitespaces or other hidden caracters occur in your files, so always check if your codes look normal</em></p>
<p><strong>Installation</strong></p>
<p>I followed all the instructions, but instead of deleting the code, I put the code between &lt;!&#8211;      &#8211;&gt;</p>
<p>So if something would be wrong it&#8217;s much easier to change.</p>
<p>1. At point 1 You had to find: &lt;script type=&#8221;text/javascript&#8221; src=&#8221;includes/general.js&#8221;&gt;&lt;/script&gt;</p>
<p>My code looked like this:  &lt;script language=&#8221;javascript&#8221; src=&#8221;includes/general.js&#8221;&gt;&lt;/script&gt;</p>
<p>2. One of the last piece that you replace in point 3 looks like this:</p>
<blockquote><p>&lt;td&gt;&lt;?php echo tep_draw_textarea_field(&#8216;products_description[' . $languages[$i]['id'] . &#8216;]&#8217;, &#8216;soft&#8217;, &#8217;70&#8242;, &#8217;15&#8242;, (isset($products_description[$languages[$i]['id']]) ? ereg_replace(&#8216;&amp; &#8216;, &#8216;&amp;amp; &#8216;, trim(stripslashes($products_description[$languages[$i]['id']]))) : tep_get_products_description($pInfo-&gt;products_id, $languages[$i]['id'])),&#8217;style=&#8221;width:100%&#8221;&#8216;); ?&gt;&lt;/td&gt;</p></blockquote>
<p>I replace it with this:</p>
<blockquote><p>&lt;td&gt;&lt;?php echo tep_draw_textarea_field(&#8216;products_description[' . $languages[$i]['id'] . &#8216;]&#8217;, &#8216;soft&#8217;, &#8217;70&#8242;, &#8217;15&#8242;, (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo-&gt;products_id, $languages[$i]['id']))); ?&gt;&lt;/td&gt;</p></blockquote>
<p>That&#8217;s the code that was in the header tags Seo, so that seemed safer to me.</p>
<p>3. At point III you had to edit catalog/admin/includes/functions/html_output.php</p>
<p>I didn&#8217;t do that step.  My code looks like this:</p>
<blockquote><p>$field = &#8216;&lt;textarea name=&#8221;&#8216; . tep_output_string($name) . &#8216;&#8221; wrap=&#8221;&#8216; . tep_output_string($wrap) . &#8216;&#8221; cols=&#8221;&#8216; . tep_output_string($width) . &#8216;&#8221; rows=&#8221;&#8216; . tep_output_string($height) . &#8216;&#8221;&#8216;;</p></blockquote>
<p>So I have &#8216;wrap&#8217; instead of &#8216;id&#8217;. I didn&#8217;t see any difference, but made a note for myself, that there  could be a problem.</p>
<p><strong>Troubles/notes</strong></p>
<p>I have to work on the header tags version if I have some time</p>
<p><strong>Screenshots (<a href="http://www.claudiavandijk.com/catalog/index.php?language=en" target="_blank">my site</a>)</strong></p>
<p>(The screenshot is made on Apple, so the Ultrapics/html editor is not visible)</p>
<p><img class="alignleft size-full wp-image-276" title="058 Tabedit" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/058-tabedit.png?w=500&#038;h=255" alt="058 Tabedit" width="500" height="255" /></p>
<br />Posted in 058. Tabedit Tagged: admin, Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, Tabs <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=272&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/16/install-tabedit-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/058-tabedit.png" medium="image">
			<media:title type="html">058 Tabedit</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Stock Inventory report with export function</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-stock-inventory-report-with-export-function/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-stock-inventory-report-with-export-function/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 16:12:57 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[057 . Stock inventory report with export]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=267</guid>
		<description><![CDATA[Last week I made my second contribution, named Stock Inventory report with export function. I was looking for a stock report, which can show me the name, Price, Costprice, Quantity, Manufacturer, Model, Status and that I could export to Excel. I installed a lot of contribs, but none of them did what I want. So [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=267&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I made my second contribution, named <a href="http://addons.oscommerce.com/info/6882" target="_blank">Stock Inventory report with export function</a>.</p>
<p>I was looking for a stock report, which can show me the name, Price, Costprice, Quantity, Manufacturer, Model, Status and that I could export to Excel. I installed a lot of contribs, but none of them did what I want. So I tried to change one to give me everything that I need.</p>
<p>For this Contrib you need to have the Contrib Margin report (version 3.00a) installed (http://addons.oscommerce.com/info/1594), otherwise you don&#8217;t have poducts cost.</p>
<p>The contrib is based on the old <a href="http://addons.oscommerce.com/info/3101" target="_blank">inventory report</a>. But that one just didn&#8217;t do what I wanted.</p>
<p>I want to make the contribution bigger with other contribs like Low stock report, Inventory value and have the possibilities to choose: All products, active or inactive.</p>
<p><strong>Installation</strong></p>
<p>Just follow the instuction in the package</p>
<p><strong></strong>I also opened a topic in the OsCommerce forum:  <a href="http://forums.oscommerce.com/index.php?showtopic=340801">http://forums.oscommerce.com/index.php?showtopic=340801</a></p>
<p><strong>Screenshots (<a href="http://www.claudiavandijk.com/catalog/index.php?language=en" target="_blank">my site</a>)</strong></p>
<p>The upper and bottom site of the report</p>
<p><img class="alignleft size-full wp-image-269" title="057 Inventory report1" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/057-inventory-report1.png?w=500&#038;h=189" alt="057 Inventory report1" width="500" height="189" /><img class="alignleft size-full wp-image-270" title="057 Inventory report2" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/057-inventory-report2.png?w=499&#038;h=105" alt="057 Inventory report2" width="499" height="105" /></p>
<br />Posted in 057 . Stock inventory report with export Tagged: admin, Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, reports, Stats <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=267&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-stock-inventory-report-with-export-function/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/057-inventory-report1.png" medium="image">
			<media:title type="html">057 Inventory report1</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/057-inventory-report2.png" medium="image">
			<media:title type="html">057 Inventory report2</media:title>
		</media:content>
	</item>
		<item>
		<title>Install margin report</title>
		<link>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-margin-report/</link>
		<comments>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-margin-report/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 14:05:25 +0000</pubDate>
		<dc:creator>claudiavandijk</dc:creator>
				<category><![CDATA[056. Margin report]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Claudiavandijk.com]]></category>
		<category><![CDATA[goodlivesbeads.nl]]></category>
		<category><![CDATA[Oscommerce]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://strugglewithoscommerce.wordpress.com/?p=257</guid>
		<description><![CDATA[After all the Contact_us misery, it&#8217;s time to add some reports. I first started with Margin report , version 3.00 a. With the Margin report Contrib you are installing a Cost price for your products in you shop. With this Costprice you can count your Margin, but you can also use this to count the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=257&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After all the Contact_us misery, it&#8217;s time to add some reports. I first started with <a href="http://addons.oscommerce.com/info/1594" target="_blank">Margin report</a> , version 3.00 a. With the Margin report Contrib you are installing a Cost price for your products in you shop. With this Costprice you can count your Margin, but you can also use this to count the value of your shop, at least what you paid for it. More reports are working with the costprice from Margin report, so it&#8217;s good to have this installed in your admin part of your website.</p>
<p><em>Warning: be careful if you copy any code from the blog. It is possible that WordPress breaks the code and that during copying whitespaces or other hidden caracters occur in your files, so always check if your codes look normal</em></p>
<p><strong>Installation</strong></p>
<p>The installtion is not so difficult, only you have to be carefully if you have contribs installed like Ultra pics and Quantity price break.  You can&#8217;t replace all the code without breaking those contribs.</p>
<p>1. catalog/admin/categories.php . When you have to find</p>
<blockquote><p>if (isset($HTTP_GET_VARS['search'])) {    (and further)</p></blockquote>
<p>Only add two times after p.products_price :                   p.products_cost</p>
<p>2. The same when it says find:</p>
<p>} elseif ($HTTP_POST_VARS['copy_as'] == &#8216;duplicate&#8217;) {      (and further)</p>
<p>Only add two times:        products_cost      again ater products_price</p>
<p>and one time :  . tep_db_input($product['products_cost']) . &#8220;&#8216;, now(), &#8216;&#8221;</p>
<p>3. Find:</p>
<p>if (isset($HTTP_GET_VARS['pID']) &amp;&amp; empty($HTTP_POST_VARS)) {     (and further)</p>
<p>Only add 1 time: p.products_cost</p>
<p>4. In catalog/includes/classes/order.php</p>
<p>Be careful, because we&#8217;re going to the catalog side and not the admin side anymore.</p>
<p>replace with: $orders_products_query = tep_db_query(&#8220;select orders_products_id,     etc. Also here only add products_cost           and              &#8216;cost&#8217; =&gt; $orders_products['products_cost'],</p>
<p>5. the same for the last replacement in that file, only add:                     &#8216;cost&#8217; =&gt; $products[$i]['cost'],</p>
<p>6. In catalog/includes/classes/shopping_cart, at the first point you only have to add:    $products_cost = $product['products_cost'];</p>
<p>And at the second point add:    &#8216;cost&#8217; =&gt; $products['products_cost'],</p>
<p>7. In the last file catalog/checout_process.php only add:   &#8216;products_cost&#8217; =&gt; $order-&gt;products[$i]['cost'],</p>
<p><strong>Troubles/notes</strong></p>
<p>1. Look careful where all the lines are added in the installation instruction and place it on the same place if possible. It&#8217;s always tricky to replace so much code because other Contribs could easily be killed. Instead of that just check what&#8217;s new and put some extra codelines with all the changes you make like // BOF margin report and after the code // EOF margin report. Believe me after some time you don&#8217;t know what you changed the year before, so it&#8217;s easy to replace code that should have stayed in the files.</p>
<p>2. The margin report adds all the product of your shop to the report. So also all the double ones that you have in multiple categories and all the inactive ones too.</p>
<p>3. If you click on the button export on the right in the report, don&#8217;t forget to give the file a name, otherwise it&#8217;s not working.</p>
<p><strong>Screenshots (<a href="http://www.claudiavandijk.com/catalog/index.php?language=en" target="_blank">my site</a>)</strong></p>
<p>Products price added to the product info on the admin side</p>
<p><img class="alignleft size-full wp-image-261" title="056 Margin report1" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/056-margin-report1.png?w=500&#038;h=117" alt="056 Margin report1" width="500" height="117" /></p>
<p>Margin report</p>
<p><img class="alignleft size-full wp-image-262" title="056 Margin report2" src="http://strugglewithoscommerce.files.wordpress.com/2009/07/056-margin-report2.png?w=500&#038;h=215" alt="056 Margin report2" width="500" height="215" /></p>
<br />Posted in 056. Margin report Tagged: admin, Claudiavandijk.com, goodlivesbeads.nl, Oscommerce, reports, Stats <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/strugglewithoscommerce.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/strugglewithoscommerce.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/strugglewithoscommerce.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=strugglewithoscommerce.wordpress.com&amp;blog=8159343&amp;post=257&amp;subd=strugglewithoscommerce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://strugglewithoscommerce.wordpress.com/2009/07/15/install-margin-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2e88f12954b98dc835506330bfc9dea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">claudiavandijk</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/056-margin-report1.png" medium="image">
			<media:title type="html">056 Margin report1</media:title>
		</media:content>

		<media:content url="http://strugglewithoscommerce.files.wordpress.com/2009/07/056-margin-report2.png" medium="image">
			<media:title type="html">056 Margin report2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
