<?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>SmartOSC&#039;s Blog &#187; Oscommerce</title>
	<atom:link href="http://blog.smartosc.com/category/oscommerce/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartosc.com</link>
	<description>A Smart Open Solution company</description>
	<lastBuildDate>Fri, 23 Dec 2011 08:22:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Optimize your Oscommerce store performance</title>
		<link>http://blog.smartosc.com/2007/06/speed-your-oscommerce-store-performance/</link>
		<comments>http://blog.smartosc.com/2007/06/speed-your-oscommerce-store-performance/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 09:28:21 +0000</pubDate>
		<dc:creator>thaison</dc:creator>
				<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://blog.smartosc.com/2007/06/26/speed-your-oscommerce-store-performance/</guid>
		<description><![CDATA[Many of you who run a store with a large number of products and customers or after adding a few contributions, often complain about the store performance. This is due to the fact that the clean version of oscommerce is not optimized. And of course, your customers can&#8217;t wait for a page that takes 10 [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-left"><g:plusone size="small" href="http://blog.smartosc.com/2007/06/speed-your-oscommerce-store-performance/"></g:plusone></div></div><p>Many of you who run a store with a large number of products and customers or after adding a few contributions, often complain about the store performance. This is due to the fact that the clean version of oscommerce is not optimized. And of course, your customers can&#8217;t wait for a page that takes 10 seconds or more to load.  So this article will hopefully give you a few ideas, based on our experience and also contributions from the oscommerce community users. Here goes some tips we compiled:</p>
<p><span id="more-65"></span><strong> 1. Optimize your images</strong><br />
Many of you starts uploading heavy images which increases page load. A solution for this would be installing <a href="http://www.oscommerce.com/community/contributions,1484" target="_blank">automatic thumbnail generator with cache features</a>. This contribution will will cache the image instead of doing it &#8220;on the fly&#8221;, thus,  server load reduces considerably.</p>
<p><strong>2. Think twice before adding contributions</strong><br />
One of the advantages for the Oscommerce community is the broad range of pre-made contributions that users can install to the stores. But then store owners make the mistake of adding too many contributions because they want to add more and more functionality. Our advice is to install only the ones you need because. each contribution you install will add overhead to process the logic whether it be pure PHP code or MySQL queries (or both).</p>
<p>On the other hand, if you don&#8217;t use certain default features, like : banners, &#8220;requests since&#8221; footer display, who&#8217;s online, etc. then removing these features will increase performance.</p>
<p><strong>3. Do you really need to install STS ?</strong><br />
STS (Simple Template System) is one of the most popular template systems available for osCommerce. However, this contribution increases the number of queries, specially when you have a significant number of categories on your store up to 200-300%.</p>
<p><strong>4. Index your Sessions</strong><br />
If you store the sessions in the database consider adding a (primary) multi-column index on sesskey and expiry columns.</p>
<p><strong>5. Unable Caching</strong><br />
If you have a large number of categories, products, and orders, then it is important to cache data. Some experts advice to create directory ABOVE the publicly accessible document root and giving it proper permissions for the server read/write. Creating it ABOVE the document root ensures that would-be hackers cannot access it with their web browser. Once you have the cache folder created and settings configured then turn on the cache features.</p>
<p><strong>6. Compress page output</strong><br />
Oscommerce has the feature of page compression via GZIP.  The optimal setting is compression level 1 for speed as higher levels will not result in significant reduction of page size.</p>
<p><strong>7. Optimize your code and database queries</strong><br />
There is obviously different in every store, due to the fact that each of them installs different contributions although they are based in Oscommerce.</p>
<p>So first of all, you have to debug your queries. There is a very good contribution (written by Chemo) :  <a href="http://www.oscommerce.com/community/contributions,2575" target="_blank">per page query output contribution</a> which will allow you to see which queries are being executed on a per page basis and easily identify those that are redundant or taking excessive time to execute. So that&#8217;s a good place to start with.</p>
<p>However, there are some existing code, that can be common functions in all the stores and you might want to take a look.</p>
<p>a. <a href="http://www.oscommerce.com/community/contributions,2417" target="_blank">MS3 tax class for MS2</a>. This replaces the stock MS2 tax code with the new tax class for MS3 which is much more efficient and uses less queries per page. The tax query is executed on each price display even if the setting to display tax is disabled. So installing it will increase the page performance.</p>
<p>b. The also_purchased module (product info pages) is a powerful upsale tool however it is the absolutely most server intensive query for the <span class="highlight">osCommerce</span> application. Some recommend using <a href="http://www.oscommerce.com/community/contributions,1415" target="_blank">X-Sell contribution</a> instead.</p>
<p>Finally, some contributions that will help you optimize the store:</p>
<ul>
<li><a href="http://www.oscommerce.com/community/contributions,1862" target="_blank">Faster Page Loads, Less DB Queries</a>.</li>
</ul>
<p>This contribution caches the data and eliminates the database query&#8230;thereby saving the table scan for when the cache is not present. This contribution is HIGHLY recommended.</p>
<ul>
<li><a href="http://www.oscommerce.com/community/contributions,2827" target="_blank">More Meaningful Data from Query Logging</a></li>
</ul>
<p>This contribution replaces the stock logging code to only capture queries that take longer than &#8220;X&#8221; seconds to execute. Instead of storing every query it only stores the ones that are excessively resource intensive. Also, it stores more useful information such as query, time to execute, calling script, IP of browser, cookies enabled or not, and other nice data.</p>
<ul>
<li><a href="http://www.oscommerce.com/community/contributions,2806" target="_blank">osC Explain &#8211; for developers</a></li>
</ul>
<p>This contribution adds a real nice EXPLAIN feature to every query executed. It allows you to capture each query executed and associated MySQL EXPLAIN data. If you are serious about query optimization this tool is a must.</p>
<ul>
<li><a href="http://www.oscommerce.com/community/contributions,2575" target="_blank">Queries and Parse Time Footer Output</a></li>
</ul>
<p>This contribution outputs the queries executed and page parse time on a per page basis without storing it to file system. This is handy to optimize page performance on a per page basis. I use it to identify redundant queries or as a quick tool to diagnose performance issues. You can tell at a glance if the lack of performance is due to MySQL, PHP, or other page factors.</p>
<ul>
<li><a href="http://www.oscommerce.com/community/contributions,2873" target="_blank">osC-Advanced Cache Class</a></li>
</ul>
<p>This contribution has the ability to cache anything you can throw at it: parsed HTML, arrays, or even executable PHP code. If you find tough areas to optimize this class will solve your problems.</p>
<p>Do you have any other experience ? Please share <img src='http://blog.smartosc.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.smartosc.com/2007/06/speed-your-oscommerce-store-performance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multi-store mod for creloaded</title>
		<link>http://blog.smartosc.com/2007/06/multi-store-mod-for-creloaded/</link>
		<comments>http://blog.smartosc.com/2007/06/multi-store-mod-for-creloaded/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 14:31:09 +0000</pubDate>
		<dc:creator>Ninh Hanh</dc:creator>
				<category><![CDATA[Oscommerce]]></category>

		<guid isPermaLink="false">http://blog.smartosc.com/2007/06/18/49/</guid>
		<description><![CDATA[There have been recently many requests on adapting the multi store contribution to the latest Creloaded version. As the Creloaded and OSCommerce structure are quite different, it&#8217;s somehow tricky to do this. There are even some existing files templates in the template folder that the default Osc MS2.2 does not have. But basically, you need [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-left"><g:plusone size="small" href="http://blog.smartosc.com/2007/06/multi-store-mod-for-creloaded/"></g:plusone></div></div><p>There have been recently many requests on adapting the multi store contribution to the latest Creloaded version. As the Creloaded and OSCommerce structure are quite different, it&#8217;s somehow tricky to do this. There are even some existing files templates in the template folder that the default Osc MS2.2  does not have. But basically, you need to compare first files in <em>multi-store_v2.0\catalog</em> folder with  Creloaded and insert the instances of (M-S_,M-S_multi-stores, M-S_pricing, M-S-fixes). We recommend using Beyond Compare to do this.</p>
<p><span id="more-49"></span></p>
<p>If you successfully installed it, then you should have something like this:</p>
<p><strong>1. Create a store:</strong></p>
<p align="center"> <a href="http://blog.smartosc.com/wp-content/uploads/2007/06/createstore12.JPG" title="Create a store 1" rel="lightbox"><img src="http://blog.smartosc.com/wp-content/uploads/2007/06/createstore12.thumbnail.JPG" alt="Create a store 1" height="70" width="148" /></a>                <a href="http://blog.smartosc.com/wp-content/uploads/2007/06/createstore22.JPG" title="Create a store 2" rel="lightbox"><img src="http://blog.smartosc.com/wp-content/uploads/2007/06/createstore22.thumbnail.JPG" alt="Create a store 2" height="70" width="140" /></a></p>
<p>You must enter Information of store, which you want to create. Then, you click &#8220;Save” button to create the store or click Cancel button to delete Information, which you have inputted.</p>
<p><strong>2. Categories/products to store:</strong></p>
<p style="text-align: center"> <a href="http://blog.smartosc.com/wp-content/uploads/2007/06/category-to-store.JPG" title="Categories/products to store" rel="lightbox"><br />
<img src="http://blog.smartosc.com/wp-content/uploads/2007/06/category-to-store.thumbnail.JPG" alt="Categories/products to store" height="70" width="135" /><br />
</a></p>
<p><strong>3. Create Administrators:</strong></p>
<p style="text-align: center"> <a href="http://blog.smartosc.com/wp-content/uploads/2007/06/create-administrator.JPG" title="Create Administrators" rel="lightbox"><br />
<img src="http://blog.smartosc.com/wp-content/uploads/2007/06/create-administrator.thumbnail.JPG" alt="Create Administrators" height="70" width="140" /><br />
</a></p>
<p>We have also made many changes to improve the current multi store mod. If you want to implement this on your store, please <a href="mailto:info@smartosc.com">contact us</a> for more information.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.smartosc.com/2007/06/multi-store-mod-for-creloaded/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

