wooshipping 우커머스 연동 관련문의드립니다.

코스모스팜 제품이 아닌 다른 플러그인인데 간단하다고 생각했는데 하나가 잘안되네요..

wooshipping-delivery 플러그인을 이용하는 중입니다.

고객이 주문한 상품에 수취확인을 체크하면

https://brsmall.co.kr/?set-receive-confirmation=97 이런주소로 나오면서 수취확인완료가 안되네요..

마땅히 질문글을 올려도 답변이 안달려서 이쪽에 문의해보는데 답변주시면 감사하겠습니다..

wooshipping-delivery 플러그인의 view-delivery.php 파일안에 있는 내용도 동봉해드리겠습니다..

<?php
/**
 * 배송송장
 * 
 * @version		1.0.0
 * @package		Planet8/Delivery_Tracking
 * @category	Templates 
 * @author 		gaegoms (gaegoms@gmail.com)
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$script = "
var wooshipping_delivery = {
	init: function() {
		$( '.wooshipping-delivery-tracking-trigger' ).on( 'click', this.open_tracking_popup );
		$( '.wooshipping-delivery-receive-confirmation' ).on( 'click', this.confirmation );
	},
		
	open_tracking_popup: function(e) {
		e.preventDefault();
		var url = $( this ).data( 'href' );
		var options = 'width=640, height=480, resizable=yes, scrollbars=yes, status=no;';
		window.open( url, 'wooshipping-delivery', options );
	},
	
	confirmation: function() {
		if ( confirm( '".__( 'Send receive confirmation. Are you sure?', PL_DELIVERY_LANG ) . "' ) ) {
			location.href = '?set-receive-confirmation=' + $( this ).data( 'delivery' );
		}
	}
}.init();";
wc_enqueue_js( $script );
?>

<?php do_action( 'wooshipping_delivery_before_delivery_tracking' ); ?>

<h2><?php _e( 'Delivery Trackings', PL_DELIVERY_LANG ); ?></h2>
<table class="shop_table">
	<thead>
		<tr>
			<th class="product-name"><?php _e( 'Product Name', PL_DELIVERY_LANG ); ?></th>
			<th class="company-name"><?php _e( 'Courier Company', PL_DELIVERY_LANG ); ?></th>
			<th class="tracking-no"><?php _e( 'Tracking Number', PL_DELIVERY_LANG ); ?></th>
			<th class="shipping-date"><?php _e( 'Ship Date', PL_DELIVERY_LANG ); ?></th>
			<th><?php _e( 'Receive Confirmation', PL_DELIVERY_LANG ); ?></th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ( $delivery->get_items() as $item_id => $item ) : ?>
		<?php
		$company_id		= ! empty( $item['company_id'] ) ? $item['company_id'] : '';
		$tracking_no		= ! empty( $item['tracking_no'] ) ? $item['tracking_no'] : '';
		$shipping_date		= ! empty( $item['shipping_date'] ) ? $item['shipping_date'] : '';
		$receipt_date		= ! empty( $item['receipt_date'] ) ? $item['receipt_date'] : '';			
		?>
		<tr class="delivery-<?php echo $item_id; ?>">
			<td class="product-name"><a href="<?php echo get_permalink( $item['product_id'] ); ?>"><?php echo wp_trim_words( $item['name'], 26 ); ?></a> × <?php echo $item['qty']; ?></td>
			<td class="company-name"><?php echo pl_get_delivery_company_name( $company_id ); ?></td>
			<td class="tracking-no">
				<a href="#" data-href="<?php echo pl_get_delivery_tracking_url( $company_id, $tracking_no); ?>" class="wooshipping-delivery-tracking-trigger"><?php echo $tracking_no; ?></a>
			</td>
			<td class="shipping-date"><?php echo $shipping_date; ?></td>
			<td>
				<?php
				if ( ! empty( $shipping_date ) ) {
					if ( ! empty( $receipt_date ) ) {
						echo  '<span title="' . $receipt_date . '">' . $receipt_date . '</span>';
					} else {
						echo '<a class="wooshipping-delivery-receive-confirmation button" data-delivery="' . $item_id . '">' . __( 'Receive Confirmation', PL_DELIVERY_LANG ) . '</a>';
					}
				}
				?>	
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
</table>

<p>※ <?php _e( 'Click on the invoice number will connect to the courier company delivery tracking page.', PL_DELIVERY_LANG ); ?></p>

<?php do_action( 'wooshipping_delivery_after_delivery_tracking' ); ?>

 

 

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요