묻고답하기
마켓플레이스 수정데이터문의입니다
2016.08.22 15:05
마켓플레이스를 이용중이고 수정하기부분에서 제가 대표사진변경을위해
<load target="default.css" />
<load target="plugin/xe-icon/xeicon.css" />
<load target="marketplace.default.js" type="body" />
<!--relatedselects plugin load-->
<load target="plugin/dependent-selects/jquery.dependent-selects.js" type="head" />
<div class="mp-box mp-popup-box">
<form action="./" method="post" class="mp-form-insert">
<input type="hidden" name="act" value="procMarketplaceItemModify" />
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="" />
<input type="hidden" name="document_srl" value="{$document_srl}" />
<div class="mp-content">
<div class="content_header">
<div class="mp-title-modify-item mp-hidetext">내 상품 등록</div>
<a href="javascript:window.close();" class="mp-button button-white button-small button-return"><i class="xe-close"></i> 창 닫기</a>
</div>
<div class="mp-notice"><i class="xe-announce"> 판매중인 상품의 상품 정보를 수정하실 수 있습니다.</i></div>
<div class="mp-block">
<p><span class="mp-important">*</span> 판매하실 물품의 대표 사진을 등록해주세요.</p>
<div class="mp-imagefile-upload">
<img class="preview" alt="your image" style="display:none;"/>
<img src="{$oMarketItem->getThumbnail($market_obj->thumbnail_width,$market_obj->thumbnail_height,$market_obj->thumbnail_type)}" />
<input name="thumbnail[0]" class="insertImage" type="file" size="1" />
</div>
<div class="mp-clearfix"></div
</div>
<div class="mp-clearfix"></div>
</div>
<div class="mp-block" style="padding: 0 10px;">
<div class="mp-block">
<section class="mp-section" cond="$module_info->hide_category=='N'" >
<label class="mp-label">상품 카테고리</label>
<select name="category_srl" class="mp-input mp-dependent">
<option value="">{$lang->category}</option>
<block loop="$category_list => $val">
{@
if($val->child_count) $_parent_text[$val->category_srl] = $_parent_text[$val->parent_srl].$val->title." || ";
}
<option disabled="disabled"|cond="!$val->grant" value="{$val->category_srl}" selected="selected"|cond="$val->grant&&$val->selected||$val->category_srl==$oMarketItem->get('category_srl')" cond="!$val->child_count" >
{$_parent_text[$val->parent_srl]}{$val->title}
</option>
</block>
</select>
</section>
<script>
jQuery('.mp-dependent').dependentSelects({
separator: ' || ',
placeholderOption: '선택',
class: 'mp-input mp-dependent'
});
</script>
<section class="mp-section">
<label for="item_name" class="mp-label">판매 상품명 <small>(*검색용)</small></label>
<input id="item_name" type="text" value="{$oMarketItem->get('product_name')}" name="item_name" class="mp-input input-full">
<p class="description">상품명만 입력하시기 바랍니다. (예. 아이패드 셀룰러 16GB, 캐논 60D)</p>
</section>
<section class="mp-section">
<label for="item_price" class="mp-label">판매 가격</label>
<input id="item_price" type="text" value="{number_format($oMarketItem->get('price'))}" name="item_price" class="mp-input number"> 원 <span id="item_price_ko"></span>
</section>
<div class="mp-block" cond="0">
<section class="mp-section">
<label for="item_condition" class="mp-label"><strong>제품 구분</strong></label>
<select name="item_condition" id="item_condition" class="mp-input">
<option value="{$condition->eid}" loop="$condition_list => $condition" selected="selected"|cond="$oMarketItem->get('item_condition') == $condition->eid">{$condition->name}</option>
</select>
</section>
<section class="mp-section">
<label for="item_original_price" class="mp-label">구매 가격</label>
<input id="item_original_price" type="text" value="{$oMarketItem->get('original_price')}"|cond="$oMarketItem->get('original_price')" name="item_original_price" class="mp-input number"> 원
</section>
<section class="mp-section">
<label for="item_used_month" class="mp-label">사용 기간</label>
{@
$used_month=array();
for($i=1;$i<=24;$i++) $used_month[] = $i;
}
<select id="item_used_month" name="item_used_month" class="mp-input">
<option value="0" selected="selected"|cond="!$oMarketItem->get('used_month')">미개봉</option>
<option value="{$val}" loop="$used_month => $val" selected="selected"|cond="$oMarketItem->get('used_month') == $val">{$val}개월</option>
<option value="25" selected="selected"|cond="$oMarketItem->get('used_month') >= 25">24개월 이상</option>
</select>
</section>
</div>
<div class="mp-block" cond="0">
<section class="mp-section">
<label class="mp-label">거래 방법</label>
<label><input type="checkbox" name="item_delivery" value="Y" checked="checked"|cond="$oMarketItem->get('delivery')=='Y'" /> 택배거래</label> <label><input type="checkbox" name="item_direct_dealing" value="Y" checked="checked"|cond="$oMarketItem->get('direct_dealing')=='Y'" /> 직거래</label> <label><input type="checkbox" name="item_safe_dealing" value="Y" checked="checked"|cond="$oMarketItem->get('safe_dealing')=='Y'" /> 안전거래</label>
</section>
<section class="mp-section">
<label class="mp-label">거래 우선 지역</label>
<select id="priority_area" name="priority_area" class="mp-input mp-district">
<option loop="$korea_districts => $val" value="{$val}">{$val}</option>
</select>
</section>
<script>
jQuery('.mp-district').dependentSelects({
separator: ' ',
placeholderOption: '선택',
class: 'mp-input mp-district'
});
</script>
</div>
<div class="btnArea">
<input type="submit" value="{$lang->cmd_registration}" class="btn" />
</div>
</div>
</div>
</div>
<div class="mp-clearfix"></div>
</form>
</div>
위에 빨간부분을 추가햇습니다 그런데 이미지는변경해도 이미지변경이되지않습니다
filter랑 ruleset을봐도 modify파일을 못찾겟네요 ㅠㅠ
어디서 이미지파일바꾸는 값을 추가해줘야하는거죠
marketplace.controller.php를 수정하세요. 업데이트를 위한 쿼리파일도 만드셔야겠군요.