<?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>Jontas &#187; DIBS</title>
	<atom:link href="http://www.f15ijp.com/tag/dibs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +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: Send åäö (and other international characters) to DIBS</title>
		<link>http://www.f15ijp.com/2010/02/09/magento-send-aao-and-other-international-characters-to-dibs/</link>
		<comments>http://www.f15ijp.com/2010/02/09/magento-send-aao-and-other-international-characters-to-dibs/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 19:30:42 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[DIBS]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=331</guid>
		<description><![CDATA[If your store uses DIBS to manage payments, then the risk is that you have to worry about characters like åäö. What we had to do is to make the form post the data as ISO-8859-1. We did this by adding accept-charset=&#8221;iso-8859-1&#8243; to the forms that we send to DIBS. In &#8220;/app/design/frontend/default/blank/template/dibs/standard/redirect_paymentwindow.phtml&#8221; 56 &#60;form action=&#34;https://payment.architrade.com/paymentweb/start.action&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>If your store uses <a href="http://www.dibs.dk">DIBS</a> to manage payments, then the risk is that you have to worry about characters like åäö.</p>
<p>What we had to do is to make the form post the data as ISO-8859-1.<br />
We did this by adding accept-charset=&#8221;iso-8859-1&#8243; to the forms that we send to DIBS.</p>
<p>In &#8220;/app/design/frontend/default/blank/template/dibs/standard/redirect_paymentwindow.phtml&#8221;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>56
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;https://payment.architrade.com/paymentweb/start.action&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;dibs&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;dibs&quot;</span> accept<span style="color: #339933;">-</span>charset<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;iso-8859-1&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Once we had done this then the order details were shown correctly on the DIBS page (yes, the Chinese chars are just a test, I have no idea what it might say)<br />
<a href="http://f15ijp.com/wp-content/uploads/2010/02/DIBS-betalning_1265726332501.png"><img src="http://f15ijp.com/wp-content/uploads/2010/02/DIBS-betalning_1265726332501-300x289.png" alt="Details on DIBS including åäö" title="DIBS betalning" width="300" height="289" class="aligncenter size-medium wp-image-332" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/09/magento-send-aao-and-other-international-characters-to-dibs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento admin, make it possible to enter DIBS login information on a per store basis</title>
		<link>http://www.f15ijp.com/2010/01/19/magento-admin-make-it-possible-to-enter-dibs-login-information-on-a-per-store-basis/</link>
		<comments>http://www.f15ijp.com/2010/01/19/magento-admin-make-it-possible-to-enter-dibs-login-information-on-a-per-store-basis/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:57:21 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[DIBS]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=181</guid>
		<description><![CDATA[If you are using the DIBS module from MagentoConnect it is possible to set up DIBS accounts as default configuration (all sites &#038; stores) and website (and all stores under that). If you would like to be able to set up one DIBS account per store, then you should edit the app/code/local/Mage/Dibs/etc/system.xml Find the lines [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using the <a href="http://www.magentocommerce.com/extension/1259/dibs">DIBS module from MagentoConnect</a> it is possible to set up DIBS accounts as default configuration (all sites &#038; stores) and website (and all stores under that).</p>
<p>If you would like to be able to set up one DIBS account per store, then you should edit the app/code/local/Mage/Dibs/etc/system.xml<br />
Find the lines that look like</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;active</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Enabled<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;frontend_type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>select<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/frontend_type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source_model<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>adminhtml/system_config_source_yesno<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/source_model<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sort_order<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sort_order<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_default<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_default<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_website<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_website<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_store<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_store<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>and alter them to</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;active</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Enabled<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;frontend_type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>select<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/frontend_type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source_model<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>adminhtml/system_config_source_yesno<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/source_model<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sort_order<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sort_order<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_default<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_default<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_website<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_website<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;show_in_store<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/show_in_store<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>This should be done in several locations (this is controlled for each option in the plugin so make sure you edit it for all the options you wish to alter on a store level).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/19/magento-admin-make-it-possible-to-enter-dibs-login-information-on-a-per-store-basis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Problem with DIBS module</title>
		<link>http://www.f15ijp.com/2009/12/28/magento-problem-with-dibs-module/</link>
		<comments>http://www.f15ijp.com/2009/12/28/magento-problem-with-dibs-module/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 11:01:55 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[DIBS]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=126</guid>
		<description><![CDATA[Using the DIBS module (from Magento connect); we had the “slight” problem that if the order was payed using the test visa card (from DIBS 10 steps) viewing the order was not possible. The page only partially rendered but most of it was not shown. We “fixed” this by adding two things to app/code/local/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php We [...]]]></description>
			<content:encoded><![CDATA[<p>Using the DIBS module (from Magento connect); we had the “slight” problem that if the order was payed using the test visa card (from DIBS 10 steps) viewing the order was not possible.<br />
The page only partially rendered but most of it was not shown.</p>
<p>We “fixed” this by adding two things to app/code/local/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php</p>
<p>We figured out the problem lied in the “switch($paytype)” statement in the “function printLogo($paytype)”</p>
<p>We started by editing the “default:” statement to read</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'no image for '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$paytype</span><span style="color: #339933;">;</span></pre></div></div>

<p>instead of the old statement of</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$paytype</span><span style="color: #339933;">;</span></pre></div></div>

<p>was what broke the page rendering as that img tag was not ended.</p>
<p>We also added an extra case for the card that didn’t exist in the old switch:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'VISA,V-DK'</span><span style="color: #339933;">:</span>  <span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;img alt=&quot;&quot; /&gt;getSkinUrl('</span>images<span style="color: #339933;">/</span>dibs<span style="color: #339933;">/</span>visa<span style="color: #339933;">.</span>gif<span style="color: #0000ff;">') . '</span><span style="color: #0000ff;">&quot; border=&quot;</span><span style="color: #cc66cc;">0</span><span style="color: #0000ff;">&quot; /&gt;';  break;
            }</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2009/12/28/magento-problem-with-dibs-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

