Welcart Square 1.4.1 をリリースしました。修正点は以下のとおりです。
投稿記事一覧の同じ日付の場合、一つ目の記事以外の日付が表示されない不具合を修正
テンプレート修正 : archive.php 47行目
テンプレート修正 : category.php 148行目
テンプレート修正 : front-page.php 116行目
テンプレート修正 : index.php 32行目
変更後<?php the_time( get_option( 'date_format' ) ); ?>
|
Multiple Shipping 導入時の CSSファイル欠損エラーを修正
テンプレート修正 : functions.php 142行目あたり
変更前if ( defined( 'WCEX_MSA_VERSION' ) ) {
wp_enqueue_style( 'parent-msa' , $template_dir . '/wcex_multi_shipping.css' , array ( 'msa_style' ), WCEX_MSA_VERSION, false );
}
|
変更後if ( defined( 'WCEX_MSA_VERSION' ) ) {
$action = isset( $_REQUEST [ 'msa_action' ] ) ? wp_unslash( $_REQUEST [ 'msa_action' ] ) : '' ;
if ( welcart_basic_is_member_page() || ( 'delivery' === $usces ->page && empty ( $action ) ) || 'confirm' === $usces ->page ) {
wp_enqueue_style( 'parent-msa' , $template_dir . '/wcex_multi_shipping.css' , array ( 'msa_style' ), WCEX_MSA_VERSION, false );
}
}
|
ログインページにある「パスワードをお忘れですか?」の表示位置を調整
「パスワードをお忘れですか?」のリンクをアクションフックの上に移動しました。
テンプレート修正 : wc_templates/member/wc_login_page.php 55行目あたり
変更前 <?php do_action( 'usces_action_login_page_inform' ); ?>
</form>
<p id= "nav" >
<a href= "<?php usces_url( 'lostmemberpassword' ); ?>" title= "<?php _e( 'Did you forget your password?', 'usces' ); ?>" ><?php _e( 'Did you forget your password?' , 'usces' ); ?></a>
</p>
|
変更後 <p id= "nav" >
<a href= "<?php usces_url( 'lostmemberpassword' ); ?>" title= "<?php _e( 'Did you forget your password?', 'usces' ); ?>" ><?php _e( 'Did you forget your password?' , 'usces' ); ?></a>
</p>
<?php do_action( 'usces_action_login_page_inform' ); ?>
</form>
|
Multiple Shipping機能拡張のために配送先登録・編集ページを修正
カスタム・デリバリーフィールドで設定した項目を配送先にも適用されるように修正しました。
注意WCEX Multiple Shipping を 1.2.5 にアップデート後にテーマアップデートもしくは修正を施してください
テンプレート修正 : wc_templates/member/wc_member_msa_page.php 86行目あたり
変更前<div class = "msa_title" ><?php _e( '配送先' , 'usces' ); ?> : <span id= "destination_title" class = "msa_title_inner" ></span></div>
<div class = "msa_field" ><label for = "msa_company" ><?php _e( '法人名' , 'usces' ); ?></label><input id= "msa_company" name= "msa_company" type= "text" /></div>
|
変更後<div class = "msa_title" >配送先 : <span id= "destination_title" class = "msa_title_inner" ></span></div>
<?php msa_admin_custom_delivery_field_input( 'name_pre' ); ?>
<div class = "msa_field" ><label for = "msa_company" >法人名</label><input id= "msa_company" name= "msa_company" type= "text" /></div>
|
テンプレート修正 : wc_templates/member/wc_member_msa_page.php 89行目あたり
変更前<div class = "msa_field" ><label for = "msa_furigana" ><?php _e( 'フリガナ' , 'usces' ); ?></label>姓<input id= "msa_furigana" name= "msa_furigana" type= "text" />名<input id= "msa_furigana2" name= "msa_furigana2" type= "text" /></div>
<div class = "msa_field" >
<label for = "msa_zip" ><?php _e( '郵便番号' , 'usces' ); ?>(必須)</label>
<input id= "msa_zip" name= "msa_zip" type= "text" />
<?php
if ( isset( $usces ->options[ 'address_search' ] ) && 'activate' == $usces ->options[ 'address_search' ] ) {
echo "<input type='button' id='search_zipcode' class='search-zipcode button' value='住所検索' onclick=\"AjaxZip3.zip2addr('msa_zip', '', 'msa_pref', 'msa_address1');\">" ;
}
?>
<span id= "zip_message" class = "msa_message" ></span>
</div>
|
変更後<div class = "msa_field" ><label for = "msa_furigana" >フリガナ</label><span class = "member_furigana" >セイ</span><input id= "msa_furigana" name= "msa_furigana" type= "text" /><span class = "member_furigana" >メイ</span><input id= "msa_furigana2" name= "msa_furigana2" type= "text" /></div>
<?php msa_admin_custom_delivery_field_input( 'name_after' ); ?>
<div class = "msa_field" >
<label for = "msa_zip" >郵便番号(必須)</label>
<input id= "msa_zip" name= "msa_zip" type= "text" />
<?php
if ( isset( $usces ->options[ 'address_search' ] ) && 'activate' === $usces ->options[ 'address_search' ] ) {
echo "<input type='button' id='search_zipcode' class='search-zipcode button' value='住所検索' onclick=\"AjaxZip3.zip2addr('msa_zip', '', 'msa_pref', 'msa_address1');\">" ;
}
?>
<span id= "zip_message" class = "msa_message" ></span>
</div>
|
テンプレート修正 : wc_templates/member/wc_member_msa_page.php 157行目あたり
変更前<div class = "msa_field" ><label for = "msa_tel" ><?php _e( 'FAX番号' , 'usces' ); ?></label><input id= "msa_fax" name= "msa_fax" type= "text" /><span id= "fax_message" class = "msa_message" ></span></div>
<div class = "msa_field" ><label for = "msa_note" ><?php _e( '備考' , 'usces' ); ?></label><textarea id= "msa_note" name= "msa_note" ></textarea></div>
|
変更後<div class = "msa_field" ><label for = "msa_fax" >FAX番号</label><input id= "msa_fax" name= "msa_fax" type= "text" /><span id= "fax_message" class = "msa_message" ></span></div>
<?php msa_admin_custom_delivery_field_input( 'fax_after' ); ?>
<div class = "msa_field" ><label for = "msa_note" >備考</label><textarea id= "msa_note" name= "msa_note" ></textarea></div>
|
スタイル追加 : wcex_multi_shipping.css 223行目あたり
変更前 .return_navi a {
display : inline-block ;
}
}
|
変更後 .return_navi a {
display : inline-block ;
}
.msa_field_block .msa_field label {
margin-bottom : 0 ;
}
}
|
Delivery Address機能拡張のために配送先登録・編集ページを修正
カスタム・デリバリーフィールドで設定した項目を配送先にも適用されるように修正しました。
注意WCEX Delivery Address を 1.0.1 にアップデート後にテーマアップデートもしくは修正を施してください。
テンプレート修正 : wc_templates/member/wc_member_mda_page.php 71行目あたり
変更前<div class = "msa_title" ><?php esc_html_e( 'Delivery address' , 'wcexda' ); ?> : <span id= "destination_title" class = "msa_title_inner" ></span></div>
<div class = "msa_field" ><label for = "msa_company" ><?php esc_html_e( 'Corporation name' , 'wcexda' ); ?></label><input id= "msa_company" name= "msa_company" type= "text" /></div>
|
変更後<div class = "msa_title" ><?php esc_html_e( 'Delivery address' , 'wcexda' ); ?> : <span id= "destination_title" class = "msa_title_inner" ></span></div>
<?php WCEX_DA_Member_Page::custom_delivery_field_input( 'name_pre' ); ?>
<div class = "msa_field" ><label for = "msa_company" ><?php esc_html_e( 'Corporation name' , 'wcexda' ); ?></label><input id= "msa_company" name= "msa_company" type= "text" /></div>
|
テンプレート修正 : wc_templates/member/wc_member_mda_page.php 74行目あたり
変更前<div class = "msa_field" ><label for = "msa_furigana" ><?php esc_html_e( 'Furigana' , 'wcexda' ); ?></label><?php esc_html_e( 'Family name' , 'wcexda' ); ?><input id= "msa_furigana" name= "msa_furigana" type= "text" /><?php esc_html_e( 'First name' , 'wcexda' ); ?><input id= "msa_furigana2" name= "msa_furigana2" type= "text" /></div>
<div class = "msa_field" >
<label for = "zipcode" ><?php esc_html_e( 'Postal code' , 'wcexda' ); ?>(<?php esc_html_e( 'Required' , 'wcexda' ); ?>)</label>
<input id= "zipcode" name= "zipcode" type= "text" />
<?php
if ( isset( $usces ->options[ 'address_search' ] ) && 'activate' === $usces ->options[ 'address_search' ] ) {
echo "<input type='button' id='search_zipcode' class='search-zipcode button' value='住所検索' onclick=\"AjaxZip3.zip2addr('zipcode', '', 'member_pref', 'msa_address1');\">" ;
}
?>
<span id= "zip_message" class = "msa_message" ></span>
</div>
|
変更後<div class = "msa_field" ><label for = "msa_furigana" ><?php esc_html_e( 'Furigana' , 'wcexda' ); ?></label><span class = "member_furigana" >セイ</span><input id= "msa_furigana" name= "msa_furigana" type= "text" /><span class = "member_furigana" >メイ</span><input id= "msa_furigana2" name= "msa_furigana2" type= "text" /></div>
<?php WCEX_DA_Member_Page::custom_delivery_field_input( 'name_after' ); ?>
<div class = "msa_field" >
<label for = "zipcode" ><?php esc_html_e( 'Postal code' , 'wcexda' ); ?>(<?php esc_html_e( 'Required' , 'wcexda' ); ?>)</label>
<input id= "zipcode" name= "zipcode" type= "text" />
<?php
if ( isset( $usces ->options[ 'address_search' ] ) && 'activate' === $usces ->options[ 'address_search' ] ) {
echo "<input type='button' id='search_zipcode' class='search-zipcode button' value='住所検索' onclick=\"AjaxZip3.zip2addr('zipcode', '', 'member_pref', 'msa_address1');\">" ;
}
?>
<span id= "zip_message" class = "msa_message" ></span>
</div>
|
テンプレート修正 : wc_templates/member/wc_member_mda_page.php 74行目あたり
変更前<div class = "msa_field" ><label for = "msa_tel" ><?php esc_html_e( 'FAX number' , 'wcexda' ); ?></label><input id= "msa_fax" name= "msa_fax" type= "text" /><span id= "fax_message" class = "msa_message" ></span></div>
<div class = "msa_field" ><label for = "msa_note" ><?php esc_html_e( 'Remarks' , 'wcexda' ); ?></label><textarea id= "msa_note" name= "msa_note" ></textarea></div>
|
変更後<div class = "msa_field" ><label for = "msa_fax" ><?php esc_html_e( 'FAX number' , 'wcexda' ); ?></label><input id= "msa_fax" name= "msa_fax" type= "text" /><span id= "fax_message" class = "msa_message" ></span></div>
<?php WCEX_DA_Member_Page::custom_delivery_field_input( 'fax_after' ); ?>
<div class = "msa_field" ><label for = "msa_note" ><?php esc_html_e( 'Remarks' , 'wcexda' ); ?></label><textarea id= "msa_note" name= "msa_note" ></textarea></div>
|
グローバルメニューのサブメニューの表示不具合を修正
スタイル修正 : style.css 1793行目あたり
変更前@media screen and (min-width: 62.5em) {
...
#site-navigation ul ul {
width: 100%;
padding: 2px;
top: 0;
left: 100%;
border: none;
border-radius: 8px;
box-shadow: 0 5px 7px 0 rgba(0,0,0,0.22);
}
}
|
変更後@media screen and (min-width: 62.5em) {
...
#site-navigation ul ul {
width: 100%;
padding: 2px;
top: 0;
left: 100%;
border: none;
border-radius: 8px;
box-shadow: 0 5px 7px 0 rgba(0,0,0,0.22);
white-space: normal;
}
}
|
スタイル修正 : style.css 1810行目あたり
変更前@media screen and (min-width: 62.5em) {
...
#site-navigation ul ul li a {
padding: 0 10px;
background: none;
line-height: 50px;
overflow: hidden;
margin: 0 auto;
}
}
|
変更後@media screen and (min-width: 62.5em) {
...
#site-navigation ul ul li a {
background: none;
line-height: normal;
overflow: hidden;
margin: 0 auto;
padding: 15px 10px;
}
}
|