Welcart Beldad 1.0.1 をリリースしました。
今回の更新内容は次の通りです。
商品タグの修正
コード修正・追加: welcart_basic-beldad/inc/front-customized.php 291行目
function wcct_get_produt_tag( $post_id = null ) {
global $post;
・
・
if ( NULL == $post_id )
$post_id = $post->ID;
$cats = get_the_category( $post_id );
・
・
・
}
function wcct_produt_tag( $post_id = null ) {
echo wcct_get_produt_tag( $post_id );
}
コード修正: welcart_basic-beldad/inc/front-customized.php 315行目
$html .= '<ul class="cf opt-tag">' . "\n";
if( isset( $flag['new'] ) ) $html .= '<li class="new">'. __('New Arrivals','welcart_basic_voll') .'</li>' . "\n";
if( isset( $flag['reco'] ) ) $html .= '<li class="recommend">'. __('Recommend','welcart_basic_voll') .'</li>' . "\n";
if( usces_have_fewstock( $post_id ) ) $html .= '<li class="stock">'. __('Few Stock','welcart_basic_voll') .'</li>' . "\n";
if( wcct_has_campaign() ) $html .= '<li class="sale">'. __('Sale','welcart_basic_voll') .'</li>' . "\n";
$html .= '</ul>' . "\n";
コード修正: welcart_basic-beldad/inc/widget-customized.php 97行目
};
$list .= '</a></div>'."\n";
$list .= '<div class="thumtitle"><a href="'.get_permalink($post_id).'">' . $usces->getItemName($post_id).'</a></div>' . "\n";
$list .= wcct_get_produt_tag( $post_id ) . "\n";
$list .= '<div class="itemprice">' . usces_crform( usces_the_firstPrice( 'return', $post ), true, false, 'return' ) . usces_guid_tax('return') . '</div>' . "\n";
$list .= '</div>' . "\n";
コード修正: welcart_basic-beldad/inc/widget-customized.php 137行目
};
$list .= '</a></div>' . "\n";
$list .= '<div class="itemname"><a href="' . get_permalink($post_id) . '">' . $usces->getItemName($post_id) . '</a></div>' . "\n";
$list .= wcct_get_produt_tag( $post_id ) . "\n";
$list .= '<div class="itemprice">' . usces_crform( usces_the_firstPrice( 'return', $post ), true, false, 'return' ) . usces_guid_tax( 'return' ) . '</div>' . "\n";
$list .= '</li>' . "\n";
return $list;
セレクタ追加: welcart_basic-beldad/style.css 1674行目
padding: 0;
border: none;
}
.home-widget .widget_welcart_featured .opt-tag li,
.home-widget .widget_basic_item_list .opt-tag li,
.home-widget .widget_welcart_bestseller .opt-tag li {
border-width: 1px;
商品売り切れ時、お問い合わせメールの本文に商品名が記載されない不具合を修正
コード追加: welcart_basic-beldad/js/front-customized.php 138行目
$(function() {
var pair = location.search.substring(1).split('&');
var arg = new Object;
for( var i = 0; pair[i]; i++ ) {
var kv = pair[i].split('=');
arg[kv[0]] = kv[1];
}
if( undefined != arg.from_item && undefined != arg.from_sku ) {
$('.wpcf7-submit').on('click', function() {
var form = $(this).parents('form');
form.attr('action', $(this).data('action'));
$('<input>').attr({
'type': 'hidden',
'name': 'from_item',
'value': arg.from_item
}).appendTo(form);
$('<input>').attr({
'type': 'hidden',
'name': 'from_sku',
'value': arg.from_sku
}).appendTo(form);
});
}
});
SKU Select 通常価格登録時の表示修正
コード修正: welcart_basic-beldad/wc_templates/wc_sku_select.php 123行目
<div class="field_price">
<span class="wcss_loading"></span>
<?php if ( usces_the_itemCprice( 'return' ) > 0 ) : ?>
<span class="field_cprice"><span class="ss_cprice"><?php usces_the_itemCpriceCr(); ?></span></span>
<?php endif; ?>
<span class="sell_price ss_price"><?php usces_the_itemPriceCr(); ?></span><?php usces_guid_tax(); ?>
</div>
コード修正: welcart_basic-beldad/wc_templates/wc_sku_select_service.php 110行目
<div class="field_price">
<span class="wcss_loading"></span>
<?php if ( usces_the_itemCprice( 'return' ) > 0 ) : ?>
<span class="field_cprice"><span class="ss_cprice"><?php usces_the_itemCpriceCr(); ?></span></span>
<?php endif; ?>
<span class="sell_price ss_price"><?php usces_the_itemPriceCr(); ?></span><?php usces_guid_tax(); ?>
</div>



