- 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', '전화번호' );
'WordPress > WooCommerce' 카테고리의 다른 글
100 WooCommerce Tips and Tricks (0) | 2018.12.13 |
---|---|
[Wordpress] WooCommerce - 우커머스 이전 버전/올드 버전 다운로드 및 셋업 링크 (WooCommerce Old Version Download Link) (0) | 2018.03.21 |
[Wordpress] WooCommerce - 개인정보취급방침 동의하기 추가 (0) | 2017.12.30 |