<?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>Exanto &#187; Magento Commerce</title>
	<atom:link href="http://www.exanto.de/category/ecommerce/magentocommerce/feed" rel="self" type="application/rss+xml" />
	<link>http://www.exanto.de</link>
	<description></description>
	<lastBuildDate>Tue, 17 Jan 2012 15:46:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Magento Fehler im Checkout nach Integration der Anrede bei Adressen</title>
		<link>http://www.exanto.de/magento-fehler-im-checkout-nach-integration-der-anrede-bei-adressen.html</link>
		<comments>http://www.exanto.de/magento-fehler-im-checkout-nach-integration-der-anrede-bei-adressen.html#comments</comments>
		<pubDate>Fri, 19 Aug 2011 13:06:27 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[eav]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=568</guid>
		<description><![CDATA[Heute hat mich ein Fehler in einem Magento Shop (1.4.2.1) im Checkout auf Trab gehalten: PHP Fatal error: Call to a member function setAttribute() on a non-object in /app/code/core/Mage/Customer/Model/Attribute/Data.php Nach einiger Recherche im Magento Forum stie&#223; ich auf diesen Thread, der dann auch die L&#246;sung enthielt. Bei der Market Ready Germany Extension wird das Payone-Modul [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Heute hat mich ein Fehler in einem Magento Shop (1.4.2.1) im Checkout auf Trab gehalten:
<pre>PHP Fatal error:  Call to a member function setAttribute() on a non-object in /app/code/core/Mage/Customer/Model/Attribute/Data.php</pre>
Nach einiger Recherche im Magento Forum stie&#223; ich auf <a href="http://www.magentocommerce.com/boards/viewthread/214263/" class="extlink">diesen Thread</a>, der dann auch die L&#246;sung enthielt.</p>

<p>Bei der Market Ready Germany Extension wird das Payone-Modul mit installiert, und dort fehlen einfach die Input-Datentypen f&#252;r drei Werte, inklusive dem &#8220;Pr&#228;fix&#8221;, was meinen aktuellen Shop dann auch zum Absturz brachte nachdem ich es aktiviert hatte. Abhilfe schafft eine kleine Query, die diese Werte korrekt setzt. Das aktuellste MRG (2.1.3) enth&#228;lt diesen Fehler &#252;brigens immer noch&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> eav_attribute <span style="color: #993333; font-weight: bold;">SET</span> frontend_input <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'date'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> attribute_code <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'customer_address_payone_credit_rating_date'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> eav_attribute <span style="color: #993333; font-weight: bold;">SET</span> frontend_input <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'text'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> attribute_code <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'customer_address_payone_credit_rating_score'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> eav_attribute <span style="color: #993333; font-weight: bold;">SET</span> frontend_input <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'text'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> attribute_code <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'customer_address_payone_credit_rating_secscore'</span>;</pre></div></div>


<p>Ich hoffe es hilft jemandem die Suchzeit zu verk&#252;rzen <img src='http://www.exanto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-fehler-im-checkout-nach-integration-der-anrede-bei-adressen.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento Testbestellungen l&#246;schen</title>
		<link>http://www.exanto.de/magento-testbestellungen-loschen.html</link>
		<comments>http://www.exanto.de/magento-testbestellungen-loschen.html#comments</comments>
		<pubDate>Fri, 19 Aug 2011 12:45:19 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=563</guid>
		<description><![CDATA[Nach der Installation und Konfiguration eines Magento Shops m&#246;chte man nat&#252;rlich &#8220;jungfr&#228;ulich&#8221; anfangen Bestellungen zu empfangen. Es gibt daf&#252;r inzwischen eine Extension, aber ich mache es lieber &#8220;per Hand&#8221; via SQL Query, getestet unter Magento 1.4.2.x. ACHTUNG: Dadurch werden s&#228;mtliche Katalogsuchvorg&#228;nge, Bestellungen, Tags, Wunschlisten und &#8220;Send to Friend&#8221; Eintr&#228;ge unwiderruflich gel&#246;scht. Auf jeden Fall ein [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Nach der Installation und Konfiguration eines Magento Shops m&#246;chte man nat&#252;rlich &#8220;jungfr&#228;ulich&#8221; anfangen Bestellungen zu empfangen. Es gibt daf&#252;r inzwischen eine <a href="http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder" class="extlink">Extension</a>, aber ich mache es lieber &#8220;per Hand&#8221; via SQL Query, getestet unter Magento 1.4.2.x. ACHTUNG: Dadurch werden s&#228;mtliche Katalogsuchvorg&#228;nge, Bestellungen, Tags, Wunschlisten und &#8220;Send to Friend&#8221; Eintr&#228;ge unwiderruflich gel&#246;scht. Auf jeden Fall ein aktuelles Backup der Datenabank machen vor dem Ausf&#252;hren!</p>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">-- Reset Magento TEST Data</span>
<span style="color: #993333; font-weight: bold;">SET</span> FOREIGN_KEY_CHECKS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>;
<span style="color: #808080; font-style: italic;">-- reset dashboard search queries</span>
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`catalogsearch_query`</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`catalogsearch_query`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #808080; font-style: italic;">-- reset sales order info</span>
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_creditmemo`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_comment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_grid`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_invoice`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_invoice_comment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_invoice_grid`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_invoice_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order_address`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order_grid`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order_payment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_order_status_history`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_address`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_address_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_item_option`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_payment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_quote_shipping_rate`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_shipment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_shipment_comment`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_shipment_grid`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_shipment_item`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_flat_shipment_track`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_invoiced_aggregated`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_invoiced_aggregated_order`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sales_order_aggregated_created`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`sendfriend_log`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`tag`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`tag_relation`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`tag_summary`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`wishlist`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`log_quote`</span>;
<span style="color: #993333; font-weight: bold;">TRUNCATE</span> <span style="color: #ff0000;">`report_event`</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_creditmemo`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_comment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_grid`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_creditmemo_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_invoice`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_invoice_comment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_invoice_grid`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_invoice_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order_address`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order_grid`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order_payment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_order_status_history`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_address`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_address_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_item_option`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_payment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_quote_shipping_rate`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_shipment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_shipment_comment`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_shipment_grid`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_shipment_item`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_flat_shipment_track`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_invoiced_aggregated`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_invoiced_aggregated_order`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sales_order_aggregated_created`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`sendfriend_log`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`tag`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`tag_relation`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`tag_summary`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`wishlist`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`log_quote`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`report_event`</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;
<span style="color: #993333; font-weight: bold;">SET</span> FOREIGN_KEY_CHECKS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;</pre></div></div>


<p>Gefunden <a href="http://www.magentocommerce.com/boards/viewthread/1680/P375/" class="extlink">im Magento Forum</a></p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-testbestellungen-loschen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magentos deutsche Bruttopreise auch in der Schweiz mit Schweizer Mehrwertsteuer verwenden</title>
		<link>http://www.exanto.de/magento-bruttopreise-schweiz-mehrwertsteuer.html</link>
		<comments>http://www.exanto.de/magento-bruttopreise-schweiz-mehrwertsteuer.html#comments</comments>
		<pubDate>Thu, 11 Aug 2011 17:22:29 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[os]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=553</guid>
		<description><![CDATA[Bei einem aktuellen Projekt gab es die Anforderung, die identischen Produkte mit gleichen Bruttopreisen wie f&#252;r Deutschland eingestellt auch in der Schweiz zu verkaufen. Allerdings sollten hier nat&#252;rlich die 8% f&#252;r die Schweiz eingerechnet werden. Gar nicht so einfach, da Magento standardm&#228;&#223;ig den urspr&#252;nglichen Steueranteil ab- und dann den neuen (8%) wieder aufrechnet. Nach einigen [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Bei einem aktuellen Projekt gab es die Anforderung, die identischen Produkte mit gleichen Bruttopreisen wie f&#252;r Deutschland eingestellt auch in der Schweiz zu verkaufen. Allerdings sollten hier nat&#252;rlich die 8% f&#252;r die Schweiz eingerechnet werden.</p>

<p><span id="more-553"></span>Gar nicht so einfach, da Magento standardm&#228;&#223;ig den urspr&#252;nglichen Steueranteil ab- und dann den neuen (8%) wieder aufrechnet. Nach einigen wilden Konfigurationsszenarien mit den Magento Steuerregeln bin ich irgendwann bei folgender Konfiguration gelandet. Zun&#228;chst eine neue Website + Store + StoreView angelegt und in der Website-Konfiguration (abweichend vom Standard):</p>

<ul>
    <li>Konfiguration -> Verk&#228;ufe -> Steuer -> Standard Ursprung f&#252;r Steuerberechnung -> Schweiz</li>
    <li>Konfiguration -> Verk&#228;ufe -> Versandeinstellungen -> Herkunft -> Schweiz</li>
    <li>Verk&#228;ufe -> Steuer -> Steuerzonen und -s&#228;tze verwalten -> Neuer Satz mit Land CH und 8% angelegt</li>
    <li>Verk&#228;ufe -> Steuer -> Steuerregeln verwalten -> Produkte mit normalem Steuersatz (mein Steuersatz f&#252;r alle 19% Produkte in DE) -> CH 8% eingef&#252;gt, CH 0% rausgenommen</li>
    <li>Verk&#228;ufe -> Steuer -> Steuerregeln verwalten -> Versand (mein Steuersatz f&#252;r Versand in DE) -> CH 8% eingef&#252;gt, CH 0% rausgenommen</li>
</ul>

<p>Danach werden alle Preise, Versandkosten etc. korrekt berechnet. Das Einzige worauf man achten sollte, ist die Versandkostenberechnung wenn diese auf Entfernungen/L&#228;ndern basiert, da als Ursprung jetzt ja &#8220;Schweiz&#8221; ausgew&#228;hlt ist. Das ist aber einfacher zu beheben als Magentos Steuerberechnung aufzubohren um das Ganze abzubilden <img src='http://www.exanto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p>Zwei n&#252;tzliche Links zu dem Thema:</p>

<p><a href="http://nutwerk.de/archives/29-Magento-Steuern-abhaengig-von-Lieferland-bei-Bruttopreisen.html" title="Steuern abh&#228;ngig vom Lieferland" class="extlink">http://nutwerk.de/archives/29-Magento-Steuern-abhaengig-von-Lieferland-bei-Bruttopreisen.html</a></p>

<p><a href="http://blog.imkenberg.de/magento-mehrwertsteuer-f%C3%BCr-einen-shop-der-europaweit-versendet-einstellen" title="Steuern europaweit einstellen" class="extlink">http://blog.imkenberg.de/magento-mehrwertsteuer-f%C3%BCr-einen-shop-der-europaweit-versendet-einstellen</a></p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-bruttopreise-schweiz-mehrwertsteuer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento erweitertes Exportprofil mit Herstellerfilter</title>
		<link>http://www.exanto.de/magento-erweitertes-exportprofil-mit-herstellerfilter.html</link>
		<comments>http://www.exanto.de/magento-erweitertes-exportprofil-mit-herstellerfilter.html#comments</comments>
		<pubDate>Thu, 30 Jun 2011 08:46:33 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[eav]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Schnipsel]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=545</guid>
		<description><![CDATA[&#220;ber Magentos &#8216;Dataflow&#8217; l&#228;sst sich eine Menge realisieren. Unter anderem nat&#252;rlich der Im- und Export von Produktdaten um z.B. Preise zu pflegen. Leider sind die Standard-Filterm&#246;glichkeiten nicht gerade berauschend. Will man z.B. alle Produkte eines Herstellers haben, so gibt es dazu bisher keine M&#246;glichkeit. Ich zeige Ihnen hier wie das geht. Vorlage erstellen Zun&#228;chst brauchen [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>&#220;ber Magentos &#8216;Dataflow&#8217; l&#228;sst sich eine Menge realisieren. Unter anderem nat&#252;rlich der Im- und Export von Produktdaten um z.B. Preise zu pflegen. Leider sind die Standard-Filterm&#246;glichkeiten nicht gerade berauschend. Will man z.B. alle Produkte eines Herstellers haben, so gibt es dazu bisher keine M&#246;glichkeit. Ich zeige Ihnen hier wie das geht.</p>

<p><span id="more-545"></span></p>

<h2>Vorlage erstellen</h2>

<p>Zun&#228;chst brauchen Sie eine Vorlage auf der Sie Ihr erweitertes Exportprofil aufbauen k&#246;nnen. Ich habe dazu unter &#8220;System -> Import/Export -> Profile&#8221; ein neues Profil erstellt, die Felder die mich interessieren ausgew&#228;hlt und einen Filter nach &#8220;Name&#8221; eingef&#252;gt:</p>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;catalog/convert_adapter_product&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;load&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;store&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;filter/name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Handschuh]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;catalog/convert_parser_product&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;unparse&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;store&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url_field&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_mapper_column&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;map&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;map&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;sku&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Artikelnummer]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Produktname]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cost&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[EK Produkt]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;price&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[VK Produkt]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;shipping_fee&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[VK Fracht]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;manufacturer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Hersteller]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;_only_specified&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_parser_xml_excel&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;unparse&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;single_sheet&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fieldnames&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_adapter_io&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;save&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;type&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>file<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;path&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>var/export<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;filename&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[produkte_DE.csv]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<h2>Ausf&#252;hrung erweiterter Profile reparieren bei Magento 1.4.x</h2>

<p>Hier ist &#252;brigens ein Bug in Magento, die Datei mu&#223; die Endung &#8216;xml&#8217; haben. Aber dazu sp&#228;ter mehr. Um Magento das Filtern nach Herstellern beizubringen ist es zun&#228;chst notwendig die erweiterten Exportprofile &#252;berhaupt zum Laufen zu bringen. Hier fehlt ein Layouteintrag in Magento 1.4.2, und zwar in der Datei <em>/app/design/adminhtml/default/default/layout/dataflow.xml</em>, so da&#223; beim Start eines erweiterten Profils nur Header und Footer der Adminoberfl&#228;che ohne Inhalt erscheinen. Wenn Sie dieses Problem haben, &#246;ffnen Sie einfach o.g. XML-Datei und f&#252;gen Sie vor dem schlie&#223;enden <em>&lt;/layout&gt;</em> diesen Block ein:</p>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;adminhtml_system_convert_profile_run<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;remove</span> name = <span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;adminhtml/page&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;convert_root&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;toHtml&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;page.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;adminhtml/page_head&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;convert_root_head&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;head&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;page/head.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addJs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>prototype/prototype.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addJs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>prototype/validation.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addJs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>varien/js.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addJs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mage/translate.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addJs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mage/adminhtml/tools.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;adminhtml/system_convert_profile_run&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;system_convert_profile_run&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;system/convert/profile/process.phtml&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;toHtml&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/adminhtml_system_convert_profile_run<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<p>Nach dem Speichern sollte die Profilausf&#252;hrung dann klappen. Dieser Tip kommt aus dem <a href="http://www.magentocommerce.com/boards/viewthread/213906/P0/" class="extlink">Magento Forum</a>.</p>

<h2>Adapterklasse erweitern f&#252;r Herstellerfilter</h2>

<p>Die zul&#228;ssigen Filterattribute f&#252;r Produkte werden in der Datei <em>app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php</em> definiert. Kopieren Sie diese Datei in <em>app/code/local/Mage/Catalog/Model/Convert/Adapter/Product.php</em> um sie anzupassen ohne Core-Dateien zu ver&#228;ndern. Danach f&#252;gen Sie oben den Eintrag f&#252;r Herstellerfilter hinzu (~ Zeile 94):</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> load<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span>           <span style="color: #339933;">=</span> <span style="color: #0000ff;">'like'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sku'</span><span style="color: #009900;">&#93;</span>            <span style="color: #339933;">=</span> <span style="color: #0000ff;">'startsWith'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span>           <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'attribute_set'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'visibility'</span><span style="color: #009900;">&#93;</span>     <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span>         <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'price'</span><span style="color: #009900;">&#93;</span>          <span style="color: #339933;">=</span> <span style="color: #0000ff;">'fromTo'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'qty'</span><span style="color: #009900;">&#93;</span>            <span style="color: #339933;">=</span> <span style="color: #0000ff;">'fromTo'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'store_id'</span><span style="color: #009900;">&#93;</span>       <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$attrFilterArray</span> <span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'manufacturer'</span><span style="color: #009900;">&#93;</span>   <span style="color: #339933;">=</span> <span style="color: #0000ff;">'eq'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#91;</span><span style="color: #339933;">...</span><span style="color: #009900;">&#93;</span></pre></div></div>


<p>Wie Sie sehen, ist einfach der Eintrag f&#252;r &#8220;manufacturer&#8221; hinzugekommen. Anschlie&#223;end k&#246;nnen wir das erweiterte Exportprofil erstellen und als Grundlage obigen XML-Code aus dem einfachen Profil nutzen. Neu ist lediglich der Filter nach Hersteller und der korrigierte Dateiname der Exportdatei:</p>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;catalog/convert_adapter_product&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;load&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;store&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;filter/manufacturer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[5]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;catalog/convert_parser_product&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;unparse&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;store&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url_field&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[0]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_mapper_column&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;map&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;map&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;sku&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Artikelnummer]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Produktname]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cost&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[EK Produkt]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;price&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[VK Produkt]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;shipping_fee&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[VK Fracht]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;map</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;manufacturer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[Hersteller]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/map<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;_only_specified&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_parser_xml_excel&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;unparse&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;single_sheet&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fieldnames&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dataflow/convert_adapter_io&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;save&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;type&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>file<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;path&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>var/export<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;var</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;filename&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #339933;">&lt;![CDATA[produkte_DE_adidas.xml]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/var<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<p>Der passende Eintrag dazu findet sich ebenfalls im <a href="http://www.magentocommerce.com/boards/viewthread/214232/" class="extlink">Magento Forum</a>. Nicht ganz so einfach war das Herausfinden der ID des betreffenden Herstellers. Mit dieser Query (z.B. via <a href="http://www.phpmyadmin.net/" class="extlink">PHPMyAdmin</a>) ist das aber kein Problem:</p>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>  eaov<span style="color: #66cc66;">.</span>option_id <span style="color: #993333; font-weight: bold;">AS</span> ID<span style="color: #66cc66;">,</span> eaov<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span> <span style="color: #993333; font-weight: bold;">AS</span> Hersteller
<span style="color: #993333; font-weight: bold;">FROM</span>    eav_attribute_label eaa<span style="color: #66cc66;">,</span> eav_attribute_option eao<span style="color: #66cc66;">,</span> eav_attribute_option_value eaov
<span style="color: #993333; font-weight: bold;">WHERE</span>   eaa<span style="color: #66cc66;">.</span>attribute_id <span style="color: #66cc66;">=</span> eao<span style="color: #66cc66;">.</span>attribute_id
<span style="color: #993333; font-weight: bold;">AND</span>     eao<span style="color: #66cc66;">.</span>option_id <span style="color: #66cc66;">=</span> eaov<span style="color: #66cc66;">.</span>option_id
<span style="color: #993333; font-weight: bold;">AND</span>     eaa<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Hersteller'</span></pre></div></div>


<p>Ich hoffe dieser Beitrag hilft dem ein oder anderen. Es hat mich mehrere Stunden gekostet alle Schnipsel zu finden und das Ganze zum Laufen zu bringen, wie das bei <em>Magento</em> leider h&#228;ufiger der Fall ist.</p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-erweitertes-exportprofil-mit-herstellerfilter.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Conversiontracking in Magento einbinden</title>
		<link>http://www.exanto.de/google-conversiontracking-in-magento-einbinden.html</link>
		<comments>http://www.exanto.de/google-conversiontracking-in-magento-einbinden.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 12:47:22 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Conversiontracking]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Shopbetreiber]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=533</guid>
		<description><![CDATA[Viele Shopbetreiber nutzen Google Analytics zusammen mit Adwords. Und da jeder gern wissen m&#246;chte, welche Keywords welchen Umsatz bringen, ist das Conversiontracking unerl&#228;sslich. Leider ist das bei Magento gar nicht so einfach einzubinden f&#252;r den unbedarften Shopeigner. Ich zeige Ihnen daher kurz wie das geht. Diese Anleitung ist f&#252;r Magento 1.4.x geschrieben worden, sollte aber [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Viele Shopbetreiber nutzen Google Analytics zusammen mit Adwords. Und da jeder gern wissen m&#246;chte, welche Keywords welchen Umsatz bringen, ist das Conversiontracking unerl&#228;sslich. Leider ist das bei Magento gar nicht so einfach einzubinden f&#252;r den unbedarften Shopeigner. Ich zeige Ihnen daher kurz wie das geht. Diese Anleitung ist f&#252;r Magento 1.4.x geschrieben worden, sollte aber auch in 1.5.x und 1.6.x funktionieren.</p>

<p><span id="more-533"></span>
<strong>Update 6.12.2011</strong> Man kann alternativ auch <a href="http://www.magentocommerce.com/magento-connect/fooman-googleanalyticsplus.html" class="extlink">diese Extension</a> benutzen.</p>

<h3>Template Datei &#246;ffnen</h3>

<p>Die Templatedatei f&#252;r die Abschlusseite der Bestellung liegt hier:</p>


<div class="wp_syntax"><div class="code"><pre class="unix" style="font-family:monospace;">app/design/frontend/default/default/template/checkout/success.phtml</pre></div></div>


<p>&#214;ffnen Sie diese Datei in Ihrem Editor und f&#252;gen Sie ganz am Ende (nach dem letzten &lt;/div&gt;) folgendes Code-Snippet ein. Wenn Sie ein angepasstes Template benutzen, m&#252;ssen Sie nat&#252;rlich die entsprechende success.phtml Ihres Templates &#246;ffnen.</p>

<h3>Snippet einf&#252;gen</h3>

<p>Den folgenden Code k&#246;nnen Sie in Google Analytics selbst erzeugen. Interessant sind nur die PHP-Zeilen um den Gesamtbetrag der letzten Bestellung zu ermitteln und die Ausgabe dieses Wertes hinter <em>google_conversion_value</em>. Wenn Sie eine Testbestellung machen, sollten Sie im Quelltext den korrekten Wert (Gesamtbetrag) sehen.</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!-- start Google Code for Verkauf Conversion Page --&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">// Get Order Total Amount</span>
    <span style="color: #000088;">$order</span>  <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales/order'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'checkout/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getLastOrderId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$amount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$order</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'grand_total'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$total</span>  <span style="color: #339933;">=</span> <span style="color: #990000;">number_format</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$amount</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;script type=&quot;text/javascript&quot;&gt;
/* &lt;![CDATA[ */
    var google_conversion_id = 1234567890;
    var google_conversion_language = &quot;de&quot;;
    var google_conversion_format = &quot;2&quot;;
    var google_conversion_color = &quot;ffffff&quot;;
    var google_conversion_label = &quot;IHR_LABEL&quot;;
    var google_conversion_value = <span style="color: #000000; font-weight: bold;">&lt;?=</span> <span style="color: #000088;">$total</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>;
/* ]]&gt; */
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.googleadservices.com/pagead/conversion.js&quot;&gt;&lt;/script&gt;
&lt;noscript&gt;
    &lt;div style=&quot;display:inline;&quot;&gt;
        &lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;border-style:none;&quot; alt=&quot;&quot; src=&quot;http://www.googleadservices.com/pagead/conversion/1234567890/?label=IHR_LABEL&amp;amp;guid=ON&amp;amp;script=0&quot;/&gt;
    &lt;/div&gt;
&lt;/noscript&gt;
&lt;!-- end Google Code for Verkauf Conversion Page --&gt;</pre></div></div>


<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/google-conversiontracking-in-magento-einbinden.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento mit GMail oder externem SMTP betreiben</title>
		<link>http://www.exanto.de/magento-mit-gmail-oder-externem-smtp-betreiben.html</link>
		<comments>http://www.exanto.de/magento-mit-gmail-oder-externem-smtp-betreiben.html#comments</comments>
		<pubDate>Thu, 21 Apr 2011 08:46:31 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Schnipsel]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=529</guid>
		<description><![CDATA[Nach l&#228;ngerer Suche habe ich eine Extension gefunden die es erm&#246;glicht, Magento mit externem SMTP-Server mit unterschiedlichen Authentifizierungsmethoden, Einstellungen oder sogar via GMail zu betreiben: ASchroder SMTPPro]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Nach l&#228;ngerer Suche habe ich eine Extension gefunden die es erm&#246;glicht, Magento mit externem SMTP-Server mit unterschiedlichen Authentifizierungsmethoden, Einstellungen oder sogar via GMail zu betreiben:</p>

<p><a href="http://www.magentocommerce.com/magento-connect/ASchroder/extension/1865/aschroder.com-smtp-pro" class="extlink">ASchroder SMTPPro</a></p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-mit-gmail-oder-externem-smtp-betreiben.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento DB duplizieren</title>
		<link>http://www.exanto.de/magento-db-duplizieren.html</link>
		<comments>http://www.exanto.de/magento-db-duplizieren.html#comments</comments>
		<pubDate>Fri, 15 Apr 2011 13:20:15 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[datenbank]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[recht]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=527</guid>
		<description><![CDATA[Eine Magento Datenbank l&#228;sst sich recht leicht mit PHPMyAdmin oder via Bash kopieren. Danach kann es allerdings zu folgendem Fehler kommen: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store_Group::setWebsite() must be an instance of Mage_Core_Model_Website, null given Offensichtlich mag MySQL/PHPMyadmin keine Nullen im auto_increment, denn die L&#246;sung war folgende Query: SET FOREIGN_KEY_CHECKS=0; UPDATE `core_store` SET store_id [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Eine Magento Datenbank l&#228;sst sich recht leicht mit PHPMyAdmin oder via Bash kopieren. Danach kann es allerdings zu folgendem Fehler kommen:</p>

<p><pre>Recoverable Error: Argument 1 passed to Mage_Core_Model_Store_Group::setWebsite() must be an instance of Mage_Core_Model_Website, null given</pre></p>

<p>Offensichtlich mag MySQL/PHPMyadmin keine Nullen im auto_increment, denn die L&#246;sung war folgende Query:</p>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SET</span> FOREIGN_KEY_CHECKS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`core_store`</span> <span style="color: #993333; font-weight: bold;">SET</span> store_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">WHERE</span> code<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'admin'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`core_store_group`</span> <span style="color: #993333; font-weight: bold;">SET</span> group_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">WHERE</span> name<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Default'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`core_website`</span> <span style="color: #993333; font-weight: bold;">SET</span> website_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">WHERE</span> code<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'admin'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`customer_group`</span> <span style="color: #993333; font-weight: bold;">SET</span> customer_group_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">WHERE</span> customer_group_code<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'NOT LOGGED IN'</span>;
<span style="color: #993333; font-weight: bold;">SET</span> FOREIGN_KEY_CHECKS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>;</pre></div></div>


<p>Damit werden die urspr&#252;nglich mit ID 0 angelegten Eintr&#228;ge wieder zur&#252;ckgesetzt. Beim Kopieren bekommen sie hingegen ID 1 oder 2. Die L&#246;sung war <a href="http://www.magentocommerce.com/boards/viewthread/14505/" class="extlink">hier</a> zu finden.</p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-db-duplizieren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Module und Hacks</title>
		<link>http://www.exanto.de/magento-module-und-hacks.html</link>
		<comments>http://www.exanto.de/magento-module-und-hacks.html#comments</comments>
		<pubDate>Sat, 05 Mar 2011 13:45:23 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=457</guid>
		<description><![CDATA[Ich nutze so gut wie immer modman f&#252;r meine eigenen und fremde Module. Dadurch kann ich &#196;nderungen schnell einspielen und bei Bedarf auf eine alte Version zur&#252;ckspringen. Alles was hier zu finden ist hat daher eine &#8220;modman&#8221; Datei mit an Bord und kann direkt ausgecheckt werden. Kostenlose Magento Module Rekursive Layout Updates Erweitert Kategorien und [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Ich nutze so gut wie immer <a href="http://code.google.com/p/module-manager/" class="extlink">modman</a> f&#252;r meine eigenen und fremde Module. Dadurch kann ich &#196;nderungen schnell einspielen und bei Bedarf auf eine alte Version zur&#252;ckspringen. Alles was hier zu finden ist hat daher eine &#8220;modman&#8221; Datei mit an Bord und kann direkt ausgecheckt werden.
<span id="more-457"></span></p>

<h2>Kostenlose Magento Module</h2>

<h3>Rekursive Layout Updates</h3>

<p>Erweitert Kategorien und Produkte um die M&#246;glichkeit, die &#8220;Custom XML Layout Updates&#8221; ihrer Elternelemente anzuwenden. Dieses fehlende Feature wurde unter <a href="http://www.magentocommerce.com/bug-tracking/issue?issue=7625" class="extlink">Issue Nr. 7625</a> angesprochen und leider nie behoben bzw. implementiert. Dieses Modul sucht in allen &#252;bergeordneten Kategorien nach vorhandenen &#8220;Custom Layout Updates&#8221; mit der Einstellung &#8220;Anwenden auf: Diese Kategorie und alle Kindelemente&#8221; und schlie&#223;t diese ein wenn das aktuelle Element keine eigenen Layout Updates besitzt.</p>

<div><pre>
SVN: <a href="http://www.exanto.de/svn/magento-free/trunk/modules/mod_reclayup">http://www.exanto.de/svn/magento-free/trunk/modules/mod_reclayup</a>  
modman: <code>./modman http://www.exanto.de/svn/magento-free/modules/mod_reclayup checkout</code>
</pre></div>

<h3>Bestellkommentare</h3>

<p>F&#252;gt eine Eingabebox am Ende des Onepage-Checkouts ein, in die der Kunde Kommentare zur Bestellung hinterlassen kann. Dieses Modul nutzt das native Kommentarsystem von Magento, so da&#223; die Kommentare auch per E-Mail mit verschickt werden und im Adminbereich und im Kundenkonto auftauchen.</p>

<div><pre>
SVN: <a href="http://www.exanto.de/svn/magento-free/trunk/modules/mod_ordercomments">http://www.exanto.de/svn/magento-free/trunk/modules/mod_ordercomments</a>  
modman: <code>./modman http://www.exanto.de/svn/magento-free/modules/mod_ordercomments checkout</code>
</pre></div>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-module-und-hacks.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Magento Snippets</title>
		<link>http://www.exanto.de/magento-snippets.html</link>
		<comments>http://www.exanto.de/magento-snippets.html#comments</comments>
		<pubDate>Tue, 22 Feb 2011 10:53:18 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=447</guid>
		<description><![CDATA[Meine Sammlung kleiner Magento Snippets, Module und Links]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Da bei der Magento-Entwicklung immer wiederkehrende H&#252;rden und Fragen auftauchen, habe ich in diesem Artikel meine wichtigsten Snippets zusammengetragen. Der Beitrag wird st&#228;ndig erweitert.
<span id="more-447"></span></p>

<h2>Vorkonfiguriertes Produkt per URL aufrufen</h2>

<p><code>

http://www.meine.url/kategoriepfad/produkt.html#10=150&#038;15=200

</code><br />
Schema: <code>super_attribute_id=option_id</code><br />
Ausgelesen wird das Ganze in <code>js/varien/product.js</code>  ab Zeile 282</p>

<h2>Aktuellen Ausf&#252;hrungskontext auslesen</h2>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #990000;">log</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ModuleName: &quot;</span> <span style="color: #339933;">.</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getModuleName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; || ControllerName: &quot;</span> <span style="color: #339933;">.</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getControllerName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; || RouteName: &quot;</span> <span style="color: #339933;">.</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRouteName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; || ActionName: &quot;</span> <span style="color: #339933;">.</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getActionName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<h2>Relevante Links</h2>

<ul>
  <li><a href="http://thinkclay.com/technology/magento-tips-and-snippets" class="extlink">thinkclay.com Snippets</a></li>
  <li><a href="http://blog.chapagain.com.np/category/magento/" class="extlink">chapagain Tutorials</a></li>
  <li><a href="http://yoast.com/articles/magento-seo/" class="extlink">Magento SEO Grundlagen</a></li>
</ul>

<h2>Ausgesuchte Module (kostenlos)</h2>

<ol>
  <li>
    <a href="https://github.com/organicinternet/magento-configurable-simple/" class="extlink">Simple Configurables</a>  
    <ul><li>Preise direkt in den Simple Products angeben</li><li>Aktualisiert Beschreibungen &#038; Bilder bei Auswahl</li><li>F&#252;gt den g&#252;nstigsten Preis mit &#8220;ab&#8221; davor ein</li></ul>
  </li>
  <li>
    <a href="http://www.magentocommerce.com/magento-connect/Yoast/extension/906/canonical-url-s-for-magento" class="extlink">Yoast Canonical URLs</a>  
    <ul><li>Canonical URL f&#252;r Produkte und Kategorien</li><li>Double Content in den Sumas vermeiden</li></ul>
  </li>

  <li>
    <a href="http://web-experiment.info/webandpeople-custom-menu-extension.html" class="extlink">Custom Menu</a>  
    <ul><li>Anpassbares Men&#252; mit Static Blocks</li><li>Zeigt alle Ebenen gleichzeitig an</li></ul>
  </li>

  <li>
    <a href="http://www.magentocommerce.com/magento-connect/fooman-googleanalyticsplus.html" class="extlink">Fooman Google Analytics</a>  
    <ul><li>Integration von Analytics f&#252;r AJAX-Seiten und Conversion-Tracking</li></ul>
  </li>

</ol>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/magento-snippets.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meet Magento und positive Resonanzen</title>
		<link>http://www.exanto.de/meet-magento-und-positive-resonanzen.html</link>
		<comments>http://www.exanto.de/meet-magento-und-positive-resonanzen.html#comments</comments>
		<pubDate>Wed, 11 Feb 2009 09:51:00 +0000</pubDate>
		<dc:creator>Ingo</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[meetmagento]]></category>

		<guid isPermaLink="false">http://www.exanto.de/?p=245</guid>
		<description><![CDATA[Tja, Meet Magento ist vorbei, und ich habe es verpasst&#8230; im nachhinein schon &#228;rgerlich, wenn man nicht die Zeit daf&#252;r findet. Daf&#252;r berichten andere sehr euphorisch und auch zynisch von dem Event, es mu&#223; also hoch her gegangen sein. Aber schon Ende 2009 soll das n&#228;chste Treffen steigen, und da ist dann die n&#228;chste Chance [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Tja, <a href="http://www.meet-magento.de/" class="extlink">Meet Magento</a> ist vorbei, und ich habe es verpasst&#8230; im nachhinein schon &#228;rgerlich, wenn man nicht die Zeit daf&#252;r findet. Daf&#252;r berichten <a href="http://www.webshopnews.net/2009/02/meet-magento-einfach-hammer.html" class="extlink">andere</a> <a href="http://t3n.yeebase.com/aktuell/news/newspost/meet-magento-109-erstes-magento-grossevent-in-deutschland-war-ein-voller-erfolg/2454/" class="extlink">sehr</a> <a href="http://www.commercemanager.de/magazin/news_d2493_meet_magento_109_-_die_zukunft_des_e-commerce.html" class="extlink">euphorisch</a> und auch <a href="http://powerbook.blogger.de/2009/02/05/444977/meet-magent-2009-in-halle/" class="extlink">zynisch</a> von dem Event, es mu&#223; also hoch her gegangen sein.</p>

<p><span id="more-245"></span>Aber schon Ende 2009 soll das n&#228;chste Treffen steigen, und da ist dann die n&#228;chste Chance dabei zu sein. Nebenbei wurde Magento Version 1.3 f&#252;r den M&#228;rz angek&#252;ndigt, was nat&#252;rlich die Herzen vieler Shopbetreiber h&#246;her schlagen l&#228;sst. Als Entwickler hat man dagegen reichlich zu tun, mit den &#196;nderungen und neuen Features mit zu halten.</p>

<p>Das ist leider auch einer der Schwachpunkte den Magento hat &#8211; das &#8220;Featurefucking&#8221;. Statt vern&#252;nftige Doku der Schnittstellen und des Programmcodes wird mit immer noch mehr Features aufgewartet, und einige Bugs werden stillschweigend geschlossen ohne genau untersucht worden zu sein. Magento ist damit allerdings nicht allein im OS-Markt, diese Praktik kennt man leider von vielen gr&#246;&#223;eren OpenSource-Projekten.</p>

<p>Trotz der kleinen Schw&#228;che ist und bleibt <a href="http://www.magentocommerce.com/" class="extlink">Magento</a> das am Besten strukturierte und sauber programmierte Shopsystem das ich kenne. Ich kenne kaum eine andere Software, die eine so saubere Implementierung der verschiedenen Code-Patterns bietet.</p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.exanto.de/meet-magento-und-positive-resonanzen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

