<?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>Wasimasif&#039;s Blog &#187; CRE Loaded</title>
	<atom:link href="http://blog.wasimasif.com/topic/cre-loaded/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wasimasif.com</link>
	<description>About CRE Loaded, Web Performance, SEO and many things</description>
	<lastBuildDate>Tue, 09 Mar 2010 06:44:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PayPal payment module and discount coupons problem in CRE Loaded</title>
		<link>http://blog.wasimasif.com/paypal-payment-module-discount-coupons-problem-cre-loaded/</link>
		<comments>http://blog.wasimasif.com/paypal-payment-module-discount-coupons-problem-cre-loaded/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 06:49:21 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 dose not cater the discount coupon amount. One configuration called &#8220;Shopping [...]]]></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 dose 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://blog.wasimasif.com/topic/cre-loaded/">CRE Loaded</a> section on my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wasimasif.com/paypal-payment-module-discount-coupons-problem-cre-loaded/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Track visitor searches in OSCommerce and CRE Loaded with Google Analytics</title>
		<link>http://blog.wasimasif.com/track-visitor-site-searches-oscommercegoogle-analytics/</link>
		<comments>http://blog.wasimasif.com/track-visitor-site-searches-oscommercegoogle-analytics/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 05:08:28 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 Settings [...]]]></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://blog.wasimasif.com/track-visitor-site-searches-oscommercegoogle-analytics/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to protect CRE Loaded admin area?</title>
		<link>http://blog.wasimasif.com/hardening-protecting-cre-loaded-admin-area/</link>
		<comments>http://blog.wasimasif.com/hardening-protecting-cre-loaded-admin-area/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 09:01:24 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 make [...]]]></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://blog.wasimasif.com/hardening-protecting-cre-loaded-admin-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CVV code bug fix in Credit Card UK with CVC payment module</title>
		<link>http://blog.wasimasif.com/cvv-bug-fix-credit-card-uk-payment-module/</link>
		<comments>http://blog.wasimasif.com/cvv-bug-fix-credit-card-uk-payment-module/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:30:53 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 in editor [...]]]></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://blog.wasimasif.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://blog.wasimasif.com/cre-loaded-6-4-1-is-here/</link>
		<comments>http://blog.wasimasif.com/cre-loaded-6-4-1-is-here/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:30:45 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 I did not get chance [...]]]></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://blog.wasimasif.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://blog.wasimasif.com/high-performance-cre-loaded-site/</link>
		<comments>http://blog.wasimasif.com/high-performance-cre-loaded-site/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:21:39 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>
		<category><![CDATA[Web Performance Optimization]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 motivated [...]]]></description>
			<content:encoded><![CDATA[<p>For last few days worked on <a href="http://blog.wasimasif.com/topic/web-performance-optimization/">performance optimization of CRE Loaded</a> site. Now all major performance measuring tools Yahoo YSlow, <a href="http://blog.wasimasif.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://blog.wasimasif.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://blog.wasimasif.com/wp-content/uploads/2009/12/performance_yslow.gif"><img class="alignnone size-medium wp-image-498" title="performance_yslow" src="http://blog.wasimasif.com/wp-content/uploads/2009/12/performance_yslow.gif" alt="" /></a></p>
<p><strong>Page Speed</strong></p>
<p><a href="http://blog.wasimasif.com/wp-content/uploads/2009/12/performance_page_speed.gif"><img class="alignnone size-medium wp-image-499" title="performance_page_speed" src="http://blog.wasimasif.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://blog.wasimasif.com/high-performance-cre-loaded-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Product listing bug in CRE Loaded</title>
		<link>http://blog.wasimasif.com/cre-loaded-product-listing-bug/</link>
		<comments>http://blog.wasimasif.com/cre-loaded-product-listing-bug/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:07:40 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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://blog.wasimasif.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://blog.wasimasif.com/cre-loaded-product-listing-bug-fix/">Product listing bug fix in CRE Loaded</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wasimasif.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://blog.wasimasif.com/cre-loaded-speed-up-cache/</link>
		<comments>http://blog.wasimasif.com/cre-loaded-speed-up-cache/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 15:55:25 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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 executable [...]]]></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://blog.wasimasif.com/cre-loaded-speed-up-cache/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Product listing bug in CRE Loaded</title>
		<link>http://blog.wasimasif.com/cre-loaded-product-listing-bug-fix/</link>
		<comments>http://blog.wasimasif.com/cre-loaded-product-listing-bug-fix/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 18:04:09 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.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://blog.wasimasif.com/topic/cre-loaded/">CRE Loaded</a> category to stay updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wasimasif.com/cre-loaded-product-listing-bug-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up product search for CRE Loaded</title>
		<link>http://blog.wasimasif.com/cre-loaded-search-speed-fulltext/</link>
		<comments>http://blog.wasimasif.com/cre-loaded-search-speed-fulltext/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:40:50 +0000</pubDate>
		<dc:creator>wasimasif</dc:creator>
				<category><![CDATA[CRE Loaded]]></category>

		<guid isPermaLink="false">http://blog.wasimasif.com/?p=452</guid>
		<description><![CDATA[CRE Loaded provides a basic search where a product can be searched by product name, model and manufacturer. If selected search is also performed in product description. This search uses SQL &#8220;LIKE&#8221; syntax to search in text fields. For example is keyword &#8220;test&#8221; is search the query will be
select distinct p.products_image ... final_price from ( [...]]]></description>
			<content:encoded><![CDATA[<p>CRE Loaded provides a basic search where a product can be searched by product name, model and manufacturer. If selected search is also performed in product description. This search uses SQL &#8220;LIKE&#8221; syntax to search in text fields. For example is keyword &#8220;test&#8221; is search the query will be</p>
<blockquote><p><code>select distinct p.products_image ... final_price from ( products p left join specials s using(products_id) ) left join manufacturers m on p.manufacturers_id = m.manufacturers_id , products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%test%' or p.products_model like '%test%' or m.manufacturers_name like '%test%' or pd.products_description like '%test%') ) order by pd.products_name</code></p></blockquote>
<p>The LIKE search can be very slow with large amount of products and specially when searching in description as well. To avoid this we can make this search to use fulltext searching feature of MySQL. The fulltext search will make searching in description much faster then normal like query. So lets start on fulltext search for CRE Loaded but before we start <code>backup your files and database before you make any changes in case if any thing goes wrong, secondly changes mentioned worked for CRE Loaded pro 6.2 version but it should work with other versions as well.</code></p>
<p>First we need to create fulltext index on products table by following query.</p>
<blockquote><p><code>ALTER TABLE products_description  ADD FULLTEXT INDEX idx_name_desc (products_name, products_description);</code></p></blockquote>
<p>Now to enable or disable fulltext search we need to add configuration so admin can do it easily. The query to add configuration is following.</p>
<blockquote><p><code>INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id</p>
<p>, sort_order, last_modified, date_added, set_function)</p>
<p>VALUES ('Fulltext search', 'ADVANCED_SEARCH_FULLTEXT', 'false', 'Enable/Disable fulltext search', '1', '999', NOW(), NOW(), 'tep_cfg_select_option(array(\'true\',\'false\'),');</code></p></blockquote>
<p>Now we need to add code for fulltext searching which will be added in file <code>/templates/content/advanced_search_result.tpl.php</code>. To do this open the above mentioned file and find</p>
<blockquote><p><code>if (isset($search_keywords) &amp;&amp; (sizeof($search_keywords) &gt; 0)) {</p>
<p>$where_str .= " and (";</code></p></blockquote>
<p>and add following code after it.</p>
<blockquote><p><code>if(ADVANCED_SEARCH_FULLTEXT == 'true')</p>
<p>{</p>
<p>$ft_keyword = tep_db_input($keywords);</p>
<p>$where_str .= "MATCH(pd.products_name, pd.products_description) AGAINST('".$ft_keyword."' IN BOOLEAN MODE) OR p.products_model like '%".tep_db_input($keywords)."%'";</p>
<p>}</p>
<p>else</p>
<p>{</code></p></blockquote>
<p>now find</p>
<blockquote><p><code>$where_str .= " )";</code></p></blockquote>
<p>and add code</p>
<blockquote><p><code>}</code></p></blockquote>
<p>before the code found.</p>
<p>Now the query should look like</p>
<blockquote><p><code>select distinct p.products_image,  ... final_price from ( products p left join specials s using(products_id) ) left join manufacturers m on p.manufacturers_id = m.manufacturers_id , products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (MATCH(pd.products_name, pd.products_description) AGAINST('test' IN BOOLEAN MODE) OR p.products_model like '%test%' )</code></p></blockquote>
<p>In above query fulltext search will be performed in product name and description, the model will still be searched in LIKE mode, and manufacturer name will not be searched. With little effort model and manufacturer name can also be added to fulltext search.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wasimasif.com/cre-loaded-search-speed-fulltext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
