専用テンプレートの設置

お客様情報ページ

現在ご利用のテーマ内に、wc_templates がある場合は、Auto Delivery に同梱の wcex_auto_delivery/wc_templates/cart/wc_customer_page.php を、テーマ内の wc_templates/cart/wc_customer_page.php に上書き保存してください。

テーマのディレクトリ構成

ご利用のテーマ内に、wc_templates が無い場合は、Auto Delivery に同梱の wc_templates をそのままコピーしてください。

※注意!
Welcart 専用公式テーマをお使いの場合は、wc_templates の入れ替えは必要ありません。

商品詳細ページ

※注意!
商品詳細ページに定期購入ボタンが表示されない場合は、ご利用のテーマの wc_templates が古い可能性があります。wc_templates の wc_item_single.php を、最新の Welcart Basic テーマのものと入れ替えるか、以下のフックをご利用のテーマの wc_item_single.php に書き足してください。

【定期購入で使用するフック】

<?php do_action( 'usces_action_single_item_outform' ); ?>

実際に、wc_item_single.php にフックを書き足したコードの例です。

【フックの追加1か所目】

		<div style="margin-top:10px"><?php _e('Quantity', 'usces'); ?><?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?><?php usces_the_itemSkuButton( __( 'Add to Shopping Cart', 'usces' ), 0 ); ?></div>
		<div class="error_message"><?php usces_singleitem_error_message( $post->ID,  usces_the_itemSku( 'return' ) ); ?></div>
	<?php endif; ?>
	</div><!-- end of skuform -->
	<?php echo apply_filters('single_item_single_sku_after_field', NULL); ?>
	<?php do_action( 'usces_action_single_item_inform'); ?>
</form>
<?php do_action( 'usces_action_single_item_outform' ); ?>

【フックの追加2か所目】

		<?php } while ( usces_have_skus() ); ?>
				</tbody>
			</table>
		</div><!-- end of skuform -->
		<?php echo apply_filters( 'single_item_multi_sku_after_field', NULL ); ?>
		<?php do_action( 'usces_action_single_item_inform' ); ?>
	</form>
	<?php do_action( 'usces_action_single_item_outform' ); ?>
<?php endif; ?>

<div class="itemsubimg">
<?php $imageid = usces_get_itemSubImageNums(); ?>

定期購入商品ページ

また ver 1.7 より、定期購入商品のカートボタンのみを表示する商品ページを作成できるようになりました。
「定期購入商品のカートボタンだけを表示する」を選択した場合、ver 1.7 に同梱の下記の専用テンプレートを、テーマ内の wc_templates/ 配下 に保存してください。

  • wcex_auto_delivery/wc_templates/wc_templates/wc_item_autodelivery.php
  • wcex_auto_delivery/wc_templates/wc_templates/ wc_sku_select_autodelivery.php
    ※ 拡張プラグイン「WCEX SKU Select」を利用した時の定期購入商品ページ用テンプレートになります。
テーマのディレクトリ構成

※注意!
Welcart 専用公式テーマをお使いの場合は、wc_templatesの入れ替えは必要ありません。

定期購入情報ページ

テーマのディレクトリ構成

wcex_auto_delivery/wc_templates/member/wc_autodelivery_history_page.php を、テーマ内の wc_templates/member/ 配下に保存してください。マイページから定期購入情報を参照できるようになります。

マイページの表示
定期購入情報ページ

「WCEX Mobile」と併用する場合、wcex_auto_delivery/wc_templates_garak/member/wc_autodelivery_history_page.php を、ガラケーテーマ内の wc_templates/member/ 配下に、wcex_auto_delivery/wc_templates_smart/member/wc_autodelivery_history_page.php を、スマホテーマ内の wc_templates/member/ 配下に、それぞれ保存してください。

※注意!
Welcart 専用公式テーマをお使いの場合は、wc_templates の入れ替えは必要ありません。