<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>lab.琉結 &#187; EC-CUBE</title>
	<atom:link href="http://lab.ryu-yui.com/archives/category/ec-cube/feed" rel="self" type="application/rss+xml" />
	<link>http://lab.ryu-yui.com</link>
	<description>昨日より今日、今日より明日の一歩</description>
	<lastBuildDate>Fri, 30 Jul 2010 08:50:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/category/ec-cube/feed" />
		<item>
		<title>EC-CUBE 商品詳細のサブコメント　奇数、偶数でレイアウト変更</title>
		<link>http://lab.ryu-yui.com/archives/159.html</link>
		<comments>http://lab.ryu-yui.com/archives/159.html#comments</comments>
		<pubDate>Fri, 30 Jul 2010 08:43:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[Smarty]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=159</guid>
		<description><![CDATA[				メモするほどでもないと思いますが、忘れないようにとりあえずメモ！
				EC-CUBEデフォルトではサブコメント部分は単調に写真とテキストが同じように羅列していく。
				これを奇数と偶数で写真とテキストのレ [...]]]></description>
			<content:encoded><![CDATA[				<p>メモするほどでもないと思いますが、忘れないようにとりあえずメモ！<br />
				EC-CUBEデフォルトではサブコメント部分は単調に写真とテキストが同じように羅列していく。<br />
				これを奇数と偶数で写真とテキストのレイアウトを変更する。</p>
				<p>言葉では説明しにくいのでこんな感じ。</p>
				<p><img src="http://lab.ryu-yui.com/wp-content/uploads/2010/07/10073001.gif" alt="EC-CUBE　サブコメント　レイアウト" title="EC-CUBE　サブコメント　レイアウト" width="500" /></p>
				<p>今回は単純に画像とテキストの入れ替えなので、<br />
				大枠のsubareaにsubarea2を追加してcssでレイアウトを変える。</p>
				<p>subarea → 偶数のサブコメントに適応（テキスト：左、写真：右）<br />
				subarea2 → 奇数のサブコメントに適応（テキスト：右、写真：左）</p>
				<p>大枠のdivを奇数と偶数で切替するのですが、Smartyの関数で難なくできる。<br />
				<a href="http://www.smarty.net/manual/ja/language.function.if.php" target="_blank">http://www.smarty.net/manual/ja/language.function.if.php</a></p>
				<blockquote><p>&lt;div class=&#8221;subarea&#8221;&gt;</p></blockquote>
				<p>↑こいつを↓こんな感じで書き換えするとできた！</p>
				<blockquote><p>&lt;!&#8211;{if $arrProduct[$key] != &#8220;&#8221;}&#8211;&gt;<br />
				&lt;!&#8211;{if $smarty.section.cnt.index is div by 2}&#8211;&gt;<br />
				&lt;div class=&#8221;subarea&#8221;&gt;<br />
				&lt;!&#8211;{else}&#8211;&gt;<br />
				&lt;div class=&#8221;subarea2&#8243;&gt;<br />
				&lt;!&#8211;{/if}&#8211;&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/159.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/159.html" />
	</item>
		<item>
		<title>EC-CUBE 商品ステータス　登録が反映されない</title>
		<link>http://lab.ryu-yui.com/archives/56.html</link>
		<comments>http://lab.ryu-yui.com/archives/56.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 02:06:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[バグか!?]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=56</guid>
		<description><![CDATA[				商品ステータスがちゃんと反映されないよとご指摘が・・・
				どうも一番最後のステータスが、チェックしても反映されない　orz
				フォーラムでこのようなトピックを発見しました。
				さらにCSVアップ [...]]]></description>
			<content:encoded><![CDATA[				<p>商品ステータスがちゃんと反映されないよとご指摘が・・・<br />
				どうも一番最後のステータスが、チェックしても反映されない　orz</p>
				<p><a href="http://xoops.ec-cube.net/modules/newbb/viewtopic.php?post_id=13452&amp;topic_id=3444&amp;forum=9" target="_blank">フォーラム</a>でこのようなトピックを発見しました。<br />
				さらにCSVアップロードでは、上限数が不明な基準で固定されているという不具合もあるらしい…</p>
				<p>ということでメモ、</p>
				<p>今回は、mtb_statusのIDを変更しただけです。<br />
				BIT化管理されているので、きっとIDは1から順にふってあげるのがいいみたい。</p>
				<p>こっちも念のためメモ↓<br />
				<a href="http://svn.ec-cube.net/open_trac/changeset/17460" target="_blank">ステータスアイコンの最大値を算出方法を修正 </a></p>
				<p><a href="http://svn.ec-cube.net/open_trac/changeset/17600" target="_blank">商品ステータスの上限数が8に固定されていた。mtb_statusから、動的に決定するように修正。</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/56.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/56.html" />
	</item>
		<item>
		<title>EC-CUBE v2.3.3→v2.4.0　アップデート</title>
		<link>http://lab.ryu-yui.com/archives/54.html</link>
		<comments>http://lab.ryu-yui.com/archives/54.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 06:54:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[アップデート]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=54</guid>
		<description><![CDATA[				EC-CUBEをさわって初めてのアップデートを試みてみる。
				オープン前なので、少し安心して作業できるが、既にデータ入力をしてあるのでこれまでの作業が無駄になるのは怖い…
				EC-CUBEのフォーラム [...]]]></description>
			<content:encoded><![CDATA[				<p>EC-CUBEをさわって初めてのアップデートを試みてみる。<br />
				オープン前なので、少し安心して作業できるが、既にデータ入力をしてあるのでこれまでの作業が無駄になるのは怖い…</p>
				<p><a href="http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=3963&amp;forum=2" target="_blank">EC-CUBEのフォーラム</a>を調べてみると、こんなトッピックが…。</p>
				<p>ふむふむ…EC-CUBEはアップデートが苦手っぽいな。<br />
				でも同じ状況で成功している方がいますね！</p>
				<p>考え方はこう。<br />
				・まずはv2.4.0をインストール（データベースの初期化はなしで）<br />
				・2.4.0差分のsqlを後からたたいてあげる。</p>
				<p>うし！頑張ってみましょ！！！</p>
				<p><strong>1.まずはDBおよびファイルをバックアップ </strong><br />
				じつはphpMyAdminからバックアップを試みると、途中でタイムアウトしている！？のかバックアップができない。sqlのファイルは吐き出されるのもの、中身は空白でした…orz</p>
				<p>原因を探してみると、 mtb_zipのフィイルが重いのが原因らしい…<br />
				打開策としてはsqlコマンドでダンプする方法があるみたい。</p>
				<p>mtb_zipは変更ないしいいんじゃんと考え、とりあえずスルー。<br />
				mtb_zipテーブル以外をバックアップしました。</p>
				<p><strong>2. EC-CUBE v2.4.0のファイルをアップロード</strong><br />
				緊張の一瞬。まずは EC-CUBE v2.4.0のファイルをアップロード。それから以前使っていたテンプレートや画像データ関係をアップしました。</p>
				<p><strong>3.アップロードできたらインストールディレクトリにアクセス</strong><br />
				インストールのガイドにしたがって、データベース設定の部分まで進む。<br />
				「データベースの初期化をしない」という項目のある画面が来たら、しないにチェックして続行。これでひとまずOK！</p>
				<p><strong>4.差分のsqlを実行する。</strong><br />
				インストールが完了したら、サイトおよび管理画面へアクセス。<br />
				もっと悲惨な事になると思いきや…以外と大丈夫じゃん！！！！！！</p>
				<p>でもやっぱり商品登録関係の部分でエラーがでました。</p>
				<p>そこで、EC-CUBE v2.3.3とEC-CUBE v2.4.0のインストールディレクトリのsqlファイルを比べて差分をphpadminで直接入力してあげる。<br />
				自分が調べた感じは、下記のsqlに差分がありました。</p>
				<p>・column_comment.sql<br />
				・create_table_mysql.sql<br />
				・drop_table.sql<br />
				・insert_data.sql<br />
				・add/dtb_session_mysql.sql</p>
				<p>※作業後に記述したので書き落としや勘違いがあると大変なので、それぞれ確認して下さい。</p>
				<p>これで今のところエラーはないように思える。<br />
				もう少し様子を見てみましょう…</p>
				<p><span style="font-family: mceinline;">あくまでも個人用のメモですので、作業の際は自己責任で！<br />
				何かあった時の為にバックアップを！</span></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/54.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/54.html" />
	</item>
		<item>
		<title>EC-CUBE タイトルの変更</title>
		<link>http://lab.ryu-yui.com/archives/49.html</link>
		<comments>http://lab.ryu-yui.com/archives/49.html#comments</comments>
		<pubDate>Tue, 02 Jun 2009 05:19:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EC-CUBE]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=49</guid>
		<description><![CDATA[				ページのタイトルを変更しようとしたら、あれ!?どこだろ…
				確認したところ
				index.php
				list.php
				detail.php
				mypage/
				はどうもデータ [...]]]></description>
			<content:encoded><![CDATA[				<p>ページのタイトルを変更しようとしたら、あれ!?どこだろ…</p>
				<p>確認したところ<br />
				index.php<br />
				list.php<br />
				detail.php<br />
				mypage/</p>
				<p>はどうもデータベースから引っ張ってきている模様。</p>
				<p>タイトル変更方法は2つあるようです。</p>
				<p><strong>1. データベースの情報を直接修正する。</strong><br />
				テーブルdtb_pagelayoutのpage_nameを修正</p>
				<p><strong>2. classファイルで$tpl_titleを定義してあげる</strong><br />
				classディレクトリ/pages/LC_Page_Index.php<br />
				classディレクトリ/pages/products/LC_Page_Products_List.php<br />
				classディレクトリ/pages/products/LC_Page_Products_Detail.php</p>
				<p>上記に、下記のような感じで定義してあげました。<br />
				function init(){<br />
				parent::init();<br />
				$this-&gt;tpl_title = &#8216;タイトル&#8217;;<br />
				}</p>
				<p>※今回はmyページの修正は必要なかったので作業省略します。</p>
				<p>追記：2009/0912<br />
				商品一覧ページでカテゴリータイトルを</p>
				<p>「カテゴリー名 | ショップ名」</p>
				<p>という形にしたい。（ついでにサブタイトルもカテゴリー名しよう！）</p>
				<blockquote><p>$tpl_subtitle = $objDb-&gt;sfGetCatCombName($arrCategory_id[0]);<br />
				$this-&gt;tpl_title = $tpl_subtitle;</p></blockquote>
				<p>これでオッケーかな！？</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/49.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/49.html" />
	</item>
	</channel>
</rss>
