<?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>Webmaster Bulletin &#187; Technologies</title>
	<atom:link href="http://www.webmasterbulletin.net/category/technologies/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webmasterbulletin.net</link>
	<description>Rambling around the web publishing industry</description>
	<lastBuildDate>Wed, 21 Jul 2010 09:48:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wp super cache and WP3.0 menus</title>
		<link>http://www.webmasterbulletin.net/2010/07/wp-super-cache-and-wp3-0-menus/1270</link>
		<comments>http://www.webmasterbulletin.net/2010/07/wp-super-cache-and-wp3-0-menus/1270#comments</comments>
		<pubDate>Fri, 16 Jul 2010 09:09:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1270</guid>
		<description><![CDATA[For those who are running small servers and wish to accelerate their worpdress installation, we recommend the installation of eaccelerator but also the wp-super-cache plugin. There is just a small hack for wordpress 3.0 menu users : the cache should be totally refreshed when a menu is modified, and this is performed via the wp_update_nav_menu [...]]]></description>
			<content:encoded><![CDATA[<p>For those who are running small servers and wish to accelerate their worpdress installation, we recommend the installation of eaccelerator but also the <a href="http://wordpress.org/extend/plugins/wp-super-cache/">wp-super-cache plugin</a>. There is just a small hack for wordpress 3.0 menu users : the cache should be totally refreshed when a menu is modified, and this is performed via the wp_update_nav_menu action, instantiated in the wp-cache-phase2.php / wp_cache_phase2 function</p>
<pre class="brush:php">add_action("wp_update_nav_menu" , 'wp_cache_clear_cache' );</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/07/wp-super-cache-and-wp3-0-menus/1270/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Configurable products : change product image on thumbnail option</title>
		<link>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255</link>
		<comments>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255#comments</comments>
		<pubDate>Mon, 14 Jun 2010 10:21:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1255</guid>
		<description><![CDATA[This article describes a  color chooser for magento product page, a technique that automatically use product attributes from a Magento admin to display color thumbnails that

allows end user to choose color option by clicking on thumbnail
change product image to associated product image

the technique above is inspired from Magento Wiki page that describes the javascript that [...]]]></description>
			<content:encoded><![CDATA[<p>This article describes a  color chooser for magento product page, a technique that automatically use product attributes from a Magento admin to display color thumbnails that</p>
<ul>
<li>allows end user to choose color option by clicking on thumbnail</li>
<li>change product image to associated product image</li>
</ul>
<p>the technique above is inspired from<a href="http://www.magentocommerce.com/wiki/how-to/change_product_image_on_view_page_to_associated_product_s_image" target="_blank"> Magento Wiki</a> page that describes the javascript that catches the Options price select event to modifyu the product image. We&#8217;ve changed a few things though</p>
<ol>
<li><span id="more-1255"></span>this example is a color chooser. First thing is to create a folder in media/productColors with thumbnails of available colors, all stored in a file with the name of the color</li>
<li>follow the <a href="http://www.magentocommerce.com/wiki/how-to/change_product_image_on_view_page_to_associated_product_s_image" target="_blank">Magento Wiki tutorial carefully</a></li>
<li>instead of adding the code to view.phtml, create a new phtml file<br />
app/design/frontend/*/*/template/catalog/product/view/WebmasterBulletin_JsConfigColors.phtml with the following code</p>
<pre class="brush:php">&lt;?
    $_helper = $this-&gt;helper('catalog/output');
    $_product = $this-&gt;getProduct();
?&gt;
&lt;script type="text/javascript"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);

    var assocIMG = { // Added
    &lt;?php
    if ($_product-&gt;getTypeId() == "configurable") {
        $associated_products = $_product-&gt;loadByAttribute('sku', $_product-&gt;getSku())-&gt;getTypeInstance()-&gt;getUsedProducts();

        foreach ($associated_products as $assoc)
            {$dados[] = $assoc-&gt;getId().":'".($assoc-&gt;image == "no_selection" || $assoc-&gt;image == "" ? $this-&gt;helper('catalog/image')-&gt;init($_product, 'image', $_product-&gt;image)-&gt;resize(365,400) : $this-&gt;helper('catalog/image')-&gt;init($assoc, 'image', $assoc-&gt;image)-&gt;resize(365,400))."'";
            }
    } else {
        $dados[] =  "''";
    }
    echo implode(',', $dados );
    ?&gt;
    }   

function displayProductConfigImage(id)
{
jQuery('#image0').attr('src', assocIMG[id]) ;
jQuery('#image0').attr('jqimg', assocIMG[id]) ;
jSelectImage('0');
}
function selectColor(idAttribute, idProduct)
{
jQuery('#attribute76').val(idAttribute);
spConfig.reloadPrice();
displayProductConfigImage(idProduct);
}
var tipConfigImgThumb = "Choose your color :";
&lt;/script&gt;
&lt;?  $ii=0;foreach ($associated_products as $assoc)
         {
         $color=$assoc-&gt;getAttributeText("color");
         $w=100; $h=100;
         $imageColorSource =  "/media/productColors/" . strtolower($color) . ".jpg";
         $imageColorResized =  Mage::getBaseUrl() . "/media/phpThumb_1.7.9/phpThumb.php?src=" .  $imageColorSource . "&amp;w=$w&amp;h=$h&amp;iar=1";?&gt;
         &lt;a href="javascript:selectColor(&lt;?=$assoc-&gt;getColor()?&gt;, &lt;?=$assoc-&gt;getId()?&gt;)" id="ConfigImgThumb&lt;?=$assoc-&gt;getId()?&gt;"&gt;&lt;img src="&lt;?=$imageColorResized?&gt;" width="&lt;?=$w?&gt;" height="&lt;?=$h?&gt;" alt="&lt;?=$color?&gt;" border="0"&gt;&lt;/a&gt;
&lt;script&gt;new Tip('ConfigImgThumb&lt;?=$assoc-&gt;getId()?&gt;', tipConfigImgThumb + '&lt;b&gt;&lt;?=$color?&gt;&lt;/b&gt;');&lt;/script&gt;&lt;?
         }
     ?&gt;</pre>
</li>
<li>reference WebmasterBulletin_JsConfigColors.phtml in layout/catalog.xml, in the catalog/product_view block section :
<pre class="brush:xml">    &lt;block type="catalog/product_view" name="product.products_jsConfigColors" as="webmasterbulletin_products_js_config_colors" template="catalog/product/view/WebmasterBulletin_JsConfigColors.phtml" /&gt;</pre>
</li>
<li>in the product.view.phtml you can now place your color chooser where you like
<pre class="brush:php">&lt;?if ($_product-&gt;isSaleable() &amp;&amp; $this-&gt;hasOptions()) echo $this-&gt;getChildHtml('poleouest_products_js_config_colors');?&gt;</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow users to submit posts with wordpress</title>
		<link>http://www.webmasterbulletin.net/2010/06/allow-users-to-submit-posts-with-wordpress/1240</link>
		<comments>http://www.webmasterbulletin.net/2010/06/allow-users-to-submit-posts-with-wordpress/1240#comments</comments>
		<pubDate>Fri, 04 Jun 2010 11:14:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Components]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1240</guid>
		<description><![CDATA[Besides the famous CFORMS plugins, opther plugins exist that forward user input directly to posts

TDO Mini Forms : comes with a lot of options that specify who can publish what and how new posts are moderated
FV Community News

]]></description>
			<content:encoded><![CDATA[<p>Besides the famous CFORMS plugins, opther plugins exist that forward user input directly to posts</p>
<ul>
<li>TDO Mini Forms : comes with a lot of options that specify who can publish what and how new posts are moderated</li>
<li><a href="http://www.frank-verhoeven.com/wordpress-plugin-fv-community-news/">FV Community News</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/06/allow-users-to-submit-posts-with-wordpress/1240/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress single install / multiple blogs</title>
		<link>http://www.webmasterbulletin.net/2010/05/wordpress-single-install-multiple-blogs/1220</link>
		<comments>http://www.webmasterbulletin.net/2010/05/wordpress-single-install-multiple-blogs/1220#comments</comments>
		<pubDate>Wed, 26 May 2010 20:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1220</guid>
		<description><![CDATA[Yes it is possible to host multiple sites for multiple customers with Wordpress. The Multi User feature we expeted in wordpress 3.0 will satisfy bloggers only but we need something more specific. The technique I describe here is similar to the one described here in the sense that it directs the database configuration constants to [...]]]></description>
			<content:encoded><![CDATA[<p>Yes it is possible to host multiple sites for multiple customers with Wordpress. The Multi User feature we expeted in wordpress 3.0 will satisfy bloggers only but we need something more specific. The technique I describe here is similar to the one <a href="http://www.duanestorey.com/blog/wordpress/one-wordpress-install-multiple-sites/">described here</a> in the sense that it directs the database configuration constants to specific databases instead of table prefixes as seen a lot. The advantage obviously is that you keep a single install of wordpress and only have one codebase to manage , while databases remain independant.</p>
<ul>
<li>create wp-domains folder, and inside one folder for each domain, example wp-domains/mysite.com</li>
<li>add the following code to wp-config.php : this coding allows a defualt domain to remain active even when the configuration file does not exist, at the expense of a loss in performance. But It is useful to show what&#8217;s missing.</li>
</ul>
<p>$domain = strtolower( str_replace( &#8220;www.&#8221;, &#8220;&#8221;, $_SERVER["SERVER_NAME"] ) );<br />
$domain = preg_replace(&#8217;[^a-z0-9\.-]&#8216;, &#8221;, $domain );<br />
$domainDirectory=&#8221;/wp-domains/&#8221; .$domain;<br />
$domainConfig= dirname(__FILE__) . $domainDirectory . &#8220;/db-config.php&#8221;;<br />
if ( file_exists(   $domainConfig ) ) {require_once(   $domainConfig );} else {<br />
$dbuser=&#8221;defaultdomaindatabase&#8221;;<br />
$dbpwd=&#8221;password&#8221;;<br />
if ($domain!=&#8221;defaultdomain.com&#8221;) echo &#8220;missing &#8221; .$domainConfig;}</p>
<ul>
<li>replace definitions with variables in wp-config.php</li>
</ul>
<p>define(&#8217;DB_NAME&#8217;, $dbuser);<br />
define(&#8217;DB_USER&#8217;, $dbuser);<br />
define(&#8217;DB_PASSWORD&#8217;, $dbpwd);</p>
<p>Once this is working with your default  domain, setup virtual hosts  in Apache and try a new domain. Remember on a new install to setup the upload folder in wordpress admin settings.</p>
<p><strong>Multi site config for Wordpress : Compatible plugins</strong></p>
<p>I&#8217;m running the following plugins and they work perfectly</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> : works fine because the cache filename coding alogrithm includes the domain name</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/05/wordpress-single-install-multiple-blogs/1220/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery preload images</title>
		<link>http://www.webmasterbulletin.net/2010/05/jquery-preload-images/1146</link>
		<comments>http://www.webmasterbulletin.net/2010/05/jquery-preload-images/1146#comments</comments>
		<pubDate>Tue, 18 May 2010 15:30:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RIA components]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1146</guid>
		<description><![CDATA[the implementation of jquery photo gallery is better performed when the thumbnail is dynamiccaly generated via some  magic library such as the old phpthumb. But this method doubles the amount of  images to load, especially the big ones that we want to pop in on thumbnail click. And that&#8217;s where comes Ariel Flesler&#8217;s jquery preload [...]]]></description>
			<content:encoded><![CDATA[<p>the implementation of jquery photo gallery is better performed when the thumbnail is dynamiccaly generated via some  magic library such as the old phpthumb. But this method doubles the amount of  images to load, especially the big ones that we want to pop in on thumbnail click. And that&#8217;s where comes Ariel Flesler&#8217;s <a href="http://plugins.jquery.com/project/Preload">jquery preload plugin</a>, that allows some various configuration using jquery selector to specify which images should be preloaded. Another<a href="http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/"> jquery plugin </a>takes all images from css files and preload them, can be useful on all websites that rely on background images in styles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/05/jquery-preload-images/1146/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frontal creates interpreted flash</title>
		<link>http://www.webmasterbulletin.net/2010/05/frontal-creates-interpreted-flash/1143</link>
		<comments>http://www.webmasterbulletin.net/2010/05/frontal-creates-interpreted-flash/1143#comments</comments>
		<pubDate>Tue, 18 May 2010 11:19:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1143</guid>
		<description><![CDATA[Love flash but hate compiling ? here comes frontal, an intuitive markup and scripting language that generates Flash and enables you to create interactive content, sites or apps  with a few lines of code. Still slow on some browsers (crahed flash plugin on chrome), the library has a lot of available widgets for photogalleries, slideshows&#8230;
Link  [...]]]></description>
			<content:encoded><![CDATA[<p>Love flash but hate compiling ? here comes frontal, an intuitive markup and <strong>scripting language that generates Flash</strong> and enables you to create interactive content, sites or apps  with a few lines of code. Still slow on some browsers (crahed flash plugin on chrome), the library has a lot of available widgets for photogalleries, slideshows&#8230;</p>
<p>Link  : <a href="http://www.frontalcode.com">http://www.frontalcode.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/05/frontal-creates-interpreted-flash/1143/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux monitoring for your Iphone</title>
		<link>http://www.webmasterbulletin.net/2010/02/linux-monitoring-for-your-iphone/1092</link>
		<comments>http://www.webmasterbulletin.net/2010/02/linux-monitoring-for-your-iphone/1092#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:25:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1092</guid>
		<description><![CDATA[Love going mobile but always worried about your servers? here comes iphone based linux monitoring, including SSH access ! The Server Remote Iphone (4$) application allows you to monitor multiple servers the easy way.
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://lesscode.co.nz/images/server_remote/ss2_large.png?1266502889" alt="" width="148" height="222" />Love going mobile but always worried about your servers? here comes iphone based linux monitoring, including SSH access ! The <a href="http://lesscode.co.nz/iphone/server-remote">Server Remote Iphone</a> (4$) application allows you to monitor multiple servers the easy way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/02/linux-monitoring-for-your-iphone/1092/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Moto, web based CMS</title>
		<link>http://www.webmasterbulletin.net/2010/02/flash-moto-web-based-cms/1086</link>
		<comments>http://www.webmasterbulletin.net/2010/02/flash-moto-web-based-cms/1086#comments</comments>
		<pubDate>Tue, 23 Feb 2010 18:11:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[RIA components]]></category>
		<category><![CDATA[flash cms]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1086</guid>
		<description><![CDATA[
The expertise around Flash / Flex based CMS is building up a new area for content management. We haven&#8217;t had the pleasure to try out the software but the building of wysiwyg interfaces is a promising business, as long as the HTML and Search engine optimization features of pure text are guaranteed : this is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterbulletin.net/wp-content/uploads/2010/02/FlashMoto-Flash-CMS.jpg" rel="lightbox[1086]"><img class="aligncenter size-full wp-image-1087" title="FlashMoto-Flash-CMS" src="http://www.webmasterbulletin.net/wp-content/uploads/2010/02/FlashMoto-Flash-CMS.jpg" alt="FlashMoto-Flash-CMS" width="490" height="372" /></a></p>
<p>The expertise around Flash / Flex based CMS is building up a new area for content management. We haven&#8217;t had the pleasure to try out the software but the building of wysiwyg interfaces is a promising business, as long as the HTML and Search engine optimization features of pure text are guaranteed : this is where we&#8217;d like to know more about FlashMoto&#8217;s HTML publishing features, which uses the HTML version technique; meaning the flash based web site is also available as HTML for search engines and non flash browser. This technique is also used by <a href="http://www.webmasterbulletin.net/2008/08/flash-cms-goes-opensource-with-silex-gpl/177">Silex RIA</a>, another Flash based CMS.</p>
<p>What distinguishes FlashMoto from a range of other flash content management systems is that it is the first Flash CMS based on ActionScript 3 and realized as RIA on Flex.   The websites powered by FlashMoto are controlled just like a standard CMS but with the extras that Flash offers.  FlashMoto provides a set of SEO tools what makes the Flash CMS website completely crawlable and seen by search engines.</p>
<p>Flash CMS from FlashMoto is characterized by a range of other features:<br />
- ability to add unlimited number of pages;<br />
- convenient WYSIWYG page and pop-up editor;<br />
- rich media library;<br />
- infomodule component;<br />
- video and image gallery component;<br />
- video and MP3 players component;<br />
- deep linking and Google Analytics integration;<br />
- comprehensive documentation and tutorials.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/02/flash-moto-web-based-cms/1086/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fuzzle flash based CMS</title>
		<link>http://www.webmasterbulletin.net/2010/02/fuzzle-flash-based-cms/1083</link>
		<comments>http://www.webmasterbulletin.net/2010/02/fuzzle-flash-based-cms/1083#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:09:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[RIA components]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1083</guid>
		<description><![CDATA[
Fuzzle CMS is a promising Flash CMS delevoped by a group of Russian programmers. The system is claimed to be an extra easy way for creating Flash website thanks to visual content management. Note, Fuzzle’s website is also made with this CMS. Fuzzle brings you advantages of Flash and HTML in one system and affords [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterbulletin.net/wp-content/uploads/2010/02/Fuzzle-CMS-screenshot-enweb.jpg" rel="lightbox[1083]"><img class="aligncenter size-full wp-image-1084" title="Fuzzle CMS screenshot (en)web" src="http://www.webmasterbulletin.net/wp-content/uploads/2010/02/Fuzzle-CMS-screenshot-enweb.jpg" alt="Fuzzle CMS screenshot (en)web" width="490" height="382" /></a></p>
<p>Fuzzle CMS is a promising Flash CMS delevoped by a group of Russian programmers. The system is claimed to be an extra easy way for creating Flash website thanks to visual content management. Note, Fuzzle’s website is also made with this CMS. Fuzzle brings you advantages of Flash and HTML in one system and affords you create and maintain your website&#8217;s content without knowing anything about programming. Flash web sites are differ from regular HTML sites mainly by their presentational abilities: Flash technology allows incorporating complex animations and reach multimedia content. However, Flash sites are considered to have such disadvantages as longer time of development (therefore more cost), harder updating, bad search engines ranking. Fuzzle is breaking these stereotypes!<br />
Main Fuzzle features are: :<br />
- multilinguality;<br />
- simple management (convenient visual editing based on blocks placement and multiple selection of blocks );<br />
- design integration from a draft within 5 minutes;;<br />
- SEO support (HTML version auto generation, DeepLinking support);<br />
- continuously replenished Widget Store availability;<br />
- availability of an open simple API for external developers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/02/fuzzle-flash-based-cms/1083/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prestashop : quote module  (devis)</title>
		<link>http://www.webmasterbulletin.net/2009/11/prestashop-quote-module-devis/1059</link>
		<comments>http://www.webmasterbulletin.net/2009/11/prestashop-quote-module-devis/1059#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[devis]]></category>
		<category><![CDATA[prestashop]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1059</guid>
		<description><![CDATA[
The quote feature  is  an implementation of a shopping cart within prestashop framework, without the price : we have designed this feature for specific groups, for which we deactivate the price display on the shop.

Deactivating price display for specific user group (below : group 2) is a long task that involves 2 different steps 

in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterbulletin.net/wp-content/uploads/2009/11/ScreenshotPrestashopDevis.jpg" rel="lightbox[1059]"><img class="aligncenter size-full wp-image-1061" title="ScreenshotPrestashopDevis" src="http://www.webmasterbulletin.net/wp-content/uploads/2009/11/ScreenshotPrestashopDevis.jpg" alt="ScreenshotPrestashopDevis" width="490" height="176" /></a></p>
<p>The quote feature  is  an implementation of a shopping cart within prestashop framework, without the price : we have designed this feature for specific groups, for which we deactivate the price display on the shop.</p>
<ul>
<li><strong>Deactivating price display for specific user group (below : group 2) is a long task that involves 2 different steps </strong>
<ul>
<li>in init.php : set the smarty variable around line 116
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re0">$priceDisplayConfig</span> = <a href="http://www.php.net/intval"><span class="kw3">intval</span></a><span class="br0">&#40;</span>Configuration::<span class="me2">get</span><span class="br0">&#40;</span><span class="st0">&#8216;PS_PRICE_DISPLAY&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$tmpCust</span>-&gt;<span class="me1">isMemberOfGroup</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="re0">$priceDisplayConfig</span> = <span class="nu0">3</span>;</div>
</li>
</ol>
</div>
<p>And around line 155</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="st0">&#8216;priceDisplay&#8217;</span> =&gt; <span class="re0">$priceDisplayConfig</span></div>
</li>
</ol>
</div>
</li>
<li>use the smarty $priceDisplay variable in the templates to hide prices and change the &#8220;cart&#8217; (panier in french) to &#8220;quote&#8221; (devis), example from homefeature.tpl
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span><span class="kw1">if</span> <span class="re0">$priceDisplay</span>&lt;<span class="nu0">3</span><span class="br0">&#125;</span><span class="br0">&#123;</span>l s=<span class="st0">&#8216;Add to cart&#8217;</span> mod=<span class="st0">&#8216;homefeatured&#8217;</span><span class="br0">&#125;</span><span class="br0">&#123;</span><span class="kw1">else</span><span class="br0">&#125;</span> Ajouter au devis <span class="br0">&#123;</span>/<span class="kw1">if</span><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
</li>
</ul>
</li>
<li><strong>Quote / Devis module and status : </strong>
<ul>
<li>Download and install the &#8220;devis&#8221; module <a class="downloadlink" href="http://www.webmasterbulletin.net/wp-content/plugins/download-monitor/download.php?id=7" title=" downloaded 559 times" >Module Devis pour prestashop (559)</a></li>
<li>create the mails/devis.html and mail/devis.txt and change texts according to your business</li>
<li>create the order status &#8220;devis en cours&#8221; in BackOffice &gt;&gt; Orders &gt;&gt; statuses, check the created id (12 here) and add the following line to config.inc.php :
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;_PS_OS_DEVIS_EN_COURS&#8217;</span>, <span class="nu0">12</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
</li>
<li>You can optionnally deactivate the order confirmation email in classes/PaymentModule.php, line 288-290, replace the send email to customer test by adding a new condition :
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Send an e-mail to customer</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$id_order_state</span> != _PS_OS_ERROR_ AND <span class="re0">$id_order_state</span> != _PS_OS_CANCELED_ AND <span class="re0">$customer</span>-&gt;<span class="me1">id</span></div>
</li>
<li class="li1">
<div class="de1">AND <span class="re0">$id_order_state</span> != _PS_OS_DEVIS_EN_COURS<span class="br0">&#41;</span></div>
</li>
</ol>
</div>
</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/11/prestashop-quote-module-devis/1059/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
