퍼스트 컨텐츠몰 구매하기 버튼에 대해 문의드립니다.

1. 정확한 제품 또는 플러그인 이름

케이보드 퍼스트 컨텐츠몰 스킨

 

2. 상세 내용

안녕하세요. 케이보드 퍼스트 컨텐츠몰 플러그인을 사용중입니다.

다름이 아니라 아래 이미지에 표기된것처럼 구매하기버튼을 갤러리형게시판목록 아래에 추가하고싶습니다.

http://ddamddam.com/wp-content/uploads/2022/02/Screenshot_1-1.png

최신글 목록에도 똑같이 아래에 구매하기 버튼 추가하고싶은데

방법 알려주시면 감사하겠습니다~!

 

3. 확인 가능한 상세 페이지 주소

 

 

4. 수정한 코드 내역 (있다면)

 

 

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 안녕하세요~^^

    list-gallery-style.php 파일 중 

    아래의 코드를 찾아주세요.

    <a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>" title="<?php echo esc_attr(wp_strip_all_tags($content->title))?>">
    ...
    </a>

    위 코드의 아래 부분에 아래의 코드를 입력해보시겠어요?

    <form method="post" 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">
    	<div class="kboard-document-detail-button">
    		<?php if(kboard_first_contents_mall_is_downloadable()):?>
    			<?php if($content->isAttached()):?>
    				<?php foreach($content->attach as $key=>$attach):?>
    				<button type="button" class="kboard-first-contents-mall-button-action" onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo sprintf(__('Download %s', 'kboard'), $attach[1])?>"><i class="fas fa-download"></i> <?php echo $attach[1]?></button>
    				<?php endforeach?>
    			<?php endif?>
    		<?php elseif($board->isOrder()):?>
    			<?php if(kboard_first_contents_mall_is_current_user_order($board)):?>
    				<button type="submit" class="kboard-first-contents-mall-button-order"><?php echo __('Buy It Now', 'kboard')?></button>
    			<?php else:?>
    				<a href="<?php echo wp_login_url($_SERVER['REQUEST_URI'])?>" class="kboard-first-contents-mall-button-order" onclick="return confirm('구매하기 위해서는 먼저 로그인해야 합니다. 로그인 페이지로 이동할까요?');"><?php echo __('Buy It Now', 'kboard')?></a>
    			<?php endif?>
    		<?php else:?>
    			<?php echo __('Sold Out', 'kboard')?>
    		<?php endif?>
    	</div>
    </form>

    위 코드의 form 태그는 document.php 파일 내에 있습니다.

    고맙습니다.

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