# Listeleme Özellikleri

Ürüne ait ekstra bilgilerin yer aldığı listeleme özellikleri

## Görünüm

![Listeleme Özellikleri](/img/tema/856974745.png)

## Kod Yapısı

### HTML

```twig title="index.html"
<div class="product-list-container">
    {% if product.categories | length > 0 and theme.settings.display_category_detail %}
        <div class="product-list-row product-categories">
            <div class="product-list-title">{{ getLang("_Category_") }}</div>
            <div class="product-list-content">
                <span>
                    {% for category in product.categories %}
                        <a href='{{ category.url }}' title="{{ category.name ~ ' ' ~ theme.settings.detail_category_text }}">{{ category.name }}</a>
                        {% if not loop.last %}<span>, </span>{% endif %}
                    {% endfor %}
                </span>
            </div>
        </div>
    {% endif %}
    {% if product.brand and theme.settings.display_brand_detail %}
        <div class="product-list-row product-brands">
            <div class="product-list-title">{{ getLang("_Brand_") }}</div>
            <div class="product-list-content">
                <a href="{{ product.brand.url }}" title="{{ product.brand.name ~ ' ' ~ theme.settings.detail_brand_text }}">{{ product.brand.name }}</a>
            </div>
        </div>
    {% endif %}
    {% if theme.settings.display_sku %}
        <div class="product-list-row">
            <div class="product-list-title">{{ getLang("_StockCode_") }}</div>
            <div class="product-list-content">{{ product.sku }}</div>
        </div>
    {% endif %}
    {% for selectionGroup in product.selectionGroups %}
        <div class="product-list-row">
            <div class="product-list-title">{{ selectionGroup.name }}</div>
            <div class="product-list-content">
                <div class="selectbox">
                    <select class="form-control" data-selector="selection-group" data-id="{{ selectionGroup.id }}" data-name="{{ selectionGroup.name }}">
                        <option value="">{{ getLang("_Choose_") }}</option>
                        {% for selection in selectionGroup.selections %}
                            <option value="{{ selection.name }}">
                                {{ selection.name }}
                            </option>
                        {% endfor %}
                    </select>
                </div>
            </div>
        </div>
    {% endfor %}
    {% for labelGroup in product.labelGroups %}
        <div class="product-list-row">
            <div class="product-list-title">{{ labelGroup.name }}</div>
            <div class="product-list-content">
                <span>
                    {% for label in labelGroup.labels %}
                        <a href="{{ label.url }}" title="{{ label.name ~ ' ' ~ theme.settings.detail_label_text }}">
                            {{ label.name }}
                        </a>
                        {% if not loop.last %}<span>, </span>{% endif %}
                    {% endfor %}
                </span>
            </div>
        </div>
    {% endfor %}
    {% for extraInfo in product.extraInfos %}
        <div class="product-list-row">
            <div class="product-list-title">{{ extraInfo.name }}</div>
            <div class="product-list-content">{{ extraInfo.value }}</div>
        </div>
    {% endfor %}
    {% if product.hasGift and product.gift %}
        <div class="product-list-row">
            <div class="product-list-title">
                {{ getLang('_Gift_') }}
            </div>
            <div class="product-list-content">{{ product.gift }}</div>
        </div>
    {% endif %}
    {% if product.hasWarranty %}
        <div class="product-list-row">
            <div class="product-list-title">{{ getLang("_Warranty_") }}</div>
            <div class="product-list-content">{{ product.warranty }}&nbsp;{{ getLang("_Month_") }}</div>
        </div>
    {% endif %}
    {% if product.marketPriceDetail %}
        <div class="product-list-row">
            <div class="product-list-title">{{ getLang("_MarketPrice_") }}</div>
            <div class="product-list-content">
                {{ product.marketPriceDetail | raw }}
            </div>
        </div>
    {% endif %}
    {% if product.isEligibleRetailerComparisonPrice and theme.settings.display_retailer_comparison_price %}
        <div class="product-list-row">
            <div class="product-list-title">{{ getLang("_Price_") }}</div>
            <div class="product-list-content">
                {{ product.retailerComparisonPrice | money }} {{ product.currency }} + {{ getLang("_Tax_") }}
            </div>
        </div>
    {% endif %}
    {% if preferences.sales_allowed and theme.settings.display_without_tax_price %}
        <div class="product-list-row">
            <div class="product-list-title">
                {% if product.isEligibleRetailerComparisonPrice and theme.settings.display_retailer_comparison_price %}
                    {{ getLang("_PartnerPrice_") }}
                {% elseif preferences.sales_allowed %}
                    {{ getLang("_Price_") }}
                {% endif %}
            </div>
            <div class="product-list-content">{{ product.priceWithoutTax(product.currency) | money }} {{ product.currency }} + {{ getLang("_Tax_") }}</div>
        </div>
    {% endif %}
    {% if product.isEligibleMoneyOrderDiscount %}
        <div class="product-list-row">
            <div class="product-list-title">{{ getLang("_MoneyOrder_") }}</div>
            <div class="product-list-content">
                {{ product.moneyOrderPriceWithTax(preferences.default_currency) | money }} {{ preferences.default_currency }}
                {% if product.isEligibleMoneyOrderDiscount %}
                    {{ getLang("_BankTransferMsg_") | replace({'(arg0)' : product.moneyOrderDiscount | money }) }}
                {% endif %}
            </div>
        </div>
    {% endif %}
    {% if product.lowestPrice and theme.settings.display_product_lowest_price %}
        <div class="product-list-row text-danger">
            *{{ getLang("_LowestInstallment_") | replace({'(arg0)' : (product.lowestPrice | money) ~ ' ' ~ preferences.default_currency }) }}
        </div>
    {% endif %}
</div>
```

### SCSS

```scss title="style.css"
/* Product List */
.product-list-container {
    margin-bottom: var(--spacer-8);
	.product-list-block {
		padding: 3px 0;
	}
	.product-list-row {
		display: flex;
        align-items: baseline;
        font-size: var(--font-size-14);
		padding: 3px 0;
		a {
			color: $color-text;
            transition: $transition;
            &:hover {
                color: $color-primary;
            }
		}
		.product-list-title {
			flex: 0 0 auto;
            width: 20%;
            color: $color-text;
            @include max($sm) {
                width: 30%;
            }
		}
		.product-list-content {
			flex: 1 1 auto;
			display: flex;
			align-items: baseline;
			word-break: break-word;
            color: $color-text;
			&:before {
				content: ':';
				margin-right: 16px;
			}
		}
	}
}
```
