ソニーペイメントサービスの2つの決済モジュール

Welcart Assertive 1.3 をリリース

Welcart Assertive 1.3 をリリースしました。
主な修正点は以下のとおりです。

  • PHP8.0の対応
  • 在庫状態が「廃盤」「入荷待ち」でも一覧ページに「売り切れ」と表示される不具合を修正
  • 商品詳細ページにアクションフックを追加
  • Welcart を無効化したときのエラーメッセージが表示されない不具合を修正
  • フッターコンテンツのPCでの表示修正
  • 商品ステータスのレイアウト調整
  • 商品一覧ページの先頭商品のレイアウト調整

商品詳細ページにアクションフックを追加

通常、Welcart Assertive テーマをアップデートしていただくだけで適用されますが、子テーマを利用していて 子テーマ側に商品詳細のテンプレートが存在していた場合は、子テーマ側のファイル修正が必要です。

フック追加 : wc_templates/wc_item_single.php 125行目あたり
    <h3 class="skuname"><?php usces_the_itemSkuDisp(); ?></h3>  
<?php endif; ?>
<?php do_action( 'usces_theme_item_single_before_options' ); ?>
<?php if ( usces_is_options() ) : ?>
    <dl class="item-option">
        <?php while ( usces_have_options() ) : ?>

※ do_action( ‘usces_theme_item_single_before_options’ ) を追加

フック追加 : wc_templates/wc_item_single_data.php 148行目あたり
    <div class="skuname"><?php usces_the_itemSkuDisp(); ?></div>
<?php endif; ?>
<?php do_action( 'usces_theme_item_single_before_options' ); ?>
<?php if ( usces_is_options() ) : ?>
    <dl class='item-option'>
        <?php while ( usces_have_options() ) : ?>

※ do_action( ‘usces_theme_item_single_before_options’ ) を追加

フック追加 : wc_templates/wc_item_single_service.php 127行目あたり
    <div class="skuname"><?php echo esc_html( apply_filters( 'usces_filter_autocharge_price_label', usces_the_itemSkuDisp( 'return' ) ) ); ?></div>
<?php endif; ?>
<?php do_action( 'usces_theme_item_single_before_options' ); ?>
<?php if ( usces_is_options() ) : ?>
    <dl class="item-option autocharge">
        <?php while ( usces_have_options() ) : ?>

※ do_action( ‘usces_theme_item_single_before_options’ ) を追加