카페24

카페24 상품 분류/상세 정보 노출 개별 class주는 법

728x90

my info name is ..

 

카페24 관리자에서 상품 정보 관리에서 노출 여부를 관리할 수 있는데,

이때 각각의 데이터가 무엇인지 알기 위해서는 데이터 별 구분 class나 attribute를 추가해주어야 한다.

 

상품 목록

<ul module="product_ListItem" class="spec">
    <li class="{$item_display|display} {$column_name}">
      <span class="sale-price-per-"></span><strong class="title {$item_title_display|display}">{$item_title} :</strong> {$item_content}
    </li>
    <li class="{$item_display|display} {$column_name}">
      <span class="sale-price-per-"></span><strong class="title {$item_title_display|display}">{$item_title} :</strong> {$item_content}
    </li>
</ul>

 

> 구현 코드

<ul class="xans-element- xans-product xans-product-listitem-1 xans-product-listitem xans-product-1 spec">
    <li class=" ✅summary_desc xans-record-">
       ...
    <li class=" ✅product_price xans-record-">
       ...
    <li class=" ✅review_cnt xans-record-">
       ...
</ul>

 

 


상세페이지

 <tbody>
    <tr class="{$item_display|display} {$item_class}">
      <th scope="row">{$item_title}</th>
      <td>{$item_content}</td>
    </tr>
    <tr class="{$item_display|display} {$item_class}">
      <th scope="row">{$item_title}</th>
      <td>{$item_content}</td>
    </tr>
  </tbody>

 

> 구현 코드

<tbody>
    <tr class=" product_name_css xans-record-">
        ...
    <tr class=" product_price_css xans-record-">
        ...
    <tr class=" summary_desc_css xans-record-">
        ...
    <tr class=" delivery_price_css xans-record-">
        ...
    <tr class=" custom_option14_css xans-record-">
        ...
</tbody>
728x90
반응형