',
nextArrow: '
',
asNavFor: '.fr_products-list-thumb',
responsive: [
{
breakpoint: 768,
settings: {
dots: true,
speed: 100,
swipeToSlide: true
}
}
]
});
$('.fr_products-list-thumb').slick({
infinite: true,
arrows: false,
variableWidth: true,
slidesToShow: 1,
focusOnSelect: true,
asNavFor: '.fr_products-list-photo'
});
});
$(window).load(function () {
//商品写真 サムネイル/規格画像クリックで切り替え
var thumb = $('.fr_products-list-thumb').find('.js_fr_products-list-thumb_item');
thumb.each(function () { //初期化
if ($(this).hasClass('fr_products-list-view')) {
var slickIndex = $(this).data('slick-index');
$('.fr_products-list-photo').slick('slickGoTo', slickIndex);
$('.fr_products-list-thumb').slick('slickGoTo', slickIndex);
}
});
});
$(function () {
// 規格選択時
$('.js_fr_products_detail_classcategory_id').on('click', function () {
var $form = $(this).parents('form');
var product_id = $form.find('input[name=product_id]').val();
var sele1 = $(this).data('class1');
var sele2 = $(this).data('class2');
$form.find('input[name="classcategory_id"]').val(sele1 + "|" + sele2);
checkStock($form, product_id, sele1, sele2);
document.form1.submit();
});
});
$(window).on('load', function () {
var tile_cnt = ( $('.js_fr_is_smartphone').is(':hidden') ) ? '6' : '3';
if (tile_cnt) {
$('.js_fr_tile_products_detail_recommend').tile(tile_cnt);
}
});
// ページ読み込み時のカラー・サイズ選択
$(window).on('load',function(){
$('.js_pr_product-color_txt').text($('.js_pr_product_selected').data('name'));
$('.fr_classcategory_id1').val($('.js_pr_product_selected').data('id')).change();
$('.fr_classcategory_id2').val('').change();
var $sizeList = $('.js_fr_product_size-list > ul > li');
if ($sizeList.length == 1) {
$sizeList.eq(0).click();
}
});
//カラークリック
$('.js_fr_product_color-list > li').on('click',function(){
if(!$(this).hasClass('js_pr_product_selected')){
//カラーID取得
var ColorId = $(this).data('id');
//規格1値セット
$('.fr_classcategory_id1').val(ColorId).change();
//カラー名取得
var ColorName = $(this).data('name');
$('.js_pr_product-color_txt').text(ColorName);
//装飾
$(this).addClass('js_pr_product_selected');
$('.js_fr_product_color-list > li').not(this).removeClass('js_pr_product_selected');
$('.js_fr_product_size-list > ul > li').removeClass('js_pr_product_selected');
//サイズ展開
$('.fr_classcategory_id2').val('').change();
$('.js_pr_product-size_txt').text('選択されていません');
$('.js_fr_product_size_' + ColorId).show();
$('.js_fr_product_size-list > ul').not('.js_fr_product_size_' + ColorId).hide();
//納期
deliv_date_update();
//在庫
cart_stock_change_reset();
}
});
//サイズクリック
$('.js_fr_product_size-list > ul > li').on('click',function(){
if(!$(this).hasClass('js_pr_product_selected')){
//サイズID取得
var SizeId = $(this).data('id');
//規格2値セット
$('.fr_classcategory_id2').val(SizeId).change();
//サイズ名取得
var SizeName = $(this).data('name');
$('.js_pr_product-size_txt').text(SizeName);
//装飾
$(this).addClass('js_pr_product_selected');
$('.js_fr_product_size-list > ul > li').not(this).removeClass('js_pr_product_selected');
//納期
deliv_date_update();
//在庫
cart_stock_change();
}
});
$('.openButton').click(function() {
var nextHiddenTag = $(this).parent('span').next('div');
$(nextHiddenTag).toggleClass('js_fr_display-none');
});
function bindEventNameDetail(nameDetailTag, embroideryInputTag, embroideryNameTag, logoNameTag, logoInputTag, logoExpTag, logoExpTextTag, logoFirstTag, opemNameCheckboxTag, embroideryIconTag) {
$(embroideryInputTag).change( function() {
if ($(this).val() == 1) {
//ネーム刺繍
$(embroideryNameTag).removeClass('js_fr_display-none');
$(logoNameTag).addClass('js_fr_display-none');
$(logoExpTag).addClass('js_fr_display-none');
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
$(embroideryIconTag).addClass('js_fr_display-none');
}
if ($(this).val() == 2) {
//ロゴ刺繍
$(embroideryNameTag).addClass('js_fr_display-none');
$(logoNameTag).removeClass('js_fr_display-none');
$(nameDetailTag + ' .fr_remain-letter-count').text('');
$(embroideryIconTag).addClass('js_fr_display-none');
}
if ($(this).val() == 4) {
//アイコン刺繍
$(embroideryNameTag).addClass('js_fr_display-none');
$(logoNameTag).addClass('js_fr_display-none');
$(logoExpTag).addClass('js_fr_display-none');
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
$(embroideryIconTag).removeClass('js_fr_display-none');
}
if (opemNameCheckboxTag) {
$(opemNameCheckboxTag).removeClass('js_fr_display-none');
}
clearInputTagValue();
});
$(logoInputTag).change( function() {
$(logoExpTag).removeClass('js_fr_display-none');
if ($(this).val() == 1) {
//作ったことがある
$(logoExpTextTag).removeClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
} else {
//初めて
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).removeClass('js_fr_display-none');
}
clearInputTagValue();
});
}
bindEventNameDetail('#name_detail1', '#name_detail1 input[name="embroidery_type1"]:radio', '#name_embroidery1', '#logo_embroidery1', '#name_detail1 input[name="logo_about1"]:radio', '#logo_exp1', '#logo_exp1_text', "#logo_first1", ".js_fr_open-name-detail-2", "#icon_embroidery1");
bindEventNameDetail('#name_detail2', '#name_detail2 input[name="embroidery_type2"]:radio', '#name_embroidery2', '#logo_embroidery2', '#name_detail2 input[name="logo_about2"]:radio', '#logo_exp2', '#logo_exp2_text', "#logo_first2", ".js_fr_open-name-detail-3", "#icon_embroidery2");
bindEventNameDetail('#name_detail3', '#name_detail3 input[name="embroidery_type3"]:radio', '#name_embroidery3', '#logo_embroidery3', '#name_detail3 input[name="logo_about3"]:radio', '#logo_exp3', '#logo_exp3_text', "#logo_first3", null, "#icon_embroidery3");
function changeViewNameDetail(embroideryInputTag, embroideryNameTag, logoNameTag, logoInputTag, logoExpTag, logoExpTextTag, logoFirstTag, opemNameCheckboxTag, embroideryIconTag) {
if ($(embroideryInputTag).val() == 1) {
//ネーム刺繍
$(embroideryNameTag).removeClass('js_fr_display-none');
$(logoNameTag).addClass('js_fr_display-none');
$(logoExpTag).addClass('js_fr_display-none');
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
if (opemNameCheckboxTag) {
$(opemNameCheckboxTag).removeClass('js_fr_display-none');
}
$(embroideryIconTag).addClass('js_fr_display-none');
}
if ($(embroideryInputTag).val() == 2) {
//ロゴ刺繍
$(embroideryNameTag).addClass('js_fr_display-none');
$(logoNameTag).removeClass('js_fr_display-none');
if (opemNameCheckboxTag) {
$(opemNameCheckboxTag).removeClass('js_fr_display-none');
}
$(embroideryIconTag).addClass('js_fr_display-none');
}
if ($(embroideryInputTag).val() == 4) {
//アイコン刺繍
$(embroideryNameTag).addClass('js_fr_display-none');
$(logoNameTag).addClass('js_fr_display-none');
$(logoExpTag).addClass('js_fr_display-none');
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
$(embroideryIconTag).removeClass('js_fr_display-none');
}
if ($(logoInputTag).val() == 1) {
//作ったことがある
$(logoExpTag).removeClass('js_fr_display-none');
$(logoExpTextTag).removeClass('js_fr_display-none');
$(logoFirstTag).addClass('js_fr_display-none');
} else if ($(logoInputTag).val() == 2) {
//初めて
$(logoExpTag).removeClass('js_fr_display-none');
$(logoExpTextTag).addClass('js_fr_display-none');
$(logoFirstTag).removeClass('js_fr_display-none');
}
}
changeViewNameDetail('#name_detail1 input[name="embroidery_type1"]:radio:checked', '#name_embroidery1', '#logo_embroidery1', '#name_detail1 input[name="logo_about1"]:radio:checked', '#logo_exp1', '#logo_exp1_text', "#logo_first1", ".js_fr_open-name-detail-2", "#icon_embroidery1");
changeViewNameDetail('#name_detail2 input[name="embroidery_type2"]:radio:checked', '#name_embroidery2', '#logo_embroidery2', '#name_detail2 input[name="logo_about2"]:radio:checked', '#logo_exp2', '#logo_exp2_text', "#logo_first2", ".js_fr_open-name-detail-3", "#icon_embroidery2");
changeViewNameDetail('#name_detail3 input[name="embroidery_type3"]:radio:checked', '#name_embroidery3', '#logo_embroidery3', '#name_detail3 input[name="logo_about3"]:radio:checked', '#logo_exp3', '#logo_exp3_text', "#logo_first3", null, "#icon_embroidery3");
function bindEventOpenNameDetail(openNameDetailTag, nameDetailTag, confirmMessage) {
$(openNameDetailTag).click(function(){
if ($(this).is(':checked')) {
$(nameDetailTag).removeClass('js_fr_display-none');
//3をクリックした場合、2を非表示にする
$('.js_fr_open-name-detail-2').removeClass('hidden');
} else {
if (!confirm(confirmMessage)) {
$(this).attr('checked', true);
return false;
}
$(nameDetailTag).addClass('js_fr_display-none');
//3をクリックした場合、2を非表示にする
if ($(this).hasClass('open_name_detail3')) {
$('.js_fr_open-name-detail-2').removeClass('hidden');
}
//文字数制限をクリア
if (openNameDetailTag == '#embroidery') {
$('.fr_remain-letter-count').text('');
} else if (openNameDetailTag == '.open_name_detail2') {
$('#name_detail2 .fr_remain-letter-count').text('');
} else if (openNameDetailTag == '.open_name_detail3') {
$('#name_detail3 .fr_remain-letter-count').text('');
}
clearInputTagValue();
}
});
}
bindEventOpenNameDetail('#embroidery', '.js_fr_embroidery-area', '入力した刺繍内容が全てクリアされます。\nよろしいですか?');
bindEventOpenNameDetail('.open_name_detail2', '#name_detail2', '入力した2ヶ所目がクリアされます。\nよろしいですか?');
bindEventOpenNameDetail('.open_name_detail3', '#name_detail3', '入力した3ヶ所目がクリアされます。\nよろしいですか?');
function changeViewOpenNameDetail(openNameDetailTag, nameDetailTag, confirmMessage) {
if ($(openNameDetailTag).is(':checked')) {
$(nameDetailTag).removeClass('js_fr_display-none');
//3をクリックした場合、2を非表示にする
if ($(openNameDetailTag).hasClass('open_name_detail3')) {
$('.js_fr_open-name-detail-2').addClass('hidden');
}
}
}
changeViewOpenNameDetail('#embroidery', '.js_fr_embroidery-area', '入力した刺繍内容が全てクリアされます。\nよろしいですか?');
changeViewOpenNameDetail('.open_name_detail2', '#name_detail2', '入力した2ヶ所目がクリアされます。\nよろしいですか?');
changeViewOpenNameDetail('.open_name_detail3', '#name_detail3', '入力した3ヶ所目がクリアされます。\nよろしいですか?');
function clearInputTagValue() {
var noneDisplayInputElements = $('.js_fr_display-none input');
for(var i=0; i < noneDisplayInputElements.length; i++) {
var inputElement = noneDisplayInputElements[i];
switch(inputElement.type) {
case "text":
$(inputElement).val('');
break;
case "checkbox":
inputElement.checked = false;
break;
case "radio":
inputElement.checked = false;
break;
default:
}
}
function displayClearNonDisplayArea(tagNmae) {
$('.js_fr_display-none ' + tagNmae).addClass('js_fr_display-none');
}
displayClearNonDisplayArea('#name_embroidery1');
displayClearNonDisplayArea('#logo_embroidery1');
displayClearNonDisplayArea('#logo_exp1');
displayClearNonDisplayArea('#logo_first1');
displayClearNonDisplayArea('#icon_embroidery1');
displayClearNonDisplayArea('#name_embroidery2');
displayClearNonDisplayArea('#logo_embroidery2');
displayClearNonDisplayArea('#logo_exp2');
displayClearNonDisplayArea('#logo_first2');
displayClearNonDisplayArea('#icon_embroidery2');
displayClearNonDisplayArea('#name_embroidery3');
displayClearNonDisplayArea('#logo_embroidery3');
displayClearNonDisplayArea('#logo_exp3');
displayClearNonDisplayArea('#logo_first3');
displayClearNonDisplayArea('#icon_embroidery3');
displayClearNonDisplayArea('.js_fr_open-name-detail-2');
displayClearNonDisplayArea('.js_fr_open-name-detail-3');
displayClearNonDisplayArea('.js_fr_embroidery-area');
displayClearNonDisplayArea('#name_detail2');
displayClearNonDisplayArea('#name_detail3');
}
$('.js_fr_button-embroidery-clear, .close js_fr_button-embroidery-clear').click(function(){
if(!$('#embroidery').is(':checked')) {
changeCartProceTtlText();
return;
}
if (!confirm('入力した刺繍内容が全てクリアされます。\nよろしいですか?')) {
return false;
}
var modelInputElements = $('.modal-content input');
for(var i=0; i < modelInputElements.length; i++) {
var inputElement = modelInputElements[i];
switch(inputElement.type) {
case "text":
$(inputElement).val('');
break;
case "checkbox":
inputElement.checked = false;
break;
case "radio":
inputElement.checked = false;
break;
default:
}
}
$('.js_fr_embroidery-area').addClass('js_fr_display-none');
clearInputTagValue();
changeCartProceTtlText();
deliv_date_update();
$('.fr_remain-letter-count').text('');
$('.js_fr_open-name-detail-2').removeClass('hidden');
});
function checkInputError(elementName) {
var embroideryInputError = false;
var inputElements = $(elementName + ' input');
for(var i=0; i < inputElements.length; i++) {
var inputElement = inputElements[i];
switch(inputElement.type) {
case "text":
if ($(inputElement).val()) {
break;
}
if ((inputElement == $('input[name=embroidery_text1]')[0])
|| (inputElement == $('input[name=embroidery_text2_1]')[0])
|| (inputElement == $('input[name=embroidery_text3_1]')[0])) {
embroideryInputError = true;
}
break;
case "checkbox":
break;
case "radio":
if (!$('input[name=' + inputElement.name + ']:checked').val()){
embroideryInputError = true;
}
break;
default:
}
}
return embroideryInputError;
}
$('.js_fr_button-embroidery-ok').click(function(){
$('.embroidery_area').modal('hide');
changeCartProceTtlText();
setTimeout(function () {
deliv_date_update();
}, 500);
});
function changeCartProceTtlText() {
if ($('input[name="embroidery_type1"]:checked').val() == 1) {
$('.pr_product_cart-price_ttl-1').text('ネーム刺繍内容1');
if ($('input[name="embroidery_position"]:checked').val()) {
var ttlText = $('input[name="embroidery_position"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-1').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-1').text('位置:未選択');
}
if ($('input[name="embroidery_font"]:checked').val()) {
var ttlText = $('input[name="embroidery_font"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-font-1').text('書体:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-font-1').text('書体:未選択');
}
if ($('input[name="embroidery_color"]:checked').val()) {
var ttlText = $('input[name="embroidery_color"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-color-1').text('刺繍カラー:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-color-1').text('刺繍カラー:未選択');
}
if ($('input[name="embroidery_text1"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text1').text('刺繍テキスト1行目:' + $('input[name="embroidery_text1"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text1').text('刺繍テキスト1行目:未入力');
}
if ($('input[name="embroidery_text2"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text2').text('刺繍テキスト2行目:' + $('input[name="embroidery_text2"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text2').text('刺繍テキスト2行目:未入力');
}
if ($('input[name="embroidery_text3"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text3').text('刺繍テキスト3行目:' + $('input[name="embroidery_text3"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text3').text('刺繍テキスト3行目:未入力');
}
$('.pr_product_cart-price_ttl-hospital-name-1').text('');
$('.pr_product_cart-price_ttl-department-name-1').text('');
$('.pr_product_cart-price_ttl-note-1').text('');
$('.pr_product_cart-price_ttl-icon-1').text('');
} else if ($('input[name="embroidery_type1"]:checked').val() == 2) {
$('.pr_product_cart-price_ttl-1').text('ロゴ刺繍1');
$('.pr_product_cart-price_ttl-font-1').text('');
$('.pr_product_cart-price_ttl-color-1').text('');
if ($('input[name="embroidery_position_logo1"]:checked').val()) {
var ttlText = $('input[name="embroidery_position_logo1"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-1').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-1').text('位置:未選択');
}
// if ($('input[name="logo_about1"]:checked').val() == 1) {
// if ($('input[name="logo_first_text1_1"]').val()) {
// $('.pr_product_cart-price_ttl-hospital-name-1').text('病院名:' + $('input[name="logo_first_text1_1"]').val());
// } else {
// $('.pr_product_cart-price_ttl-hospital-name-1').text('病院名:未入力');
// }
// if ($('input[name="logo_first_text1_2"]').val()) {
// $('.pr_product_cart-price_ttl-department-name-1').text('科名:' + $('input[name="logo_first_text1_2"]').val());
// } else {
// $('.pr_product_cart-price_ttl-department-name-1').text('科名:未入力');
// }
// if ($('input[name="logo_first_text1_3"]').val()) {
// $('.pr_product_cart-price_ttl-note-1').text('備考欄:' + $('input[name="logo_first_text1_3"]').val());
// } else {
// $('.pr_product_cart-price_ttl-note-1').text('');
// }
//
// } else {
$('.pr_product_cart-price_ttl-hospital-name-1').text('');
$('.pr_product_cart-price_ttl-department-name-1').text('');
$('.pr_product_cart-price_ttl-note-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3').text('');
// }
} else if ($('input[name="embroidery_type1"]:checked').val() == 4) {
$('.pr_product_cart-price_ttl-1').text('アイコン刺繍内容1');
if ($('input[name="embroidery_position"]:checked').val()) {
var ttlText = $('input[name="embroidery_position"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-1').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-1').text('位置:未選択');
}
if ($('input[name="embroidery_icon"]:checked').val()) {
var ttlText = $('input[name="embroidery_icon"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-icon-1').text('アイコン:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-icon-1').text('アイコン:未選択');
}
$('.pr_product_cart-price_ttl-font-1').text('');
$('.pr_product_cart-price_ttl-color-1').text('');
$('.pr_product_cart-price_ttl-hospital-name-1').text('');
$('.pr_product_cart-price_ttl-department-name-1').text('');
$('.pr_product_cart-price_ttl-note-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3').text('');
} else {
$('.pr_product_cart-price_ttl-1').text('刺繍なし');
$('.pr_product_cart-price_ttl-posistion-1').text('');
$('.pr_product_cart-price_ttl-font-1').text('');
$('.pr_product_cart-price_ttl-color-1').text('');
$('.pr_product_cart-price_ttl-icon-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3').text('');
$('.pr_product_cart-price_ttl-hospital-name-1').text('');
$('.pr_product_cart-price_ttl-department-name-1').text('');
$('.pr_product_cart-price_ttl-note-1').text('');
}
// ネーム刺繍2
if ($('input[name="embroidery_type2"]:checked').val() == 1) {
$('.pr_product_cart-price_ttl-2').text('ネーム刺繍内容2');
if ($('input[name="embroidery_position2"]:checked').val()) {
var ttlText = $('input[name="embroidery_position2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-2').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-2').text('位置:未選択');
}
if ($('input[name="embroidery_font2"]:checked').val()) {
var ttlText = $('input[name="embroidery_font2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-font-2').text('書体:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-font-2').text('書体:未選択');
}
if ($('input[name="embroidery_color2"]:checked').val()) {
var ttlText = $('input[name="embroidery_color2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-color-2').text('刺繍カラー:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-color-2').text('刺繍カラー:未選択');
}
if ($('input[name="embroidery_text2_1"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text2-1').text('刺繍テキスト1行目:' + $('input[name="embroidery_text2_1"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text2-1').text('刺繍テキスト1行目:未入力');
}
if ($('input[name="embroidery_text2_2"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text2-2').text('刺繍テキスト2行目:' + $('input[name="embroidery_text2_2"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text2-2').text('刺繍テキスト2行目:未入力');
}
if ($('input[name="embroidery_text2_3"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text2-3').text('刺繍テキスト3行目:' + $('input[name="embroidery_text2_3"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text2-3').text('刺繍テキスト3行目:未入力');
}
$('.pr_product_cart-price_ttl-hospital-name-2').text('');
$('.pr_product_cart-price_ttl-department-name-2').text('');
$('.pr_product_cart-price_ttl-note-2').text('');
} else if ($('input[name="embroidery_type2"]:checked').val() == 2) {
$('.pr_product_cart-price_ttl-2').text('ロゴ刺繍2');
$('.pr_product_cart-price_ttl-font-2').text('');
$('.pr_product_cart-price_ttl-color-2').text('');
if ($('input[name="embroidery_position_logo2"]:checked').val()) {
var ttlText = $('input[name="embroidery_position_logo2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-2').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-2').text('位置:未選択');
}
// if ($('input[name="logo_about2"]:checked').val() == 1) {
// if ($('input[name="logo_first_text2_1"]').val()) {
// $('.pr_product_cart-price_ttl-hospital-name-2').text('病院名:' + $('input[name="logo_first_text2_1"]').val());
// } else {
// $('.pr_product_cart-price_ttl-hospital-name-2').text('病院名:未入力');
// }
// if ($('input[name="logo_first_text2_2"]').val()) {
// $('.pr_product_cart-price_ttl-department-name-2').text('科名:' + $('input[name="logo_first_text2_2"]').val());
// } else {
// $('.pr_product_cart-price_ttl-department-name-2').text('科名:未入力');
// }
// if ($('input[name="logo_first_text2_3"]').val()) {
// $('.pr_product_cart-price_ttl-note-2').text('備考欄:' + $('input[name="logo_first_text2_3"]').val());
// } else {
// $('.pr_product_cart-price_ttl-note-2').text('');
// }
// } else {
$('.pr_product_cart-price_ttl-hospital-name-2').text('');
$('.pr_product_cart-price_ttl-department-name-2').text('');
$('.pr_product_cart-price_ttl-note-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-3').text('');
// }
} else if ($('input[name="embroidery_type2"]:checked').val() == 4) {
$('.pr_product_cart-price_ttl-2').text('アイコン刺繍内容2');
if ($('input[name="embroidery_position2"]:checked').val()) {
var ttlText = $('input[name="embroidery_position2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-2').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-2').text('位置:未選択');
}
if ($('input[name="embroidery_icon2"]:checked').val()) {
var ttlText = $('input[name="embroidery_icon2"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-icon-2').text('アイコン:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-icon-2').text('アイコン:未選択');
}
$('.pr_product_cart-price_ttl-font-2').text('');
$('.pr_product_cart-price_ttl-color-2').text('');
$('.pr_product_cart-price_ttl-hospital-name-2').text('');
$('.pr_product_cart-price_ttl-department-name-2').text('');
$('.pr_product_cart-price_ttl-note-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-3').text('');
} else {
$('.pr_product_cart-price_ttl-2').text('');
$('.pr_product_cart-price_ttl-posistion-2').text('');
$('.pr_product_cart-price_ttl-font-2').text('');
$('.pr_product_cart-price_ttl-color-2').text('');
$('.pr_product_cart-price_ttl-icon-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text2-3').text('');
$('.pr_product_cart-price_ttl-hospital-name-2').text('');
$('.pr_product_cart-price_ttl-department-name-2').text('');
$('.pr_product_cart-price_ttl-note-2').text('');
}
// ネーム刺繍3
if ($('input[name="embroidery_type3"]:checked').val() == 1) {
$('.pr_product_cart-price_ttl-3').text('ネーム刺繍内容3');
if ($('input[name="embroidery_position3"]:checked').val()) {
var ttlText = $('input[name="embroidery_position3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-3').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-3').text('位置:未選択');
}
if ($('input[name="embroidery_font3"]:checked').val()) {
var ttlText = $('input[name="embroidery_font3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-font-3').text('書体:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-font-3').text('書体:未選択');
}
if ($('input[name="embroidery_color3"]:checked').val()) {
var ttlText = $('input[name="embroidery_color3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-color-3').text('刺繍カラー:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-color-3').text('刺繍カラー:未選択');
}
if ($('input[name="embroidery_text3_1"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text3-1').text('刺繍テキスト1行目:' + $('input[name="embroidery_text3_1"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text3-1').text('刺繍テキスト1行目:未入力');
}
if ($('input[name="embroidery_text3_2"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text3-2').text('刺繍テキスト2行目:' + $('input[name="embroidery_text3_2"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text3-2').text('刺繍テキスト2行目:未入力');
}
if ($('input[name="embroidery_text3_3"]').val()) {
$('.pr_product_cart-price_ttl-embroidery-text3-3').text('刺繍テキスト3行目:' + $('input[name="embroidery_text3_3"]').val());
} else {
$('.pr_product_cart-price_ttl-embroidery-text3-3').text('刺繍テキスト3行目:未入力');
}
$('.pr_product_cart-price_ttl-hospital-name-3').text('');
$('.pr_product_cart-price_ttl-department-name-3').text('');
$('.pr_product_cart-price_ttl-note-3').text('');
} else if ($('input[name="embroidery_type3"]:checked').val() == 2) {
$('.pr_product_cart-price_ttl-3').text('ロゴ刺繍3');
$('.pr_product_cart-price_ttl-font-3').text('');
$('.pr_product_cart-price_ttl-color-3').text('');
if ($('input[name="embroidery_position_logo3"]:checked').val()) {
var ttlText = $('input[name="embroidery_position_logo3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-3').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-3').text('位置:未選択');
}
// if ($('input[name="logo_about3"]:checked').val() == 1) {
// if ($('input[name="logo_first_text3_1"]').val()) {
// $('.pr_product_cart-price_ttl-hospital-name-3').text('病院名:' + $('input[name="logo_first_text3_1"]').val());
// } else {
// $('.pr_product_cart-price_ttl-hospital-name-3').text('病院名:未入力');
// }
// if ($('input[name="logo_first_text3_2"]').val()) {
// $('.pr_product_cart-price_ttl-department-name-3').text('科名:' + $('input[name="logo_first_text3_2"]').val());
// } else {
// $('.pr_product_cart-price_ttl-department-name-3').text('科名:未入力');
// }
// if ($('input[name="logo_first_text3_3"]').val()) {
// $('.pr_product_cart-price_ttl-note-3').text('備考欄:' + $('input[name="logo_first_text3_3"]').val());
// } else {
// $('.pr_product_cart-price_ttl-note-3').text('');
// }
// } else {
$('.pr_product_cart-price_ttl-hospital-name-3').text('');
$('.pr_product_cart-price_ttl-department-name-3').text('');
$('.pr_product_cart-price_ttl-note-3').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-3').text('');
// }
} else if ($('input[name="embroidery_type3"]:checked').val() == 4) {
$('.pr_product_cart-price_ttl-3').text('アイコン刺繍内容3');
if ($('input[name="embroidery_position3"]:checked').val()) {
var ttlText = $('input[name="embroidery_position3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-posistion-3').text('位置:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-posistion-3').text('位置:未選択');
}
if ($('input[name="embroidery_icon3"]:checked').val()) {
var ttlText = $('input[name="embroidery_icon3"]:checked').parent('label').text();
$('.pr_product_cart-price_ttl-icon-3').text('アイコン:' + ttlText);
} else {
$('.pr_product_cart-price_ttl-icon-3').text('アイコン:未選択');
}
$('.pr_product_cart-price_ttl-font-3').text('');
$('.pr_product_cart-price_ttl-color-3').text('');
$('.pr_product_cart-price_ttl-hospital-name-3').text('');
$('.pr_product_cart-price_ttl-department-name-3').text('');
$('.pr_product_cart-price_ttl-note-3').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-3').text('');
} else {
$('.pr_product_cart-price_ttl-3').text('');
$('.pr_product_cart-price_ttl-posistion-3').text('');
$('.pr_product_cart-price_ttl-font-3').text('');
$('.pr_product_cart-price_ttl-color-3').text('');
$('.pr_product_cart-price_ttl-icon-3').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-1').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-2').text('');
$('.pr_product_cart-price_ttl-embroidery-text3-3').text('');
$('.pr_product_cart-price_ttl-hospital-name-3').text('');
$('.pr_product_cart-price_ttl-department-name-3').text('');
$('.pr_product_cart-price_ttl-note-3').text('');
}
}
changeCartProceTtlText();
json = JSON.parse('{"6":{"1283":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1282":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1281":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1280":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1518":{"text":"\u5728\u5eab\u306a\u3057","emtext":"\u5728\u5eab\u306a\u3057","em2text_1":"\u5728\u5eab\u306a\u3057","em2text_2":"\u5728\u5eab\u306a\u3057"},"1517":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"}},"5":{"1283":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1282":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1281":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1280":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1518":{"text":"\u5728\u5eab\u306a\u3057","emtext":"\u5728\u5eab\u306a\u3057","em2text_1":"\u5728\u5eab\u306a\u3057","em2text_2":"\u5728\u5eab\u306a\u3057"},"1517":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"}},"4":{"1283":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1282":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1281":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1280":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1518":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1517":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"}},"9":{"1283":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1282":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1281":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1280":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1518":{"text":"\u5728\u5eab\u306a\u3057","emtext":"\u5728\u5eab\u306a\u3057","em2text_1":"\u5728\u5eab\u306a\u3057","em2text_2":"\u5728\u5eab\u306a\u3057"},"1517":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"}},"10":{"1283":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1282":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1281":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1280":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"},"1518":{"text":"\u5728\u5eab\u306a\u3057","emtext":"\u5728\u5eab\u306a\u3057","em2text_1":"\u5728\u5eab\u306a\u3057","em2text_2":"\u5728\u5eab\u306a\u3057"},"1517":{"text":"2025\u5e7403\u670819\u65e5","sort":"2000-01-03 00:00:00","emtext":"2025\u5e7403\u670831\u65e5","emsort":"2000-01-07 00:00:00","em2text_1":"2025\u5e7403\u670831\u65e5","em2text_2":"2025\u5e7404\u670814\u65e5"}}}');
function deliv_date_update() {
var id1 = $('.fr_classcategory_id2').val();
var id2 = $('.fr_classcategory_id1').val();
product_price_calculat(id1, id2);
var em1 = $('input[name=embroidery_type1]:checked').val();
var em2 = $('input[name=embroidery_type2]:checked').val();
var em3 = $('input[name=embroidery_type3]:checked').val();
var em1_logo = $('input[name=logo_about1]:checked').val();
var em2_logo = $('input[name=logo_about2]:checked').val();
var em3_logo = $('input[name=logo_about3]:checked').val();
var showDate = function (setText) {
var interval = 400;
if (setText.match('在庫なし|在庫無し') === null) {
setText += "まで";
}
$('.fr_deliv-date > span').text(setText);
$('.fr_deliv-date').stop().hide().fadeIn(interval).fadeOut(interval/2).fadeIn(interval);
$('input:hidden[name="product_delivery_date"]').val(setText);
};
if(id1 && !isNaN(id1) && id2 && !isNaN(id2) && isNaN(em1)){
showDate(json[id1][id2]['text']);
}else if(id1 && !isNaN(id1) && id2 && !isNaN(id2) && !isNaN(em1)){
if(em1 == '1' && isNaN(em2) && isNaN(em3) || em1 == '1' && em2 == '1' && isNaN(em3) || em1 == '1' && em2 == '1' && em3 == '1'){
showDate(json[id1][id2]['emtext']);
}
if(em1 == '4' || em2 == '4'|| em3 == '4'){
showDate(json[id1][id2]['em2text_1']);
}
if(em1 == '2' || em2 == '2'|| em3 == '2'){
if(em1_logo=="2" || em2_logo=="2" || em3_logo=="2"){
showDate(json[id1][id2]['em2text_2']);
}else{
showDate(json[id1][id2]['em2text_1']);
}
}
}else{
$('.fr_deliv-date').hide();
}
}
function cart_stock_change() {
var id1 = $('.fr_classcategory_id2').val();
var id2 = $('.fr_classcategory_id1').val();
if($('.fr_product_stock-out_'+ id2 + '_' + id1).length){
$('.fr_product_cart-on').hide();
$('.fr_product_cart-off').not('.fr_product_stock-out_'+ id2 + '_' + id1).hide();
$('.fr_product_stock-out_'+ id2 + '_' + id1).show();
}else if($('.fr_product_no-restock_'+ id2 + '_' + id1).length){
$('.fr_product_cart-on').hide();
$('.fr_product_cart-off').not('.fr_product_no-restock_'+ id2 + '_' + id1).hide();
$('.fr_product_no-restock_'+ id2 + '_' + id1).show();
}else{
$('.fr_product_cart-off').hide();
$('.fr_product_cart-on').show();
}
}
function cart_stock_change_reset() {
$('.fr_product_cart-off').hide();
$('.fr_product_cart-on').show();
}
function product_price_calculat(classcat_id2, classcat_id1) {
classcat_id2 = classcat_id2 !== '' ? classcat_id2 : '';
var classcat2;
var formId = '#form1 ';
// 詳細表示時
classcat2 = classCategories[classcat_id1]['#' + classcat_id2];
// 通常価格
var $price01_default = $('.pr_product_cart-price_txt').find('[id^=price01_default]');
var $price01_dynamic = $('.pr_product_cart-price_txt').find('[id^=price01_dynamic]');
var $price011_default = $('.pr_product_cart-price_txt').find('[id^=price011_default]');//add 税抜
var $price011_dynamic = $('.pr_product_cart-price_txt').find('[id^=price011_dynamic]');//add 税抜
if (classcat2
&& typeof classcat2['price01'] != 'undefined'
&& String(classcat2['price01']).length >= 1) {
$price01_dynamic.text(classcat2['price01']).show();
$price011_dynamic.text(classcat2['price011']).show();//add 税抜
$price01_default.hide();
$price011_default.hide();//add 税抜
} else {
$price01_dynamic.hide();
$price01_default.show();
$price011_dynamic.hide();//add 税抜
$price011_default.show();//add 税抜
}
// 販売価格
var $price02_default = $('.pr_product_cart-price_txt').find('[id^=price02_default]');
var $price02_dynamic = $('.pr_product_cart-price_txt').find('[id^=price02_dynamic]');
var $price021_default = $('.pr_product_cart-price_txt').find('[id^=price021_default]');//add 税抜→税込
var $price021_dynamic = $('.pr_product_cart-price_txt').find('[id^=price021_dynamic]');//add 税抜→税込
if (classcat2
&& typeof classcat2['price02'] != 'undefined'
&& String(classcat2['price02']).length >= 1) {
var $em1_price = 0;
var $em2_price = 0;
var $em3_price = 0;
var $qua=1
if ($(formId + '[name=embroidery_type1]:checked').val() == 1) {
$em1_price = parseInt($em1_price) + parseInt(1320)*$qua;
}
if ($(formId + '[name=embroidery_type1]:checked').val() == 2 && $(formId + '[name=logo_about1]:checked').val() == 1) {
$em1_price = parseInt($em1_price) + parseInt(1650)*$qua;
}
if ($(formId + '[name=embroidery_type1]:checked').val() == 2 && $(formId + '[name=logo_about1]:checked').val() == 2) {
$em1_price = parseInt($em1_price) + parseInt(1650)*$qua + parseInt(11000);
}
if ($(formId + '[name=embroidery_type1]:checked').val() == 4) {
$em1_price = parseInt($em1_price) + parseInt(1650)*$qua;
}
if ($(formId + '[name=embroidery_type2]:checked').val() == 1) {
$em2_price = parseInt($em2_price) + parseInt(1320)*$qua;
}
if ($(formId + '[name=embroidery_type2]:checked').val() == 2 && $(formId + '[name=logo_about2]:checked').val() == 1) {
$em2_price = parseInt($em2_price) + parseInt(1650)*$qua;
}
if ($(formId + '[name=embroidery_type2]:checked').val() == 2 && $(formId + '[name=logo_about2]:checked').val() == 2) {
$em2_price = parseInt($em2_price) + parseInt(1650)*$qua + parseInt(11000);
}
if ($(formId + '[name=embroidery_type2]:checked').val() == 4) {
$em2_price = parseInt($em2_price) + parseInt(1650)*$qua;
}
if ($(formId + '[name=embroidery_type3]:checked').val() == 1) {
$em3_price = parseInt($em3_price) + parseInt(1320)*$qua;
}
if ($(formId + '[name=embroidery_type3]:checked').val() == 2 && $(formId + '[name=logo_about3]:checked').val() == 1) {
$em3_price = parseInt($em3_price) + parseInt(1650)*$qua;
}
if ($(formId + '[name=embroidery_type3]:checked').val() == 2 && $(formId + '[name=logo_about3]:checked').val() == 2) {
$em3_price = parseInt($em3_price) + parseInt(1650)*$qua + parseInt(11000);
}
if ($(formId + '[name=embroidery_type3]:checked').val() == 4) {
$em3_price = parseInt($em3_price) + parseInt(1650)*$qua;
}
var $product_price = (classcat2['price021']).replace(/[^0-9]/g, '');
var $total_price = parseInt($product_price) + parseInt($em1_price) + parseInt($em2_price) + parseInt($em3_price);
var $total = String($total_price).replace( /(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
$price021_default.text($total);
$price021_dynamic.text($total).show();
$price02_dynamic.text(classcat2['price02']).show();
//$price021_dynamic.text(classcat2['price021']).show();//add 税抜
$price02_default.hide();
$price021_default.hide();//add 税抜
} else {
$price02_dynamic.hide();
$price02_default.show();
$price021_dynamic.hide();//add 税抜
$price021_default.show();//add 税抜
}
}
$(function() {
bindJacketEmbroideryWordNumCheck();
viewJacketEmbroideryWordNumCheck();
});