<?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>preordina Archives - TecnoGuide</title>
	<atom:link href="https://tecnoguide.info/tag/preordina/feed/" rel="self" type="application/rss+xml" />
	<link>https://tecnoguide.info/tag/preordina/</link>
	<description></description>
	<lastBuildDate>Mon, 04 Feb 2013 20:30:26 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>
	<item>
		<title>[Guida] Come aggiungere il tasto Preordina in Magento</title>
		<link>https://tecnoguide.info/guida-come-aggiungere-il-tasto-preordina-in-magento/</link>
					<comments>https://tecnoguide.info/guida-come-aggiungere-il-tasto-preordina-in-magento/#respond</comments>
		
		<dc:creator><![CDATA[D'Orazi Dario]]></dc:creator>
		<pubDate>Mon, 04 Feb 2013 20:30:26 +0000</pubDate>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[preordina]]></category>
		<category><![CDATA[preordina magento]]></category>
		<category><![CDATA[tasto preordina]]></category>
		<guid isPermaLink="false">http://www.guidetech.it/?p=83</guid>

					<description><![CDATA[<p>Durante lo sviluppo di un noto sito di e-commerce ho sentito la necessità di inserire il tasto Preordina. Ecco come fare in pochi e semplici passaggi. Innanzitutto aprite app/design/frontend/yourpackage/yourtheme/template/catalog/product/list.phtml Cercate: 1 &#60;?php $_productCollection=$this-&#62;getLoadedProductCollection() ?&#62; Aggiungete sotto: 1 2 &#60;?php $addtocart = $this-&#62;__('Add to Cart'); ?&#62; &#60;?php $preorder = $this-&#62;__('Preordina'); ?&#62; &#160; Cercate: 1 &#60;p&#62;&#60;button type="button" [&#8230;]</p>
<p>The post <a href="https://tecnoguide.info/guida-come-aggiungere-il-tasto-preordina-in-magento/">[Guida] Come aggiungere il tasto Preordina in Magento</a> appeared first on <a href="https://tecnoguide.info">TecnoGuide</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="http://tecnoguide.info/wp-content/uploads/2013/02/preordina.png"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-84" alt="preordina" src="http://tecnoguide.info/wp-content/uploads/2013/02/preordina.png" width="540" height="318" srcset="https://tecnoguide.info/wp-content/uploads/2013/02/preordina.png 540w, https://tecnoguide.info/wp-content/uploads/2013/02/preordina-300x176.png 300w" sizes="(max-width: 540px) 100vw, 540px" /></a></p>
<p>Durante lo sviluppo di un noto sito di e-commerce ho sentito la necessità di inserire il tasto <strong>Preordina</strong>. Ecco come fare in pochi e semplici passaggi.</p>
<p><span id="more-83"></span>Innanzitutto aprite <em>app/design/frontend/<strong>yourpackage/yourtheme/</strong>template/catalog/product/list.phtml</em></p>
<p><strong>Cercate:</strong></p>
<div>
<div id="highlighter_824823">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;?php </code><code>$_productCollection</code><code>=</code><code>$this</code><code>-&gt;getLoadedProductCollection() ?&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><strong>Aggiungete sotto:</strong></p>
<div>
<div id="highlighter_154061">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
</td>
<td>
<div>
<div><code>&lt;?php </code><code>$addtocart</code> <code>= </code><code>$this</code><code>-&gt;__(</code><code>'Add to Cart'</code><code>); ?&gt;</code></div>
<div><code>&lt;?php </code><code>$preorder</code> <code>= </code><code>$this</code><code>-&gt;__(</code><code>'Preordina'</code><code>); ?&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>&nbsp;</p>
<p><strong>Cercate:</strong></p>
<div>
<div id="highlighter_87360">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;p&gt;&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;"</code> <code>class</code><code>=</code><code>"button btn-cart"</code> <code>onclick=</code><code>"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')"</code><code>&gt;&lt;span&gt;&lt;span&gt;&lt;?php </code><code>echo</code> <code>$this</code><code>-&gt;__(</code><code>'Add to Cart'</code><code>) ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><strong>Sostituite con</strong></p>
<div>
<div id="highlighter_244434">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;p&gt;&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php if(Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($_product)-&gt;getQty()&gt;0): echo $addtocart; else: echo $preorder; endif; ?&gt;"</code> <code>class</code><code>=</code><code>"button btn-cart"</code> <code>onclick=</code><code>"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')"</code><code>&gt;&lt;span&gt;&lt;span&gt;&lt;?php </code><code>if</code><code>(Mage::getModel(</code><code>'cataloginventory/stock_item'</code><code>)-&gt;loadByProduct(</code><code>$_product</code><code>)-&gt;getQty()&gt;0): </code><code>echo</code> <code>$addtocart</code><code>; </code><code>else</code><code>: </code><code>echo</code> <code>$preorder</code><code>; </code><code>endif</code><code>; ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>&nbsp;</p>
<p><strong>Cercate:</strong></p>
<div>
<div id="highlighter_852896">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;"</code> <code>class</code><code>=</code><code>"button btn-cart"</code> <code>onclick=</code><code>"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')"</code><code>&gt;&lt;span&gt;&lt;span&gt;&lt;?php </code><code>echo</code> <code>$this</code><code>-&gt;__(</code><code>'Add to Cart'</code><code>) ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><strong>Sostituite con:</strong></p>
<div>
<div id="highlighter_191524">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php if(Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($_product)-&gt;getQty()&gt;0): echo $addtocart; else: echo $preorder; endif; ?&gt;"</code> <code>class</code><code>=</code><code>"button btn-cart"</code> <code>onclick=</code><code>"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')"</code><code>&gt;&lt;span&gt;&lt;span&gt;&lt;?php </code><code>if</code><code>(Mage::getModel(</code><code>'cataloginventory/stock_item'</code><code>)-&gt;loadByProduct(</code><code>$_product</code><code>)-&gt;getQty()&gt;0): </code><code>echo</code> <code>$addtocart</code><code>; </code><code>else</code><code>: </code><code>echo</code> <code>$preorder</code><code>; </code><code>endif</code><code>; ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;br&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Aprite <em>app/design/frontend/<strong>yourpackage/yourtheme/</strong>template/catalog/product/view/addtocart.phtml</em></p>
<p><strong>Cercate:</strong></p>
<div>
<div id="highlighter_630175">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;?php </code><code>$_product</code> <code>= </code><code>$this</code><code>-&gt;getProduct(); ?&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><strong>Aggiungete in basso:</strong></p>
<div>
<div id="highlighter_978896">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
</td>
<td>
<div>
<div><code>&lt;?php </code><code>$addtocart</code> <code>= </code><code>$this</code><code>-&gt;__(</code><code>'Add to Cart'</code><code>); ?&gt;</code></div>
<div><code>&lt;?php </code><code>$preorder</code> <code>= </code><code>$this</code><code>-&gt;__(</code><code>'Preordina'</code><code>); ?&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>&nbsp;</p>
<p><strong>Cercate:</strong></p>
<div>
<div id="highlighter_534529">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php echo $buttonTitle ?&gt;"</code> <code>class</code><code>=</code><code>"button btn-cart"</code> <code>onclick=</code><code>"productAddToCartForm.submit(this)"</code><code>&gt;&lt;span&gt;&lt;span&gt;&lt;?php </code><code>echo</code> <code>$buttonTitle</code> <code>?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><strong>Sostituite con:</strong></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>&lt;button type=</code><code>"button"</code> <code>title=</code><code>"&lt;?php if($_product-&gt;getStockItem()-&gt;getQty()&gt;0): echo $addtocart; </code></div>
</div>
</td>
</tr>
</tbody>
</table>
<p>Non vi resta che salvare il tutto e provare. Il test è stato effettuato con Magento 1.7.0.2</p>
<p>The post <a href="https://tecnoguide.info/guida-come-aggiungere-il-tasto-preordina-in-magento/">[Guida] Come aggiungere il tasto Preordina in Magento</a> appeared first on <a href="https://tecnoguide.info">TecnoGuide</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tecnoguide.info/guida-come-aggiungere-il-tasto-preordina-in-magento/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
