<?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>InfoTales &#187; CRE Loaded</title>
	<atom:link href="http://www.infotales.com/topic/cre-loaded/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.infotales.com</link>
	<description>Web application performance, Web Server Performance, Data Mining, SEO, MySQL, Magento Performance and much more</description>
	<lastBuildDate>Thu, 26 Aug 2010 15:33:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>osCommerce and CRE Loaded security issue allows access to Admin area</title>
		<link>http://www.infotales.com/oscommerce-cre-loaded-security-issue-allows-access-admin-area/</link>
		<comments>http://www.infotales.com/oscommerce-cre-loaded-security-issue-allows-access-admin-area/#comments</comments>
		<pubDate>Thu, 20 May 2010 11:56:45 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=721</guid>
		<description><![CDATA[Recently some one notified me about a serious security issue in osCommerce and CRE Loaded. Due to this issue any one can see orders information, customer information and do so many things in admin area, without login. It was hard to believe but its true. I tried it on local osCommerce installation and it worked [...]]]></description>
			<content:encoded><![CDATA[<p>Recently some one notified me about a serious security issue in osCommerce and CRE Loaded. Due to this issue any one can see orders information, customer information and do so many things in admin area, without login. It was hard to believe but its true.</p>
<p>I tried it on local osCommerce installation and it worked like a magic. In screen shot below, you can see configuration of a store. Just by changing URL other configurations can also be seen.</p>
<p><a href="http://www.infotales.com/wp-content/uploads/2010/05/oscommerce_security_issue.gif"><img class="size-full wp-image-722 alignnone" title="oscommerce_security_issue" src="http://www.infotales.com/wp-content/uploads/2010/05/oscommerce_security_issue.gif" alt="" width="448" height="280" /></a></p>
<p>Similarly any one can see orders placed, information of single order, customer email, customer name and other information. The issue still exists in latest version of osCommerce v2.2 RC2a (as seen in screen shot above).</p>
<p>The issue is also found in CRE Loaded PCI Pro 6.4, so it should also exist in all older versions as well. Below is screen shot for CRE Loaded site, where orders information is visible.</p>
<p><a href="http://www.infotales.com/wp-content/uploads/2010/05/creloaded_security_issue_3.gif"><img class="size-full wp-image-736 alignnone" style="border: 1px solid black;" title="creloaded_security_issue_3" src="http://www.infotales.com/wp-content/uploads/2010/05/creloaded_security_issue_3.gif" alt="" width="548" height="140" /></a></p>
<p>Its also possible to see single order details with customer name, address, email, payment information etc.</p>
<p><a href="http://www.infotales.com/wp-content/uploads/2010/05/creloaded_security_issue_2.gif"><img class="size-full wp-image-731 alignnone" style="border: 1px solid black;" title="creloaded_security_issue_2" src="http://www.infotales.com/wp-content/uploads/2010/05/creloaded_security_issue_2.gif" alt="" width="506" height="286" /></a></p>
<p>The issue is fixed in CRE Loaded 6.4.1 version, which is latest version at the moment. This means any one using older version must take measures quickly, or they will remain open to hackers and information theft.</p>
<p>I am not writing the actual method to get into admin area, as doing it will make it public, and will create high risk for so many osCommerce, CRE Loaded sites.</p>
<p>Immediate fix for this serious security issue is simple one.</p>
<p><strong>Fix for osCommerce and CRE Loaded 6.2 and older</strong></p>
<ol>
<li>Backup <code>admin/includes/application_top.php</code> in case something goes wrong</li>
<li>Open file <code>admin/includes/application_top.php</code> in some php or text editor.</li>
<li>Find line<br />
<code>$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);</code></li>
<li>Replace the first occurrence of the line with this<br />
<code>$PHP_SELF = $HTTP_SERVER_VARS['SCRIPT_NAME'];</code></li>
<li>For CRE, find line<br />
<code>$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);</code><br />
remove it or replace it with above line</li>
<li>Save the file</li>
</ol>
<p><strong>Fix for CRE Loaded 6.3 and 6.4.0</strong></p>
<ol>
<li>Backup <code>admin/includes/application_top.php</code> in case something goes wrong</li>
<li>Open file <code>admin/includes/application_top.php</code> in some php or text editor.</li>
<li>Find line<br />
<code>$PHP_SELF = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);</code></li>
<li>Replace the line with this<br />
<code>$PHP_SELF = $_SERVER['SCRIPT_NAME'];</code></li>
<li>Save the file</li>
</ol>
<p>It is highly recommended to follow guidelines mentioned in <a href="http://www.infotales.com/hardening-protecting-cre-loaded-admin-area/">http://www.infotales.com/hardening-protecting-cre-loaded-admin-area/</a>. Following these guidelines will further secure admin area from hackers attack.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/oscommerce-cre-loaded-security-issue-allows-access-admin-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal payment module and discount coupons problem in CRE Loaded</title>
		<link>http://www.infotales.com/paypal-payment-module-discount-coupons-problem-cre-loaded/</link>
		<comments>http://www.infotales.com/paypal-payment-module-discount-coupons-problem-cre-loaded/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 06:49:21 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=584</guid>
		<description><![CDATA[Recently had issue where customer complained that discount coupon amount was not being deducted during checkout. This issue was causing many customers to loss as amount on PayPal page was shown without discount. What I found out that issue was due to a configuration which does not cater the discount coupon amount. One configuration called [...]]]></description>
			<content:encoded><![CDATA[<p>Recently had issue where customer complained that discount coupon amount was not being deducted during checkout. This issue was causing many customers to loss as amount on PayPal page was shown without discount.</p>
<p>What I found out that issue was due to a configuration which does not cater the discount coupon amount. One configuration called &#8220;Shopping Cart Method&#8221; was set to &#8220;Itemized&#8221;. This setting shows item wise detail on PayPal checkout page. As discount coupons are applied on an order not on any particular item, so the total amount charged is without discount.</p>
<p>When the option was set to &#8220;Aggregate&#8221; mode the issue resolved. This does not show much detail for items purchased, on PayPal page but shows the correct amount to charge. So this works for me.</p>
<p>So if you want to do the same, login to your admin area and go to Modules > Payment and select the PayPal module. Now click on Edit button and find <strong>Shopping Cart Method</strong> and select &#8220;Aggregate&#8221; option. Click &#8220;update&#8221; button to save this change. The should be gone.</p>
<p>I have tried this on CRE Loaded pro 6.2 but it should also work for other version of CRE Loaded and OSCommerce as well.</p>
<p>For more updates and fix in CRE Loaded keep visiting <a href="http://www.infotales.com/topic/cre-loaded/">CRE Loaded</a> section on my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/paypal-payment-module-discount-coupons-problem-cre-loaded/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Track visitor searches in OSCommerce and CRE Loaded with Google Analytics</title>
		<link>http://www.infotales.com/track-visitor-site-searches-oscommercegoogle-analytics/</link>
		<comments>http://www.infotales.com/track-visitor-site-searches-oscommercegoogle-analytics/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 05:08:28 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=580</guid>
		<description><![CDATA[Search feature in OSCommerce and CRE Loaded provide an important functionality for visitors to perform custom search. Its important to know what visitors are searching on your site. Luckily Google Ananlytics (GA) provides and easy way to track these searches. To enable this tracking your need to login to your GA account and goto Analytics [...]]]></description>
			<content:encoded><![CDATA[<p>Search feature in OSCommerce and CRE Loaded provide an important functionality for visitors to perform custom search. Its important to know what visitors are searching on your site. Luckily Google Ananlytics (GA) provides and easy way to track these searches.</p>
<p>To enable this tracking your need to login to your GA account and goto <code>Analytics Settings  &gt;  Profile Settings  &gt;  Edit Profile Information</code>. Under <strong>Site Search</strong> select <strong>Do Track Site Search</strong>. Now you need to tell what parameter contains the search term. As internal search is provided on this page <code>advanced_search_result.php?keywords=test</code>, here we have to track <code>keywords</code> parameter. So put <code>keywords</code> in <strong>Query Parameter (required):</strong> field.</p>
<p>This will enable tracking for searches performed on your site. Many useful reports are provided by GA telling for example what people are searching and many other things.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/track-visitor-site-searches-oscommercegoogle-analytics/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to protect CRE Loaded admin area?</title>
		<link>http://www.infotales.com/hardening-protecting-cre-loaded-admin-area/</link>
		<comments>http://www.infotales.com/hardening-protecting-cre-loaded-admin-area/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 09:01:24 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=521</guid>
		<description><![CDATA[Like every other eCommerce solution CRE Loaded provides a password protected admin area to manage all aspects of the site. Any unauthorized access to admin area can cause damage to site&#8217;s important data, any leakage of customer&#8217;s payment details can cause more issues and damage to site. CRE Loaded team has done good job to [...]]]></description>
			<content:encoded><![CDATA[<p>Like every other eCommerce solution CRE Loaded provides a password protected admin area to manage all aspects of the site. Any unauthorized access to admin area can cause damage to site&#8217;s important data, any leakage of customer&#8217;s payment details can cause more issues and damage to site.</p>
<p>CRE Loaded team has done good job to make this area secure by use of encrypted passwords, https access etc. Recent 6.4.1 release includes password hardening task to further enhance security. Still there is a lot, which you can do to protect admin area.</p>
<p>In this post I will list few guidelines to enhance admin area protection. The post also includes basic methods to apply these guidelines.</p>
<p>So here are the guidelines.</p>
<ol>
<li><a href="#domain">Don&#8217;t use default http://mycresite.com/admin/ structure</a></li>
<li><a href="#auth">Use password protected directories</a></li>
<li><a href="#ips">Restrict access to specific IPs only</a></li>
<li><a href="#password">Use secure user names and passwords</a></li>
</ol>
<p><a name="domain"></a></p>
<h3>1. Don&#8217;t use default http://mycresite.com/admin/ structure</h3>
<p>In default installation admin area is installed in <code>/admin/</code> folder and accessible from <code>http://mycresite.com/admin/</code> URL. As this default location is publicly known hackers can easy launch attempts to break in.</p>
<p>To avoid this issue it is strongly recommended that you don&#8217;t install and use admin are on default location. With little effort you can change this location by</p>
<ul>
<li><strong>Rename <code>admin</code> folder:</strong> One simple way is to rename <code>admin</code> folder to some different name which is not easy to guess. For example <code>234admin80907</code>. You will need to update this folder path in <code>{new_admin_folder}/includes/configure.php</code>. You will need to update following configurations
<ol>
<li><code>DIR_WS_HTTP_ADMIN</code></li>
<li><code>DIR_WS_HTTPS_ADMIN</code></li>
<li><code>DIR_FS_ADMIN</code></li>
</ol>
</li>
<li><strong>Install on different domain:</strong> Admin area is completely independent from rest of the site so it can be installed on completely different domain or sub domain. This way makes its location more sure and non guessable.<br />
To do this move <code>/admin/</code> folder (or whatever you renamed it to) on separate location (e.g <code>public_html/admin/</code>), and point your separate domain or sub domain to this folder. Using a sub domain is easier than complete new domain as many sub domains are allowed under same hosting.<br />
Please use non guessable domain or sub domain to make is more secure.<br />
You will need to update these changes in <code>includes/configure.php</code> of this folder. You will need to change following configurations</p>
<ul>
<li>HTTP_SERVER</li>
<li>HTTPS_ADMIN_SERVER</li>
<li>DIR_WS_HTTP_ADMIN</li>
<li>DIR_WS_HTTPS_ADMIN</li>
<li>DIR_FS_ADMIN</li>
</ul>
<p>Note: For sub domain you may need high level SSL certificate which can work on main and sub domain without error.</li>
</ul>
<p><a name="auth"></a></p>
<h3>2. Use password protected directories</h3>
<p>Always protect your admin folder with additional password. Most of the hosting packages include feature to make some directories password protected from there control panel. This user name and password will be asked by browser even before the login page is displayed so this can be a good weapon to protect your admin area.<br />
<a name="ips"></a></p>
<h3>3. Restrict access to specific IPs only</h3>
<p>You can also restrict access to admin area from specific IPs only easily. By this admin area will only be accessible from specified IPs only. For this you will need to edit <code>.htaccess</code> file under <code>admin/</code> folder.<br />
To do this download <code>admin/.htaccess</code> file and open it with some text editor. Put following code in .htaccess file</p>
<blockquote><p><code>Order Deny,Allow<br />
Deny from all<br />
Allow from 100.100.100.100, 100.100.100.101<br />
</code></p></blockquote>
<p>and uploaded.</p>
<p>Here 100.100.100.100 is example ips put your list of comma separated IPs. The code tells server to block all requests unless they are from specified IPs.<br />
<a name="password"></a></p>
<h3>4. Use secure user names and passwords</h3>
<p>No matter if it is password of admin area or password protected directories, use user names and passwords which are not easily guessable. Do not very user names like admin, administrator etc. A good password should mix alphabets, numbers, special characters etc to avoid easy brute force attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/hardening-protecting-cre-loaded-admin-area/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CVV code bug fix in Credit Card UK with CVC payment module</title>
		<link>http://www.infotales.com/cvv-bug-fix-credit-card-uk-payment-module/</link>
		<comments>http://www.infotales.com/cvv-bug-fix-credit-card-uk-payment-module/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:30:53 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=515</guid>
		<description><![CDATA[Recently found a bug in payment module &#8220;Credit Card UK with CVC&#8221;. I was using this module with CRE Loaded pro 6.4.0. This payment module sends middle digits of CC and CVV code in an email to admin. Due to the bug this CVV code value was missing. To fix the issue open file includes/modules/payment/cc_uk.php [...]]]></description>
			<content:encoded><![CDATA[<p>Recently found a bug in payment module &#8220;Credit Card UK with CVC&#8221;. I was using this module with CRE Loaded pro 6.4.0.</p>
<p>This payment module sends middle digits of CC and CVV code in an email to admin. Due to the bug this CVV code value was missing.</p>
<p>To fix the issue open file <code>includes/modules/payment/cc_uk.php</code> in editor and find line</p>
<blockquote><p><code>$this-&gt;cc_issue = (isset($_POST['cc_issue'])) ? $_POST['cc_issue'] : '';</code></p></blockquote>
<p>after this line add line</p>
<blockquote><p><code>$this-&gt;cc_ccv = (isset($_POST['cc_ccv'])) ? $_POST['cc_ccv'] : '';</code></p></blockquote>
<p>and you are done. Save the file and test.</p>
<p><span style="color: #ff0000;">Please be sure to backup your file before editing.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/cvv-bug-fix-credit-card-uk-payment-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRE Loaded 6.4.1 is here</title>
		<link>http://www.infotales.com/cre-loaded-6-4-1-is-here/</link>
		<comments>http://www.infotales.com/cre-loaded-6-4-1-is-here/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:30:45 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=507</guid>
		<description><![CDATA[Long awaited release of CRE Loaded 6.4.1 is finally out. Now Google Base feature is back in CRE Loaded. Beside bug fixes and Google Base it also includes some new features like Admin log in as customer Several PayPal payment modules Admin Password hardening to satisfy PCI PA-DSS requirements 8.5.10 and 8.5.11 etc Right now [...]]]></description>
			<content:encoded><![CDATA[<p>Long awaited release of CRE Loaded 6.4.1 is finally out. Now Google Base feature is back in CRE Loaded. Beside bug fixes and Google Base it also includes some new features like</p>
<ul>
<li><strong>Admin log in as customer</strong></li>
<li><strong>Several PayPal payment modules<br />
</strong></li>
<li><strong>Admin Password hardening</strong> to satisfy PCI PA-DSS requirements 8.5.10 and 8.5.11</li>
<li>etc</li>
</ul>
<p>Right now I did not get chance to look at new release, will get back as soon as I get chance to see.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/cre-loaded-6-4-1-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A grade performance with CRE Loaded</title>
		<link>http://www.infotales.com/high-performance-cre-loaded-site/</link>
		<comments>http://www.infotales.com/high-performance-cre-loaded-site/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:21:39 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>
		<category><![CDATA[Web Application Performance]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=492</guid>
		<description><![CDATA[For last few days worked on performance optimization of CRE Loaded site. Now all major performance measuring tools Yahoo YSlow, Google Page Speed and WebPageTest.org are rating the site as A grade site. I have been studying and applying performance guidelines for a while. Recent addition of Site Performance stats in Google Webmaster Tools have [...]]]></description>
			<content:encoded><![CDATA[<p>For last few days worked on <a href="http://www.infotales.com/topic/web-performance-optimization/">performance optimization of CRE Loaded</a> site. Now all major performance measuring tools Yahoo YSlow, <a href="http://www.infotales.com/page-speed-tool-google/">Google Page Speed</a> and WebPageTest.org are rating the site as A grade site.</p>
<p>I have been studying and applying performance guidelines for a while. Recent addition of <a href="http://www.infotales.com/google-site-performance-tool-released/">Site Performance stats in Google Webmaster Tools</a> have motivated me to run a full optimization cycle on CRE Loaded.</p>
<p>A number of performance tweaks were applied over a time, like cache, gzip compression, image cache etc. Still few things were missing like proper use of browser cache, http requests, css gzip etc.</p>
<p>Now following are results from performance measuring tools<br />
<strong>YSlow</strong></p>
<p><a href="http://www.infotales.com/wp-content/uploads/2009/12/performance_yslow.gif"><img class="alignnone size-medium wp-image-498" title="performance_yslow" src="http://www.infotales.com/wp-content/uploads/2009/12/performance_yslow.gif" alt="" /></a></p>
<p><strong>Page Speed</strong></p>
<p><a href="http://www.infotales.com/wp-content/uploads/2009/12/performance_page_speed.gif"><img class="alignnone size-medium wp-image-499" title="performance_page_speed" src="http://www.infotales.com/wp-content/uploads/2009/12/performance_page_speed.gif" alt="" /></a></p>
<p><strong>WebPageTest.org</strong></p>
<p>Detailed test results can be seen at http://www.webpagetest.org/result/091228_3WME/</p>
<table border="1" cellspacing="0" cellpadding="10" align="center">
<tbody>
<tr>
<td align="center"></td>
<td align="center">Time</td>
<td align="center">Requests</td>
<td align="center">Bytes In</td>
</tr>
<tr>
<td align="left" valign="middle">First View</td>
<td valign="middle">1.812s</td>
<td valign="middle">14</td>
<td valign="middle">133 KB</td>
</tr>
<tr>
<td align="left" valign="middle">Repeat View</td>
<td valign="middle">1.061s</td>
<td valign="middle">2</td>
<td valign="middle">9 KB</td>
</tr>
</tbody>
</table>
<p>If you want your site to perform as good as A grade site you can contact me by posting a comment for free advice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/high-performance-cre-loaded-site/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Product listing bug in CRE Loaded</title>
		<link>http://www.infotales.com/cre-loaded-product-listing-bug/</link>
		<comments>http://www.infotales.com/cre-loaded-product-listing-bug/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:07:40 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=469</guid>
		<description><![CDATA[While working on some site I came across a bug in Special product page. If we have turned manufacturer name on in product listing, the link generated on the name is missing the manufacturer id value. The invalid link created looks like this http://demos.creloaded.com/creloaded_ce/index.php?manufacturers_id= on page https://demos.creloaded.com/creloaded_ce/specials.php. I found this in cre loaded Pro 6.4.0, [...]]]></description>
			<content:encoded><![CDATA[<p>While working on some site I came across a bug in Special product page. If we have turned manufacturer name on in product listing, the link generated on the name is missing the manufacturer id value. The invalid link created looks like this <code>http://demos.creloaded.com/creloaded_ce/index.php?manufacturers_id=</code> on page <code>https://demos.creloaded.com/creloaded_ce/specials.php</code>.</p>
<p>I found this in cre loaded Pro 6.4.0, but when confirmed it exists in Community edition as well. I guess this issue may exist on other pages like &#8220;new products page&#8221;.</p>
<p>The manufacturer name can be turned on from Admin &gt; Configuration &gt; Product Listing &gt; Display Product Manufacturer Name.</p>
<p>If you are using <a href="http://www.infotales.com/seo-urls-addon-for-cre-loaded/">SEO URLs addon</a> this bug can cause you a lot because it will generate unwanted link to your home page.</p>
<p>There are two ways of fixing the issue, one is to wait for fix release of which was <a href="http://wasimasif.wordpress.com/2009/09/13/where-is-cre-loaded-6-4-1/">expected in August but still not here</a>, i am not sure if this bug will be fixed or not. Second fix is simple one, and can be found at <a href="http://www.infotales.com/cre-loaded-product-listing-bug-fix/">Product listing bug fix in CRE Loaded</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/cre-loaded-product-listing-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Speed up CRE Loaded with cache</title>
		<link>http://www.infotales.com/cre-loaded-speed-up-cache/</link>
		<comments>http://www.infotales.com/cre-loaded-speed-up-cache/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 15:55:25 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=467</guid>
		<description><![CDATA[Cache have become an important tool for increasing performance of a website. In this post we will install a famous osCommerce contribution to our CRE Loaded PCI 6.4 for cache. The contribution is called osC Advanced Cache Class. The contribution will enable us to cache just about every thing like large arrays, data, html, even [...]]]></description>
			<content:encoded><![CDATA[<p>Cache have become an important tool for increasing performance of a website. In this post we will install a famous osCommerce contribution to our CRE Loaded PCI 6.4 for cache.</p>
<p>The contribution is called <code>osC Advanced Cache Class</code>. The contribution will enable us to cache just about every thing like large arrays, data, html, even executable PHP code. More details of the contribution can be found <a rel="external nofollow" href="http://addons.oscommerce.com/info/2873" target="_blank">here</a>.</p>
<p>Here we will only install this contribution on cre loaded 6.4 we will use it later some where. For the possible uses please see contribution home page, referred above.</p>
<p>We will be installing it on Pro version and I hope the process will be same for other cre loaded versions. We will use <code>Runtime Code Inclusion (RCI)</code> feature of Cre loaded, to minimize chances of losing our changes during future upgrades. For RCI details refer to cre loaded.</p>
<p><em><strong>Step One: </strong></em>downloading the contribution<em><strong><br />
</strong></em></p>
<p>Download the contribution from <a rel="external nofollow" href="http://addons.oscommerce.com/info/2873" target="_blank">this page</a> and extract it to some folder. The code includes an install script but please don&#8217;t use it as it is made for oscommerce not cre loaded.</p>
<p><em><strong>Step Two: </strong></em>Adding class file</p>
<p>Copy <code>osC-Cache/osC-Cache/upload/includes/classes/cache.class.php</code> file to your installation of your cre loaded. The file should be copied to /includes/classes/ folder of your installation.</p>
<p><em><strong>Step Three:</strong></em> Database Changes</p>
<p>You will need to add a new table in you database. Create a new table by executing the following query.</p>
<blockquote><p><code>CREATE TABLE cache (<br />
cache_id varchar(32) NOT NULL default '',<br />
cache_language_id tinyint(1) NOT NULL default '0',<br />
cache_name varchar(255) NOT NULL default '',<br />
cache_data mediumtext NOT NULL,<br />
cache_global tinyint(1) NOT NULL default '1',<br />
cache_gzip tinyint(1) NOT NULL default '1',<br />
cache_method varchar(20) NOT NULL default 'RETURN',<br />
cache_date datetime NOT NULL default '0000-00-00 00:00:00',<br />
cache_expires datetime NOT NULL default '0000-00-00 00:00:00',<br />
PRIMARY KEY  (cache_id,cache_language_id),<br />
KEY cache_id (cache_id),<br />
KEY cache_language_id (cache_language_id),<br />
KEY cache_global (cache_global)<br />
) TYPE=MyISAM;</code></p></blockquote>
<p><em><strong>Step Four: </strong></em>Implement cache class using RCI</p>
<p>Now create a new empty file named <code>cache_applicationtop_bottom.php</code> in folder <code>includes/runtime/applicationtop/</code> of your cre loaded installation. Now open the new file and put following code in the file <code>cache_applicationtop_bottom.php</code></p>
<blockquote><p>&lt;?php<br />
global $cache, $languages_id;<br />
# include the cache class<br />
include(DIR_WS_CLASSES . &#8216;cache.class.php&#8217;);<br />
$cache = new cache($languages_id,true);<br />
# Get the cache &#8211; no parameters will get all GLOBAL cache entries for this language<br />
$cache-&gt;get_cache(&#8216;GLOBAL&#8217;);<br />
?&gt;</p></blockquote>
<p>After saving the file try browsing your site, if you have done all steps properly you should not have any problems with it. If you see any problem like blank page is displayed or any thing else please make sure that you followed all steps properly.</p>
<p>May be in some other post we will see how we can use this cache contribution with cre loaded and get maximum advantages of cache.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/cre-loaded-speed-up-cache/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Product listing bug in CRE Loaded</title>
		<link>http://www.infotales.com/cre-loaded-product-listing-bug-fix/</link>
		<comments>http://www.infotales.com/cre-loaded-product-listing-bug-fix/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 18:04:09 +0000</pubDate>
		<dc:creator>shahpar</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://www.infotales.com/?p=463</guid>
		<description><![CDATA[Today fixed a bug in product listing of cre loaded 6.4.0 pro. Due this bug manufacturer link on certain pages was missing manufacturer id. The bug existed on Special products, New Products and Featured products page. To fix the issue open file specials.php and find line case 'PRODUCT_LIST_MANUFACTURER':. In line next to it add p.manufacturers_id, [...]]]></description>
			<content:encoded><![CDATA[<p>Today fixed a bug in product listing of cre loaded 6.4.0 pro. Due this bug manufacturer link on certain pages was missing manufacturer id. The bug existed on Special products, New Products and Featured products page.</p>
<p>To fix the issue open file <code>specials.php</code> and find line <code>case 'PRODUCT_LIST_MANUFACTURER':</code>. In line next to it add <code> p.manufacturers_id, </code> after <code>m.manufacturers_name,</code>. This will add manufacturers_id column in selection list. Save the file and test.</p>
<p>You can do same thing in files <code>products_new.php</code> and <code>featured_products.php</code>. Keep following <a href="http://www.infotales.com/topic/cre-loaded/">CRE Loaded</a> category to stay updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infotales.com/cre-loaded-product-listing-bug-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
