first-contents-mall 사용중인데 리스트에서 바로 결제페이지로 이동

안녕하세요. 컨텐츠몰 사용중인데 리스트에서 클릭했을때 상세페이지로 안넘어가고 바로 결제페이지로 이동하고싶은데 방법이있나요??

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
  • 안녕하세요~^^

    KBoard 퍼스트 콘텐츠몰 스킨 상품 목록 페이지에서

    상품 클릭 시 본문 페이지로 이동하지 않고 결제 페이지로 이동하게 하시려면

    스킨 파일을 수정해주셔야 합니다.

     

    전체상품 페이지 스타일에 따라 수정해야 하는 파일이 다르기 때문에

    갤러리형을 기준으로 안내해드리겠습니다.

     

    FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/list-gallery-style.php 파일에

    아래의 코드를 찾아서

    <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>" title="<?php echo esc_attr(wp_strip_all_tags($content->title))?>">
    	<div class="kboard-list-thumbnail-wrap">
    		<div class="kboard-list-thumbnail">
    			<?php if($content->getThumbnail(500, 281)):?>
    			<div class="kboard-list-thumbnail-child" style="background-image:url(<?php echo $content->getThumbnail(500, 281)?>)"></div>
    			<?php endif?>
    		</div>
    	</div>
    	<div class="kboard-list-new"><?php if($content->isNew()):?><span class="kboard-first-contents-mall-new-notify">New</span><?php endif?></div>
    	<div class="kboard-list-title"><div class="kboard-first-contents-mall-cut-strings">
    		<?php echo $content->title?>
    		<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    	</div></div>
    	<div class="kboard-list-info">
    		<span class="kboard-info-user"><i class="fas fa-user"></i> <?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    		<?php if($content->like > 0):?><span class="kboard-info-heart"><i class="fas fa-heart"></i> <?php echo number_format($content->like)?></span><?php endif?>
    		<?php if($content->comment):?><span class="kboard-info-comments"><i class="fas fa-comments"></i> <?php echo $content->getCommentsCount('', '')?></span><?php endif?>
    	</div>
    	<div class="kboard-list-price">
    		<?php if($content->option->price):?>
    			<?php if($content->option->list_price):?>
    				<span class="list-price"><?php echo $board->currency($content->option->list_price)?></span>
    			<?php endif?>
    			
    			<span class="price"><?php echo $board->currency($content->option->price)?></span>
    		<?php else:?>
    			<span class="price"><?php echo __('For free', 'kboard')?></span>
    		<?php endif?>
    	</div>
    	<?php if($content->like > 0):?>
    	<div class="kboard-list-heart">
    		<i class="fas fa-heart"></i> <?php echo number_format($content->like)?>
    	</div>
    	<?php endif?>
    </a>

    아래의 코드로 교체해보세요.

    <form method="post" id="kboard-first-contents-mall-form" action="<?php echo $url->set('uid', $content->uid)->set('mod', 'order')->toString()?>">
    	<input type="hidden" name="<?php echo $order->getItemFieldName($content->uid, 'uid')?>" value="<?php echo $content->uid?>">
    	<input type="hidden" name="<?php echo $order->getItemFieldName($content->uid, 'title')?>" value="<?php echo $content->title?>">
    	<input type="hidden" name="<?php echo $order->getItemFieldName($content->uid, 'price')?>" value="<?php echo floatval($content->option->price)?>">
    	<?php if(kboard_first_contents_mall_is_use_point_order($board) && $content->option->reward_point):?>
    	<input type="hidden" name="<?php echo $order->getItemFieldName($content->uid, 'reward_point')?>" value="<?php echo floatval($content->option->reward_point)?>">
    	<?php endif?>
    	<input type="hidden" name="<?php echo $order->getItemFieldName($content->uid, 'quantity')?>" value="1">
    	
    	<a href="javascript:{}" onclick="kboard_first_contents_mall_form_submit();" title="<?php echo esc_attr(wp_strip_all_tags($content->title))?>">
    		<div class="kboard-list-thumbnail-wrap">
    			<div class="kboard-list-thumbnail">
    				<?php if($content->getThumbnail(500, 281)):?>
    				<div class="kboard-list-thumbnail-child" style="background-image:url(<?php echo $content->getThumbnail(500, 281)?>)"></div>
    				<?php endif?>
    			</div>
    		</div>
    		<div class="kboard-list-new"><?php if($content->isNew()):?><span class="kboard-first-contents-mall-new-notify">New</span><?php endif?></div>
    		<div class="kboard-list-title"><div class="kboard-first-contents-mall-cut-strings">
    			<?php echo $content->title?>
    			<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    		</div></div>
    		<div class="kboard-list-info">
    			<span class="kboard-info-user"><i class="fas fa-user"></i> <?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    			<?php if($content->like > 0):?><span class="kboard-info-heart"><i class="fas fa-heart"></i> <?php echo number_format($content->like)?></span><?php endif?>
    			<?php if($content->comment):?><span class="kboard-info-comments"><i class="fas fa-comments"></i> <?php echo $content->getCommentsCount('', '')?></span><?php endif?>
    		</div>
    		<div class="kboard-list-price">
    			<?php if($content->option->price):?>
    				<?php if($content->option->list_price):?>
    					<span class="list-price"><?php echo $board->currency($content->option->list_price)?></span>
    				<?php endif?>
    				
    				<span class="price"><?php echo $board->currency($content->option->price)?></span>
    			<?php else:?>
    				<span class="price"><?php echo __('For free', 'kboard')?></span>
    			<?php endif?>
    		</div>
    		<?php if($content->like > 0):?>
    		<div class="kboard-list-heart">
    			<i class="fas fa-heart"></i> <?php echo number_format($content->like)?>
    		</div>
    		<?php endif?>
    	</a>
    </form>

     

    list-gallery-style.php 파일 제일 하단에

    아래의 코드를 추가해보시겠어요?

    <script>
    function kboard_first_contents_mall_form_submit(){
    	<?php if(kboard_first_contents_mall_is_current_user_order($board)):?>
    		jQuery('#kboard-first-contents-mall-form').submit();
    	<?php else:?>
    		if(confirm('구매하기 위해서는 먼저 로그인해야 합니다. 로그인 페이지로 이동할까요?')){
    			window.location.href='<?php echo wp_login_url($_SERVER['REQUEST_URI'])?>';
    		}
    	<?php endif?>
    }
    </script>

    고맙습니다.

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