<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>KreaComm'.info [KBWEB]</title>
	<link>http://kreacomm.info/</link>
	<description>&quot;Une base de connaissances d&#233;di&#233;e aux travailleurs du Web&quot;</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net (Sarka-SPIP)</generator>

	<image>
		<title>KreaComm'.info [KBWEB]</title>
		<url>http://www.kreacomm.info/local/cache-vignettes/L75xH75/siteon0-38e4a.jpg</url>
		<link>http://kreacomm.info/</link>
		<height>75</height>
		<width>75</width>
	</image>



 
	<item xml:lang="fr">
		<title>Valeur par d&#233;faut pour les param&#232;tres du produit</title>
		<link>http://www.kreacomm.info/PHP/Applis-PHP-Mysql/Virtuemart/Valeur-par-defaut-pour-les.html</link>
		<guid isPermaLink="true">http://www.kreacomm.info/PHP/Applis-PHP-Mysql/Virtuemart/Valeur-par-defaut-pour-les.html</guid>
		<dc:date>2009-01-22T02:07:04Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>KreaComm'</dc:creator>



		<description>&lt;p&gt;Affecter une valeur par d&#233;faut &#224; un param&#232;tre non renseign&#233; de votre produit.&lt;/p&gt;

-
&lt;a href="http://www.kreacomm.info/PHP/Applis-PHP-Mysql/Virtuemart/" rel="directory"&gt;Virtuemart&lt;/a&gt;


		</description>


 <content:encoded>&lt;img class='spip_logos' alt=&quot;&quot; align=&quot;right&quot; src=&quot;http://www.kreacomm.info/local/cache-vignettes/L80xH79/arton32-7ae36.gif&quot; width='80' height='79' style='height:79px;width:80px;' /&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Dans la page de d&#233;tails du produits, si vous utilisez les param&#232;tres de produits (taille, forme, couleur, mat&#233;riaux...) et que tous ne sont pas renseign&#233;s, par d&#233;faut, Virtuemart n'affichera rien.&lt;/p&gt; &lt;p&gt;&lt;i&gt; &lt;strong&gt;Exemple :&lt;/strong&gt;
&lt;strong&gt;&quot;FORME : &quot;&lt;/strong&gt;
peut &#234;tre remplac&#233; par :
&lt;strong&gt;&quot;FORME : N.C.&quot;&lt;/strong&gt;
, ainsi &quot;N.C.&quot; sera automatiquement affich&#233; si vous n'avez pas renseign&#233; la forme de votre produit.&lt;/i&gt;&lt;/p&gt; &lt;p&gt;Pour corriger cela vous pouvez effectuer la manip ci-dessous.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Virtuemart 1.1.4&lt;/h3&gt;
&lt;p&gt;Depuis la version 1.1.4, Virtuemart utilise une template pour les param&#232;tres de produits, il faut donc modifier la page &quot;product_type.tpl.php&quot; du dossier de votre template de Virtuemart &lt;i&gt;(/components/com_virtuemart/themes/VOTRE_THEME/templates/common/product_type.tpl.php)&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;Dans ce fichier, ligne 52, trouvez :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$product_type_params&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_value&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Et remplacez par :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$product_type_params&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_value&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;&quot;&gt;'-'&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$product_type_params&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_value&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://www.kreacomm.info/local/cache-code/09a808b56766914cbfb0aac4cb4dd0bb.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Virtuemart 1.1.x&lt;/h3&gt;
&lt;p&gt;Dans le fichier &lt;strong&gt; &lt;i&gt;/administrator/components/com_virtuemart/classes/ps_product_type.php&lt;/i&gt; &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;A la ligne 576, trouvez :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$html&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$dbp&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$dba&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_name&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$dba&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_unit&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;&lt;/td&gt;&lt;/tr&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Juste au dessus ajoutez :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$dbp&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$dba&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;parameter_name&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$html&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.=&lt;/span&gt; &lt;span style=&quot;&quot;&gt;'-'&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://www.kreacomm.info/local/cache-code/2ee7c87baf8af852f556595c113aff1c.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ce code affichera le caract&#232;re - (tiret) afin d'indiquer au visiteur que le param&#232;tre n'est pas renseign&#233;.&lt;/p&gt;&lt;/div&gt;
		&lt;div class="hyperlien"&gt;Voir en ligne : &lt;a href="http://virtuemart.net/" class="spip_out"&gt;Virtuemart&lt;/a&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://www.kreacomm.info/IMG/gif/modif_virtuemart_15151.gif" length="4189" type="image/gif" />
		

	</item>


 
	


 
	

</channel>
</rss>
