2011-03-23
■[EC-CUBE]heteml ECCUBEインストール(公式) 
http://heteml.jp/support/manual/ec-cube/
■データベースの作成
■独自ドメインの設定
hetemlのサイトから.htaccessのファイルをhtmlフォルダに、指示どおりUP
http://heteml.jp/download/php5.zip
■http://example.com/install/へアクセス。各設定。
■/web/example/html/install/index.php ファイルを削除
■php.iniの設定
mbstring.language Japanese
mbstring.internal_encoding UTF-8
mbstring.encoding_translation On
mbstring.http_input 未設定
mbstring.http_output 未設定
session.use_trans_sid 未設定
default_charset 未設定
magic_quotes_gpc Off
short_open_tag On
■「システム設定」→「パラメータ設定」
「MAIL_BACKEND」を「mail」に..
■郵便番号情報の更新
http://www.eccube-school.jp/products/detail36.html
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=2683&forum=11
#2.11以降、UTF-8に変換せず、手動更新の方がスムーズに進んだよ。
2011-03-11
■[Concrete5]lolipop 設定 
http://lolipop.jp/manual/blog/concrete5/
wwwなし、ありを統一する
http://server.tetuduki.info/f/lol/004wwwarinasi.html
DBバックアップのエラー対策(concrete5.4.1.1.1 日本語)
http://concrete5-japan.org/community/forums/chat/post-1761/
/concrete/libraries/backup.php の13行
修正前
$arr_tables = $db->getCol("SHOW TABLES FROM " . DB_DATABASE);
修正後
$arr_tables = $db->getCol("SHOW TABLES FROM `" . DB_DATABASE . "`");
2011-02-23 failed to open stream: No such file or directory in 
2010-12-08
■[EC-CUBE]カテゴリIDや商品IDで画像切替 
<!--{if $category_id == "1"or $arrProduct.product_id == "5"}-->
表示させたい内容をここに入れる
<!--{/if}-->
■[EC-CUBE]SEO対策 
「http://www.○○.com/products/detail.php?product_id=○○」のような動的 URL を、「http://www.○○.com/products/detail/○○」のような静的 URL に変更します。
#mode_rewriteの設定
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^products/detail/([0-9]+)? products/detail.php?product_id=$1 [L]
RewriteRule ^products/list/([0-9]+)? products/list.php?category_id=$1 [L]
RewriteRule ^mobile/products/detail/([0-9]+)_([0-9]+)? mobile/products/detail.php?product_id=$1&page=$2 [L]
RewriteRule ^mobile/products/list/([0-9]+)? mobile/products/list.php?category_id=$1 [L]
次に「data/Smarty/template/テンプレート名/bloc/category.tpl」の
<li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> onmark<!--{/if}-->"><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a>を次のように変更します。
<li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> onmark<!--{/if}-->"><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)<a href="<!--{$smarty.const.LIST_P_HTML}--><!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->||<!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a>そして、「システム設定 > パラメータ設定」の「DETAIL_P_HTML」
URL_DIR . "products/detail.php?product_id="を以下のように変更します。
URL_DIR . "products/detail/"次に「LIST_P_HTML」の
URL_DIR . "products/list-p"を以下のように変更します。
URL_DIR . "products/list/"
参考)
