<?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>Magento Problems</title>
	<atom:link href="http://www.magentoproblems.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magentoproblems.com</link>
	<description>Magento plugins, information, intructions and more.</description>
	<lastBuildDate>Fri, 17 May 2013 10:59:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Table rates shipping based on price AFTER DISCOUNT &#8211; Magento</title>
		<link>http://www.magentoproblems.com/table-rates-shipping-based-on-price-after-discount-magento/</link>
		<comments>http://www.magentoproblems.com/table-rates-shipping-based-on-price-after-discount-magento/#comments</comments>
		<pubDate>Tue, 14 May 2013 21:26:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=144</guid>
		<description><![CDATA[Magento has quite a big bug which enables the shipping module to calculate shipping costs without discount or shipping rules (if they are applied). It cost me hours to find a workaround, so if you use it, I&#8217;d really appreciate &#8230; <a href="http://www.magentoproblems.com/table-rates-shipping-based-on-price-after-discount-magento/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Magento has quite a big bug which enables the shipping module to calculate shipping costs without discount or shipping rules (if they are applied).</p>
<p>It cost me hours to find a workaround, so if you use it, I&#8217;d really appreciate it if you refer to this blog.</p>
<h2>How I fixed it</h2>
<p>Go to:</p>
<p>/app/code/local/Mage/Shipping/Model/Carrier/Tablerate.php</p>
<p>Add the following code at around line 77 (in the collectRates function):</p>
<p>$s_price = $request->getPackageValueWithDiscount();<br />
$request->setPackageValue($s_price);</p>
<p>Now, the shipping rates are calculated on the subtotal minus the discount. I hope this solves the problem (it does in 1.7)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/table-rates-shipping-based-on-price-after-discount-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento import multiple images in dataflow csv/xml</title>
		<link>http://www.magentoproblems.com/magento-import-multiple-images-in-dataflow-csv-xml/</link>
		<comments>http://www.magentoproblems.com/magento-import-multiple-images-in-dataflow-csv-xml/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 13:57:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=137</guid>
		<description><![CDATA[Sometimes it&#8217;s really annoying that Magento only supports one image per product. On the Magento Commerce forum a solution is found: Now, what you need to do is open the file app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php and go to around line 773 and find &#8230; <a href="http://www.magentoproblems.com/magento-import-multiple-images-in-dataflow-csv-xml/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Sometimes it&#8217;s really annoying that Magento only supports one image per product. On the Magento Commerce forum a solution is found:</p>
<p>Now, what you need to do is open the file<br />
<span style="text-decoration: underline;">app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php</span><br />
and go to around line 773 and find</p>
<p><code>$addedFilesCorrespondence = $mediaGalleryBackendModel-&gt;addImagesWithDifferentMediaAttributes(<br />
$product,<br />
$arrayToMassAdd, Mage::getBaseDir('media') . DS . 'import',<br />
false,<br />
false<br />
);</code><br />
and paste the following code right after it<br />
<code>if (isset($importData['media_gallery']) &amp;&amp; !empty($importData['media_gallery'])) {<br />
$x = explode(',', $importData['media_gallery']);<br />
foreach ($x as $file) {<br />
$imagesToAdd[] = array('file' =&gt; trim($file));<br />
}<br />
$mediaGalleryBackendModel-&gt;addImagesWithDifferentMediaAttributes(<br />
$product,<br />
$imagesToAdd, Mage::getBaseDir('media') . DS . 'import',<br />
false,<br />
false<br />
);<br />
}<br />
</code><br />
Source: http://www.magentocommerce.com/boards/viewthread/224928/P45/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/magento-import-multiple-images-in-dataflow-csv-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento proceed to checkout slow [FIXED]</title>
		<link>http://www.magentoproblems.com/magento-proceed-to-checkout-slow-fixed/</link>
		<comments>http://www.magentoproblems.com/magento-proceed-to-checkout-slow-fixed/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 13:10:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=135</guid>
		<description><![CDATA[The Magento &#8220;proceed to checkout&#8221; step can take up to a minute. With thanks to this site I figured out how to fix slow checkouts. Step 1 Find the file app/code/core/Mage/Rss/etc/config.xml and uncomment/remove: &#60;sales_order_save_after&#62; &#60;observers&#62; &#60;notifystock&#62; &#60;class&#62;rss/observer&#60;/class&#62; &#60;method&#62;salesOrderItemSaveAfterNotifyStock&#60;/method&#62; &#60;/notifystock&#62; &#60;/observers&#62; &#60;/sales_order_save_after&#62; &#60;sales_order_save_after&#62; &#8230; <a href="http://www.magentoproblems.com/magento-proceed-to-checkout-slow-fixed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The Magento &#8220;proceed to checkout&#8221; step can take up to a minute. With thanks to <a href="http://kassner.com.br/2011/01/magento-slow/">this site</a> I figured out how to fix slow checkouts.</p>
<h3>Step 1</h3>
<p>Find the file app/code/core/Mage/Rss/etc/config.xml and uncomment/remove:</p>
<p>&lt;sales_order_save_after&gt;<br />
&lt;observers&gt;<br />
&lt;notifystock&gt;<br />
&lt;class&gt;rss/observer&lt;/class&gt;<br />
&lt;method&gt;salesOrderItemSaveAfterNotifyStock&lt;/method&gt;<br />
&lt;/notifystock&gt;<br />
&lt;/observers&gt;<br />
&lt;/sales_order_save_after&gt;<br />
&lt;sales_order_save_after&gt;<br />
&lt;observers&gt;<br />
&lt;ordernew&gt;<br />
&lt;class&gt;rss/observer&lt;/class&gt;<br />
&lt;method&gt;salesOrderItemSaveAfterOrderNew&lt;/method&gt;<br />
&lt;/ordernew&gt;<br />
&lt;/observers&gt;<br />
&lt;/sales_order_save_after&gt;</p>
<h3>Step 2</h3>
<p>Find the file app/code/core/Mage/Downloadable/etc/config.xml and uncomment/remove:</p>
<p>&lt;!&#8211;sales_order_item_save_commit_after&gt;<br />
&lt;observers&gt;<br />
&lt;downloadable_observer&gt;<br />
&lt;class&gt;downloadable/observer&lt;/class&gt;<br />
&lt;method&gt;saveDownloadableOrderItem&lt;/method&gt;<br />
&lt;/downloadable_observer&gt;<br />
&lt;/observers&gt;<br />
&lt;/sales_order_item_save_commit_after&#8211;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/magento-proceed-to-checkout-slow-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento upgrade to 1.7</title>
		<link>http://www.magentoproblems.com/magento-upgrade-to-1-7/</link>
		<comments>http://www.magentoproblems.com/magento-upgrade-to-1-7/#comments</comments>
		<pubDate>Fri, 15 Feb 2013 10:09:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=130</guid>
		<description><![CDATA[Upgrading Magento Commerce 1.4, 1.5 and 1.6 to 1.7 Magento is a pretty complex program that hasn&#8217;t an easy upgrading solution. Because following the standard guides gives quite a lot of errors, I wrote my own upgrade guide with thanks &#8230; <a href="http://www.magentoproblems.com/magento-upgrade-to-1-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h2>Upgrading Magento Commerce 1.4, 1.5 and 1.6 to 1.7</h2>
<p>Magento is a pretty complex program that hasn&#8217;t an easy upgrading solution. Because following the standard guides gives quite a lot of errors, I wrote my own upgrade guide with thanks to <a href="http://duntuk.com/magento-upgrade">Duntuk.com</a> and <a href="http://turnkeye.com/blog/magento-upgrade-guide/">Turnkeye</a>.</p>
<p>For versions lower than 1.4.2, you&#8217;d first have to follow the steps from <a href="http://turnkeye.com/blog/magento-upgrade-guide/">Turnkeye</a> for lower versions.</p>
<h2>Pre-upgrading steps</h2>
<ul>
<li>MAKE A BACKUP!</li>
<li>Install a fresh install of Magento on a subdirectory or other host on a new database (don&#8217;t overwrite your own version of course).</li>
<li>With the <a href="http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/db-repair-tool">db repair tool </a>from Magento you can compare your own database versus the fresh database you just installed. The db repair tool looks for errors in the database and can upgrade them.</li>
<li>Open SSH and remove your cache:<br />
<code>rm -rf var/cache/*<br />
rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*</code></li>
</ul>
<h2>Upgrading steps</h2>
<ul>
<li>Chmod the mage file: <code>$ chmod 550 ./mage</code></li>
<li><span style="line-height: normal;"><span style="line-height: normal;">Upgrade the site (according to Duntuk and Turnkeye):</span></span><code>$ ./mage mage-setup .<br />
$ ./mage sync --force<br />
$ ./mage list-upgrades #(in order to see if there are upgrades)<br />
$ ./mage config-set preferred_state stable</code></li>
<li><code><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: x-small;"><span style="line-height: normal;">Start the upgrade<br />
</span></span>$ ./mage upgrade-all --force</code></li>
<li><code><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: x-small;"><span style="line-height: normal;">If the upgrade is finished you'll see rows like:<br />
Package upgraded: community/Mage_Locale_en_US 1.7.0.2</span></span></code></li>
<li><code><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: x-small;"><span style="line-height: normal;">Remove cache and sessions<br />
</span></span> $ rm -rf var/cache/* var/session/*<br />
$ rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*<br />
</code></li>
<li><span style="line-height: normal;">Visit the homepage which will trigger the upgrade process. It can take up to 30 minutes. By doing it by SSH safes memory:<br />
<code>$ php -f index.php</code></span></li>
<li><span style="line-height: normal;">Sometimes it&#8217;s safer to trigger the index.php multiple times until it gives a blank return</span></li>
<li><span style="line-height: normal;">Than visit the admin and make sure the version number is the number of the upgraded version</span></li>
</ul>
<h2>Aftercare</h2>
<p>Reindex the website if the upgrade is succesful:</p>
<p><code>$ php shell/indexer.php reindexall </code></p>
<p>Set all the permissions back:</p>
<p><code>$ find . -type f -exec chmod 644 {} \;<br />
$ find . -type d -exec chmod 777 {} \;</code></p>
<p>$ chmod 755 mage<br />
$ chmod o+w var var/.htaccess app/etc<br />
$ chmod -R o+w media<br />
$ chmod -R 777 var/package var/locks var/report var/export downloader</p>
<p>Hopefully your site is upgraded now! If you&#8217;ve any questions respond below!</p>
<h2>Issues</h2>
<h3>Error: Mage registry key &#8220;_resource_helper/core&#8221; already exists</h3>
<p><code>rm -rf var/session/*<br />
rm -rf var/cache/*</code></p>
<p>If that doesn&#8217;t work restart caching tools like Memcached!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/magento-upgrade-to-1-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Magento Index</title>
		<link>http://www.magentoproblems.com/speed-up-magento-index/</link>
		<comments>http://www.magentoproblems.com/speed-up-magento-index/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 16:28:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=126</guid>
		<description><![CDATA[Slow Magento indexing and reindexing on large databases Do you experience the problem of slow Magento reindexing? Tinybrick Lightspeed is a good solution. It&#8217;s a plugin that requires a little investment (500 dollar), but is worth all the speed improvements. &#8230; <a href="http://www.magentoproblems.com/speed-up-magento-index/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h2>Slow Magento indexing and reindexing on large databases</h2>
<p>Do you experience the problem of slow Magento reindexing? Tinybrick Lightspeed is a good solution. It&#8217;s a plugin that requires a little investment (500 dollar), but is worth all the speed improvements. <a href="http://zfer.us/Dxo8v">Try it Lightspeed</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/speed-up-magento-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sqlstate 23000 integrity constraint violation 1048 column &#8216;value&#8217; cannot be null magento</title>
		<link>http://www.magentoproblems.com/sqlstate-23000-integrity-constraint-violation-1048-column-value-cannot-be-null-magento/</link>
		<comments>http://www.magentoproblems.com/sqlstate-23000-integrity-constraint-violation-1048-column-value-cannot-be-null-magento/#comments</comments>
		<pubDate>Wed, 28 Nov 2012 23:08:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=122</guid>
		<description><![CDATA[How to solve the problem &#8216;sqlstate 23000 integrity constraint violation 1048 column &#8216;value&#8217; cannot be null magento&#8217;? This problem is quite hard to identificate, because it&#8217;s hard to seek the right column &#8216;value&#8217;. Here is what I did in order &#8230; <a href="http://www.magentoproblems.com/sqlstate-23000-integrity-constraint-violation-1048-column-value-cannot-be-null-magento/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>How to solve the problem &#8216;sqlstate 23000 integrity constraint violation 1048 column &#8216;value&#8217; cannot be null magento&#8217;?</p>
<p>This problem is quite hard to identificate, because it&#8217;s hard to seek the right column &#8216;value&#8217;. Here is what I did in order to find out the problem.<a href="http://www.magentoproblems.com/wp-content/uploads/2012/11/sqlstate-solution-excel.png" rel="lightbox[122]" title="sqlstate-solution-excel"><img class="alignright" title="sqlstate-solution-excel" src="http://www.magentoproblems.com/wp-content/uploads/2012/11/sqlstate-solution-excel.png" alt="" width="106" height="590" /></a></p>
<ul>
<li>Start the import process and see on which record number the errors occur.</li>
<li>Locate these record numbers and find the difference between other records in a spreadsheet program.</li>
<li>In my example I found out that on some rows the meta_robots column was empty instead of INDEX, FOLLOW. This caused the error.</li>
<li>Fill these rows. This will solve the problem.<br />
<a href="http://www.magentoproblems.com/wp-content/uploads/2012/11/sqlstate-solution-excel.png"><br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/sqlstate-23000-integrity-constraint-violation-1048-column-value-cannot-be-null-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BTW verhoging 21 procent doorvoeren in Magento (dutch)</title>
		<link>http://www.magentoproblems.com/btw-verhoging-21-procent-doorvoegen-in-magento/</link>
		<comments>http://www.magentoproblems.com/btw-verhoging-21-procent-doorvoegen-in-magento/#comments</comments>
		<pubDate>Sat, 15 Sep 2012 14:33:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=101</guid>
		<description><![CDATA[Het kan de meeste mensen inmiddels niet ontgaan zijn, per 1 oktober 2012 zal er een BTW verhoging ingaan van 19 naar 21 procent. Vervelend daarbij is dat er nogal wat onduidelijkheden zijn. Aangezien ik zelf verstand heb van het &#8230; <a href="http://www.magentoproblems.com/btw-verhoging-21-procent-doorvoegen-in-magento/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Het kan de meeste mensen inmiddels niet ontgaan zijn, per 1 oktober 2012 zal er een BTW verhoging ingaan van 19 naar 21 procent. Vervelend daarbij is dat er nogal wat onduidelijkheden zijn. Aangezien ik zelf verstand heb van het webwinkel pakket Magento, probeer ik in dit artikel alle onduidelijkheden omtrent het nieuwe BTW tarief de wereld uit te helpen. U kunt daarbij zelf kiezen of u de BTW in de prijs door wilt voeren liever niet.</p>
<h2>Stap 1: BTW tarief verhogen</h2>
<p>Dit kunt u doen bij Verkopen &gt; BTW &gt; Beheer Belastingzones en Tarieven</p>
<h2>Stap 2a: BTW in de prijs door laten voeren (prijsverhoging)</h2>
<p>Hier komt een technisch verhaal bij kijken. De bedoeling is dat de catalogusprijs met de stijging van het btw-niveau automatisch meegaat. Uitgerekend is dit een prijsstijging van 1,68% (aan de hand van (1/119)*121*100% ). De bedoeling is dus om een negatieve korting te geven op alle producten.</p>
<p>Magento accepteert echter standaard geen negatieve kortingen:</p>
<p><a href="http://www.magentoproblems.com/wp-content/uploads/2012/09/magento-negatieve-korting.png" rel="lightbox[101]" title="magento-negatieve-korting"><img class="alignleft  wp-image-104" title="magento-negatieve-korting" src="http://www.magentoproblems.com/wp-content/uploads/2012/09/magento-negatieve-korting.png" alt="Magento Negatieve Korting" width="514" height="45" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Conform het volgende <a href="http://magefox.com/blog/extra-fee-shopping-cart-price-rules-magento.html">artikel</a> moeten we dus een paar wijzigingen doorvoeren in de kern:</p>
<ol>
<li>Ga naar: app/code/core/Mage/Rule/Model/Rule.php en vind:<br />
<code>//check if discount amount &gt; 0<br />
if ((int)$this-&gt;getDiscountAmount() &lt; 0) { 3 Mage::throwException(Mage::helper(‘rule’)-&gt;__(‘Invalid discount amount.’));<br />
}<br />
</code></li>
<li><code>Vervang deze code door deze uit te 'commenten':<br />
// if ((int)$this-&gt;getDiscountAmount() &lt; 0) { 3 //Mage::throwException(Mage::helper(‘rule’)-&gt;__(‘Invalid discount //amount.’));<br />
//}</code></li>
<li>Ga nu naar: app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php en vind: <code>'class' =&gt; 'validate-not-negative-number',</code></li>
<li>&#8216;Comment&#8217; deze code ook uit: <code>// 'class' =&gt; 'validate-not-negative-number',</code></li>
<li>Herhaal stap 3 en 4 voor het bestand app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Actions.php</li>
<li><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: x-small;"><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: x-small;"><span style="line-height: normal;">Verander in het bestand </span></span></span>app/code/local/Mage/CatalogRule/Model/Observer.php :<br />
$finalPrice = min($product-&gt;getData(&#8216;final_price&#8217;), $this-&gt;_rulePrices[$key]);<br />
in:<br />
$finalPrice = $this-&gt;_rulePrices[$key];</li>
<li>Vervolgens kunt u deze bestanden uploaden (het veiligste is om de bestanden niet in app/code/core, maar app/code/local op te slaan).</li>
</ol>
<div>Vervolgens kunt u de negatieve korting doorvoeren.</div>
<div></div>
<div>Ga naar promotie &gt; catalogus prijsregels &gt; nieuwe regel aanmaken. Geef de prijsregel een naam en voer bij actie het tarief van -1,68 procent in. Daarbij kunt u een vanaf datum van 1 oktober 2012 instellen. Vervolgens kunt u de wijzigingen opslaan en klikt u op &#8216;apply rules&#8217;.</div>
<div></div>
<div>Het nadeel van een automatische stijging is wel dat een &#8216;mooie&#8217; prijs als €49,95 zal vanderen in €55,21. Mocht u later dus alle prijzen handmatig wijzigen, kunt u de zojuist ingevoerde prijsregel weer uitzetten.</div>
<div></div>
<h2>Stap 2b: BTW niet in de prijs door laten voeren (gelijke prijs)</h2>
<p>Als het goed is, is hier verder geen wijziging voor nodig.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/btw-verhoging-21-procent-doorvoegen-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extra fee for Shopping Cart AND Catalog Cart Price Rules in Magento &#8211; Negative discount</title>
		<link>http://www.magentoproblems.com/extra-fee-for-shopping-cart-and-catalog-cart-price-rules-in-magento-negative-discount/</link>
		<comments>http://www.magentoproblems.com/extra-fee-for-shopping-cart-and-catalog-cart-price-rules-in-magento-negative-discount/#comments</comments>
		<pubDate>Sat, 15 Sep 2012 12:21:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=111</guid>
		<description><![CDATA[Ever wondered wether it would be possible creating a negative discount? This article describes how to create a negative shopping cart price rule. By default, Magento doesn&#8217;t accept negative price rule discount values: We have to add some changes through the core &#8230; <a href="http://www.magentoproblems.com/extra-fee-for-shopping-cart-and-catalog-cart-price-rules-in-magento-negative-discount/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Ever wondered wether it would be possible creating a negative discount? This <a href="http://magefox.com/blog/extra-fee-shopping-cart-price-rules-magento.html">article</a> describes how to create a negative shopping cart price rule.</p>
<p>By default, Magento doesn&#8217;t accept negative price rule discount values:</p>
<p><a href="http://www.magentoproblems.com/wp-content/uploads/2012/09/magento-negatieve-korting.png" rel="lightbox[111]" title="magento-negatieve-korting"><img title="magento-negatieve-korting" src="http://www.magentoproblems.com/wp-content/uploads/2012/09/magento-negatieve-korting.png" alt="Magento Negatieve Korting" width="514" height="45" /></a></p>
<p>We have to add some changes through the core in Magento conform the article:</p>
<ol>
<li>Go to: app/code/core/Mage/Rule/Model/Rule.php and fin:<br />
<code>//check if discount amount &gt; 0<br />
if ((int)$this-&gt;getDiscountAmount() &lt; 0) { 3 Mage::throwException(Mage::helper(‘rule’)-&gt;__(‘Invalid discount amount.’));<br />
}<br />
</code></li>
<li><code>Replace this code, by 'commenting':<br />
// if ((int)$this-&gt;getDiscountAmount() &lt; 0) { 3 //Mage::throwException(Mage::helper(‘rule’)-&gt;__(‘Invalid discount //amount.’));<br />
//}</code></li>
<li>Go to: app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab and find: <code>'class' =&gt; 'validate-not-negative-number',</code></li>
<li>&#8216;Comment&#8217; this code as well: <code>// 'class' =&gt; 'validate-not-negative-number',</code></li>
</ol>
<div>Now it works for shopping cart price rules. Unfortunately the article doesn&#8217;t describe how to enable negative values for catalog price rules. We have the solution:</div>
<div></div>
<ol>
<li>Repeat step 3 and 4 for the file app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Action.php</li>
<li>Then you can upload these files, I&#8217;ll prefer to save it in the app/code/local directory instead of core.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/extra-fee-for-shopping-cart-and-catalog-cart-price-rules-in-magento-negative-discount/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction</title>
		<link>http://www.magentoproblems.com/serialization-failure-1213-deadlock-found-when-trying-to-get-lock-try-restarting-transaction/</link>
		<comments>http://www.magentoproblems.com/serialization-failure-1213-deadlock-found-when-trying-to-get-lock-try-restarting-transaction/#comments</comments>
		<pubDate>Tue, 08 May 2012 13:25:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento Bugs]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=96</guid>
		<description><![CDATA[When having trouble with the error: &#8220;Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction&#8221; or when your place order / order confirmation gets stuck. Fixing the order process getting stuck: According to the Magento Forum, &#8230; <a href="http://www.magentoproblems.com/serialization-failure-1213-deadlock-found-when-trying-to-get-lock-try-restarting-transaction/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>When having trouble with the error: &#8220;Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction&#8221; or when your place order / order confirmation gets stuck.</p>
<h2>Fixing the order process getting stuck:</h2>
<p>According to the <a href="http://www.magentocommerce.com/boards/viewthread/19472/#t150885" target="_blank">Magento Forum</a>, in MySQL, try:</p>
<p>TRUNCATE `log_customer`;<br />
TRUNCATE `log_quote`;<br />
TRUNCATE `log_summary`;<br />
TRUNCATE `log_summary_type`;<br />
TRUNCATE `log_url`;<br />
TRUNCATE `log_url_info`;<br />
TRUNCATE `log_visitor`;<br />
TRUNCATE `log_visitor_info`;</p>
<p>Of course create a backup first. Doesn&#8217;t this fix the problem or do you have a better solution? Comment it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/serialization-failure-1213-deadlock-found-when-trying-to-get-lock-try-restarting-transaction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the &#8216;add to cart&#8217; button to &#8216;view product&#8217; in Magento on category page</title>
		<link>http://www.magentoproblems.com/change-the-add-to-cart-button-to-view-product-in-magento-on-category/</link>
		<comments>http://www.magentoproblems.com/change-the-add-to-cart-button-to-view-product-in-magento-on-category/#comments</comments>
		<pubDate>Mon, 07 May 2012 10:52:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.magentoproblems.com/?p=92</guid>
		<description><![CDATA[So you&#8217;ve got your webshop with products with different sizes. The &#8216;add to cart&#8217; button on the category page is sometimes a step too much, because you&#8217;ll have to choose a size first. Changing the button to &#8216;view product&#8217; Changing &#8230; <a href="http://www.magentoproblems.com/change-the-add-to-cart-button-to-view-product-in-magento-on-category/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.magentoproblems.com/wp-content/uploads/2012/05/view-product.png" rel="lightbox[92]" title="view product"><img class="alignleft" title="view product" src="http://www.magentoproblems.com/wp-content/uploads/2012/05/view-product.png" alt="" width="113" height="40" /></a></p>
<p>So you&#8217;ve got your webshop with products with different sizes. The &#8216;add to cart&#8217; button on the category page is sometimes a step too much, because you&#8217;ll have to choose a size first.</p>
<h2>Changing the button to &#8216;view product&#8217;</h2>
<p>Changing the button to &#8216;view product&#8217; would be a better solution. Open the file list.phtml in: /app/design/frontend/default/{yourskin}/template/catalog/product .</p>
<p>About line 63 and about line 107 replace: &lt;p&gt;&lt;button type=&#8221;button&#8221; title=&#8221;&lt;?php echo $this-&gt;__(&#8216;Add to Cart&#8217;) ?&gt;&#8221; onclick=&#8221;setLocation(&#8216;&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;&#8217;)&#8221;&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__(&#8216;Add to Cart&#8217;) ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;</p>
<p>With:</p>
<p>&lt;button type=&#8221;button&#8221; title=&#8221;&lt;?php echo $this-&gt;__(&#8216;Add to Cart&#8217;) ?&gt;&#8221; onclick=&#8221;setLocation(&#8216;&lt;?php echo $_product-&gt;getProductUrl() ?&gt;&#8217;)&#8221;&gt;&lt;span&gt;&lt;span&gt;View product&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magentoproblems.com/change-the-add-to-cart-button-to-view-product-in-magento-on-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
