<?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>wedgeesLabs &#187; EC-CUBE</title>
	<atom:link href="http://labs.wedgees.net/category/open-source/ec-cube/feed" rel="self" type="application/rss+xml" />
	<link>http://labs.wedgees.net</link>
	<description>Androidとウェブの新しいコトを模索するウエッジーズラボ！Androidマーケットで公開中のアプリの更新情報なども発信中！</description>
	<lastBuildDate>Sat, 02 Jul 2011 06:01:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>商品の小計額計算で購入制限が効かない</title>
		<link>http://labs.wedgees.net/129</link>
		<comments>http://labs.wedgees.net/129#comments</comments>
		<pubDate>Thu, 30 Jun 2011 02:24:39 +0000</pubDate>
		<dc:creator>wedgeesLabs</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[EC-CUBE2.11.1]]></category>

		<guid isPermaLink="false">https://ssl.wedgees.net/labs/?p=129</guid>
		<description><![CDATA[引き続き2.11.1のカスタマイズ作業をしていて気づいた点です。 管理画面で購入制限を設定した商品をカゴに入れて数量を追加する際に、商品の小計額だけが購入制限を無視した計算値になります。 ただしカゴのブロックを表示させる &#8230; <a href="http://labs.wedgees.net/129">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>引き続き2.11.1のカスタマイズ作業をしていて気づいた点です。<br />
管理画面で購入制限を設定した商品をカゴに入れて数量を追加する際に、商品の小計額だけが購入制限を無視した計算値になります。</p>
<p><img src="http://labs.wedgees.net/wp-content/uploads/2011/06/62afa78b9c99ac1b1fa2735ef2d43454-640x300.png" alt="購入制限が無視された小計額計算" title="購入制限が無視された小計額計算" width="640" height="300" class="aligncenter size-large wp-image-134" /><br />
<span id="more-129"></span>ただしカゴのブロックを表示させるとこの問題は発生しないようです。</p>
<p><img src="http://labs.wedgees.net/wp-content/uploads/2011/06/ccc88fd31ea4f3ff01a146d470583e26-640x304.png" alt="カゴブロック設置で問題回避" title="カゴブロック設置で問題回避" width="640" height="304" class="aligncenter size-large wp-image-139" /></p>
<p>ロジックを直す手間を考えると・・カゴブロック表示で回避した方が良いかも。（・・と思いながら直しました）</p>
<p>ソース載せ忘れてましたので追記（07/01）</p>
<pre class="brush: php; highlight: [8,9,10,11]; title: data/class/SC_CartSession.php::checkProducts; notranslate">
            /*
             * 商品購入制限数, 在庫数のチェック
             */
            $limit = $objProduct-&gt;getBuyLimit($product);
            if (!is_null($limit) &amp;&amp; $item['quantity'] &gt; $limit) {
                if ($limit &gt; 0) {

                    // 小計額も再計算
                    $incTax = SC_Helper_DB_Ex::sfCalcIncTax($item['price']);
                    $total = $incTax * $limit;
                    $item['total_inctax'] = $total;

                    $this-&gt;setProductValue($item['id'], 'quantity', $limit, $productTypeId);
                    $tpl_message .= &quot;※「&quot; . $product['name'] . &quot;」は販売制限(または在庫が不足)しております。一度に数量{$limit}以上の購入はできません。\n&quot;;
                } else {
                    $this-&gt;delProduct($item['cart_no'], $productTypeId);
                    $tpl_message .= &quot;※「&quot; . $product['name'] . &quot;」は売り切れました。\n&quot;;
                    continue;
                }
            }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://labs.wedgees.net/129/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>商品一覧ページでWarning: Missing argument 3</title>
		<link>http://labs.wedgees.net/102</link>
		<comments>http://labs.wedgees.net/102#comments</comments>
		<pubDate>Wed, 22 Jun 2011 14:14:24 +0000</pubDate>
		<dc:creator>wedgeesLabs</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[EC-CUBE2.11.1]]></category>

		<guid isPermaLink="false">https://ssl.wedgees.net/labs/?p=102</guid>
		<description><![CDATA[EC-CUBE2.11の商品一覧ページでWarning出てましたので修正しました。 Warning: Missing argument 3 for SC_Product::findProductIdsOrder() &# &#8230; <a href="http://labs.wedgees.net/102">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>EC-CUBE2.11の商品一覧ページでWarning出てましたので修正しました。<br />
<span id="more-102"></span></p>
<blockquote><p>Warning: Missing argument 3 for SC_Product::findProductIdsOrder() &#8230;</p></blockquote>
<p>・・・ということで、問題点はSC_Product.phpのfindProductIdsOrderメソッド3番目の引数です。<br />
メソッドの中身を見る限り3つ目の引数は使われていないので、とりあえず削ります。</p>
<pre class="brush: php; highlight: [10,11,12]; title: data/class/SC_Product.php; notranslate">
    /**
     * SC_Queryインスタンスに設定された検索条件を元に並び替え済みの検索結果商品IDの配列を取得する。
     *
     * 検索条件は, SC_Query::getWhere() 関数で設定しておく必要があります.
     *
     * @param SC_Query $objQuery SC_Query インスタンス
     * @param array $arrVal 検索パラメータの配列
     * @return array 商品IDの配列
     */
    // $where は使われていないので削ります
    //function findProductIdsOrder(&amp;$objQuery, $arrVal = array(), $where) {
    function findProductIdsOrder(&amp;$objQuery, $arrVal = array()) {
        $table = &lt;&lt;&lt; __EOS__
                 dtb_products AS alldtl
            JOIN dtb_products_class AS T1
              ON alldtl.product_id = T1.product_id
</pre>
]]></content:encoded>
			<wfw:commentRss>http://labs.wedgees.net/102/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EC-CUBE2.11でNOTICEレベルのエラーを出す</title>
		<link>http://labs.wedgees.net/59</link>
		<comments>http://labs.wedgees.net/59#comments</comments>
		<pubDate>Wed, 22 Jun 2011 10:12:42 +0000</pubDate>
		<dc:creator>wedgeesLabs</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[EC-CUBE2.11.1]]></category>

		<guid isPermaLink="false">https://ssl.wedgees.net/labs/?p=59</guid>
		<description><![CDATA[2.11ではhandle_error.php にてエラーハンドリングしているようです。 ・・・ので、require_once している箇所をコメントアウトしてやります。 これでNOTICEエラーが出るようになります。]]></description>
			<content:encoded><![CDATA[<p>2.11ではhandle_error.php にてエラーハンドリングしているようです。<br />
<span id="more-59"></span><br />
・・・ので、require_once している箇所をコメントアウトしてやります。</p>
<pre class="brush: php; highlight: [5]; title: html/require.php（ハイライトが変更点）; notranslate">
// rtrim は PHP バージョン依存対策
define(&quot;HTML_REALDIR&quot;, rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/');

require_once HTML_REALDIR . 'define.php';
//require_once HTML_REALDIR . 'handle_error.php';
require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php';
</pre>
<p>これでNOTICEエラーが出るようになります。</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wedgees.net/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EC-CUBEのfaceboxで画像ファイルが404</title>
		<link>http://labs.wedgees.net/40</link>
		<comments>http://labs.wedgees.net/40#comments</comments>
		<pubDate>Wed, 22 Jun 2011 03:02:56 +0000</pubDate>
		<dc:creator>wedgeesLabs</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[EC-CUBE2.11.1]]></category>

		<guid isPermaLink="false">https://ssl.wedgees.net/labs/?p=40</guid>
		<description><![CDATA[自社ショッピングサイトをEC-CUB2.4.0 から最新版（2.11.0）へ移行する作業を行っています。 たいした事ではありませんが、表題の件でcloselabel.pngが404エラーになっていたところが気になり修正し &#8230; <a href="http://labs.wedgees.net/40">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>自社ショッピングサイトをEC-CUB2.4.0 から最新版（2.11.0）へ移行する作業を行っています。<br />
たいした事ではありませんが、表題の件でcloselabel.pngが404エラーになっていたところが気になり修正してみました。<br />
<span id="more-40"></span></p>
<pre class="brush: jscript; highlight: [5]; title: 商品詳細ページのテンプレート（ハイライト行を追記）; notranslate">
$(document).ready(function() {
    $('a.expansion').facebox({
        loadingImage : '&lt;!--{$smarty.const.ROOT_URLPATH}--&gt;js/jquery.facebox/loading.gif',
        closeImage   : '&lt;!--{$smarty.const.ROOT_URLPATH}--&gt;js/jquery.facebox/closelabel.png',
        faceboxHtml  : '&lt;div id=&quot;facebox&quot; style=&quot;display:none;&quot;&gt;&lt;div class=&quot;popup&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;a href=&quot;#&quot; class=&quot;close&quot;&gt;&lt;img src=&quot;&lt;!--{$smarty.const.ROOT_URLPATH}--&gt;js/jquery.facebox/closelabel.png&quot; title=&quot;close&quot; class=&quot;close_image&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;'
    });
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://labs.wedgees.net/40/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EC-CUBE注文確認アラートアプリ「ECCOA」</title>
		<link>http://labs.wedgees.net/8</link>
		<comments>http://labs.wedgees.net/8#comments</comments>
		<pubDate>Sat, 18 Jun 2011 11:42:34 +0000</pubDate>
		<dc:creator>wedgeesLabs</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[ECCOA]]></category>

		<guid isPermaLink="false">https://ssl.wedgees.net/labs/?p=8</guid>
		<description><![CDATA[EC-CUBEの注文状況をAndoroid端末から確認できるAndroidアプリです。 Androidマーケットで配布中！http://goo.gl/Gi0f3 主な機能 EC-CUBEの管理画面から取得した注文状況をリ &#8230; <a href="http://labs.wedgees.net/8">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://labs.wedgees.net/wp-content/uploads/2011/06/img004.png" alt="EC-CUBE 注文通知アプリ「ECCOA」" title="EC-CUBE 注文通知アプリ「ECCOA」" width="480" height="234" class="aligncenter size-full wp-image-9" /><br />
EC-CUBEの注文状況をAndoroid端末から確認できるAndroidアプリです。</p>
<p><span id="more-8"></span></p>
<p>Androidマーケットで配布中！<br /><a href="http://goo.gl/Gi0f3" target="_blank">http://goo.gl/Gi0f3</a></p>
<p style="margin-bottom:6px;"><strong>主な機能</strong></p>
<ul>
<li>EC-CUBEの管理画面から取得した注文状況をリスト表示</li>
<li>取得した注文に新たな注文があった時にステータスバーへ通知</li>
<li>一定時間おきに自動的に注文状況を取得（時間は 5分,10分,15分,30分,60分 から選択できます）</li>
</ul>
<p style="margin-bottom:6px;"><strong>主な使い方</strong></p>
<ul>
<li>まずメニュー（MANUボタン）から設定画面を開きEC-CUBE管理画面のIDをパスワードとURLを登録してください。</li>
<li>メニューの手動更新をタップするとEC-CUBEの管理画面から注文状況を取得してリスト表示します。</li>
<li>注文状況を取得するには設定画面のデータ取得間隔で取得する時間を設定し、メニューの自動取得開始をタップしてください。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labs.wedgees.net/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
