WordPress/WooCommerce2017. 12. 30. 17:59

- Theme : Grafik



 /* 정상가 존재시 상태값 inline 처리 */
$('ul.products > li > div.qodef-product-info-holder > span.price > del').each(function(index){

if ($(this).length > 0) {

//alert($(this).parent().siblings('.stock_status').text());

$(this).parent().siblings('.stock_status').css('display','inline');

};

});


/* is Sold Out! 일 경우 상태값 inline 처리 */

$('ul.products > li.product > div.qodef-product-info-holder > span.stock_status').each(function(index){

if ($(this).text() == 'is Sold Out!') {

$(this).css('display','inline');

};

});



/* 상품 상세페이지 : Out of stock 텍스트를 Sold Out 텍스트로 변경 */

var text = $('div.qodef-single-product-summary > div.summary > p.stock.out-of-stock').text();

if (text == 'Out of stock'){

$('div.qodef-single-product-summary > div.summary > p.stock.out-of-stock').text('Sold Out');

};



$('#billing_first_name').attr( 'placeholder', '이름' );

$('#shipping_first_name').attr( 'placeholder', '이름' );

$('#billing_postcode').attr( 'placeholder', '우편번호' );

$('#shipping_postcode').attr( 'placeholder', '우편번호' );

$('#billing_address_1').attr( 'placeholder', '주소' );

$('#shipping_address_1').attr( 'placeholder', '주소' );

$('#billing_address_2').attr( 'placeholder', '상세주소' );

$('#shipping_address_2').attr( 'placeholder', '상세주소' );

$('#billing_last_name').attr( 'placeholder', '성' );

$('#billing_email').attr( 'placeholder', '이메일' );

$('#shipping_email').attr( 'placeholder', '이메일' );

$('#billing_phone').attr( 'placeholder', '전화번호' );

$('#shipping_phone').attr( 'placeholder', '전화번호' );

Posted by cpu21