<?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>Welcart コミュニティー&#124;ECサイト構築プラグイン &#187; カートページ</title>
	<atom:link href="http://www.welcart.com/community/archives/tag/%e3%82%ab%e3%83%bc%e3%83%88%e3%83%9a%e3%83%bc%e3%82%b8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.welcart.com/community</link>
	<description>Welcart に関する情報を交換しましょう</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:28:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>【重要】カートページ、メンバーページ等のカスタマイズについて</title>
		<link>http://www.welcart.com/community/archives/1283</link>
		<comments>http://www.welcart.com/community/archives/1283#comments</comments>
		<pubDate>Mon, 19 Apr 2010 08:35:36 +0000</pubDate>
		<dc:creator>nanbu</dc:creator>
				<category><![CDATA[デザインテーマについて]]></category>
		<category><![CDATA[カスタマイズ]]></category>
		<category><![CDATA[カートページ]]></category>
		<category><![CDATA[テンプレート]]></category>
		<category><![CDATA[メンバーページ]]></category>
		<category><![CDATA[商品詳細ページ]]></category>

		<guid isPermaLink="false">http://www.welcart.com/community/?p=1283</guid>
		<description><![CDATA[カートページやメンバーページなどをカスタマイズした方はカスタマイズしたファイルを退避させる事ができます。これによってWelcart をアップグレードしても上書きされることはなくなります。 下記のテンプレートファイルをカス [...]]]></description>
			<content:encoded><![CDATA[<p>カートページやメンバーページなどをカスタマイズした方は<strong><span style="color: #ff0000">カスタマイズしたファイルを退避させる</span></strong>事ができます。これによってWelcart をアップグレードしても上書きされることはなくなります。<br />
下記のテンプレートファイルをカスタマイズしている方は別ディレクトリーへの退避を行ってください。今のところ、それ以外のファイルの退避はできません。</p>
<p>Welcart は不具合修正などアップグレードを頻繁に行います。アップグレードが可能な範囲でのカスタマイズをお勧めします。<br />
<span id="more-1283"></span><br />
<br class="spacer_" /></p>
<p><img src="http://www.welcart.com/community/wordpress/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<h4>[対象のファイル]</h4>
<p>退避させる事ができるファイルはusc-e-shop/templates/ 内のファイル全てです。</p>
<ul>
<li>usc-e-shop/templates/cart/cart.php（カートページ）</li>
<li>usc-e-shop/templates/cart/completion.php（完了ページ）</li>
<li>usc-e-shop/templates/cart/confirm.php（確認ページ）</li>
<li>usc-e-shop/templates/cart/customer_info.php（お客様情報ページ）</li>
<li>usc-e-shop/templates/cart/delivery_info.php（配送・支払方法ページ）</li>
<li>usc-e-shop/templates/cart/error.php（エラーページ）</li>
<li>usc-e-shop/templates/cart/maintenance.php（メンテナンスページ）</li>
<li>usc-e-shop/templates/member/changepassword.php（パスワード変更ページ）</li>
<li>usc-e-shop/templates/member/completion.php（完了ページ）</li>
<li>usc-e-shop/templates/member/login.php（ログインページ）</li>
<li>usc-e-shop/templates/member/lostpassword.php（パスワード要求ページ）</li>
<li>usc-e-shop/templates/member/member.php（会員情報ページ）</li>
<li>usc-e-shop/templates/member/member_form.php（新規入会ページ）</li>
<li>usc-e-shop/templates/search_item.php（商品検索ページ）</li>
<li>usc-e-shop/templates/single_item.php（商品詳細ページ）</li>
<li>usc-e-shop/templates/wp_search_item.php（その他のページ）</li>
</ul>
<p><br class="spacer_" /></p>
<h4>[退避先]</h4>
<p>退避先は、plugins/usc-e-shop/ 以外であればどこでも構いませんが、ここではテーマフォルダ（uCart defaultテーマの場合）に退避させる方法を説明いたします。</p>
<p><strong>wp-content/themes/ucart_default/ 内に退避（複写）する</strong></p>
<p>デフォルトテーマにsingle_item.php を設置するには、ucart_default ディレクトリ内にtemplates ディレクトリを作成しその中に設置します。パスは次のようになります。</p>
<p>wp-content/themes/ucart_default/templates/single_item.php</p>
<p>cart.php の場合は次のようになります。</p>
<p>wp-content/themes/ucart_default/templates/cart/cart.php</p>
<p>この様に、テーマフォルダ内にプラグインのtemplates ディレクトリの構造のまま設置します。</p>
<p><strong><span style="color: #ff0000">注意！！</span></strong> <strong>カスタマイズしていないファイルは退避させないでください。</strong></p>
<p><br class="spacer_" /></p>
<h4>[パッチをあてる]</h4>
<p>テーマ内のfunctions.php に次のコードを追加してください。</p>
<p><strong>cart.php を設置した場合</strong></p>
<blockquote><pre class="brush: php; gutter: false; light: false; title: ; notranslate">add_action('init', 'my_welcart_template', 9);
function my_welcart_template(){
add_filter('usces_template_path_cart', 'my_welcart_cart_path');
}
function my_welcart_cart_path( $path ){
$path = get_stylesheet_directory() . '/templates/cart/cart.php';
return $path;
}</pre>
</blockquote>
<p><strong>cart.php とsingle_item.php を設置した場合</strong></p>
<blockquote><pre class="brush: php; gutter: false; title: ; notranslate">add_action('init', 'my_welcart_template', 9);
function my_welcart_template(){
add_filter('usces_template_path_cart', 'my_welcart_cart_path');
add_filter('usces_template_path_single_item', 'my_welcart_single_item_path');
}
function my_welcart_cart_path( $path ){
$path = get_stylesheet_directory() . '/templates/cart/cart.php';
return $path;
}
function my_welcart_single_item_path( $path ){
$path = get_stylesheet_directory() . '/templates/single_item.php';
return $path;
}</pre>
</blockquote>
<p><br class="spacer_" /><br />
<br class="spacer_" /></p>
<h4>[フィルター対応表]</h4>
<table>
<tbody>
<tr>
<td>templates/cart/cart.php</td>
<td>usces_template_path_cart</td>
</tr>
<tr>
<td>templates/cart/completion.php</td>
<td>usces_template_path_ordercompletion</td>
</tr>
<tr>
<td>templates/cart/confirm.php</td>
<td>usces_template_path_confirm</td>
</tr>
<tr>
<td>templates/cart/customer_info.php</td>
<td>usces_template_path_customer</td>
</tr>
<tr>
<td>templates/cart/delivery_info.php</td>
<td>usces_template_path_delivery</td>
</tr>
<tr>
<td>templates/cart/error.php</td>
<td>usces_template_path_carterror</td>
</tr>
<tr>
<td>templates/cart/maintenance.php</td>
<td>usces_template_path_maintenance</td>
</tr>
<tr>
<td>templates/member/changepassword.php</td>
<td>usces_template_path_changepassword</td>
</tr>
<tr>
<td>templates/member/completion.php</td>
<td>usces_template_path_membercompletion</td>
</tr>
<tr>
<td>templates/member/login.php</td>
<td>usces_template_path_login</td>
</tr>
<tr>
<td>templates/member/lostpassword.php</td>
<td>usces_template_path_lostpassword</td>
</tr>
<tr>
<td>templates/member/member.php</td>
<td>usces_template_path_member</td>
</tr>
<tr>
<td>templates/member/member_form.php</td>
<td>usces_template_path_member_form</td>
</tr>
<tr>
<td>templates/single_item.php</td>
<td>usces_template_path_single_item</td>
</tr>
<tr>
<td>templates/search_item.php</td>
<td>usces_template_path_search_item</td>
</tr>
<tr>
<td>templates/wp_search_item.php</td>
<td>usces_template_path_wp_search</td>
</tr>
</tbody>
</table>
<p><br class="spacer_" /><br />
この様に読み込むテンプレートを変更する事ができます。<br />
<strong>これで安心してアップグレードができます</strong><br />
<br class="spacer_" /><br />
<strong><span style="color: #ff0000">注意！！</span></strong><br />
・プラグイン内のテンプレートファイルは削除せずそのままにして置いてください。<br />
・テーマ内に設置するテンプレートファイルは変更したものだけにします。<br />
・パッチも変更したものだけをあてるようにしてください。<br />
・テンプレートのカスタマイズは、その内容次第ではアップグレードの際不具合が出る可能性もあるので動作テストは十分に行ってください。<br />
<br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.welcart.com/community/archives/1283/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

