A template used for listing campaign products. Enabled only for campaigns for which a campaign page has been created.
Kuvaus
A campaign page can be created in the admin panel by using the campaign form's Campaign page setting.
A campaign page can be useful e.g. if the customer received a campaign code entitling to a discount on selected products. Entering a code would take the customer to the campaign page displaying discounts the customer is entitled to.
For the template to print campaign products, use the {CampaignProducts}
tag.
Sivupohjan ominaisuudet
- Sivupohjan sijainti
- themes/shop/THEME/campaign-list.html
- Sivupohjan URL
- /campaign/ID/kampanjan-nimi
- Asetettu näkyvyys
- kampanja
Toteutus oletusteemassa
{Helper(file: 'helpers/header')}
{Helper(file: 'helpers/path')}
<div class="SiteContent">
<div class="Container">
<div class="Grid">
<div class="Col-9-12 Col-Tablet-12-12">
<div class="ContentSection">
<div class="Flex Flex-Collapse">
<div class="FlexItem">
<h1 class="ContentTitle">{PageTitle}</h1>
</div>
{Helper(
file: 'helpers/pagination-form',
before: '
<div class="FlexSpacer"></div>
<div class="FlexItem">',
after: '</div>'
)}
</div>
{CampaignImage(
width: '1024',
before: '<div class="Banner Banner-Body">',
after: '</div>'
)}
{CampaignDescription}
{Helper(file: 'helpers/product-list-filters')}
{Products(
pagination: 'true',
type: 'normal',
before: '
<div class="List ProductList">
<div class="GridList">',
after: '
</div>
</div>
{Helper(file: 'helpers/pagination')}',
helper: 'helpers/list-product',
or: '<div class="Notification">0 {%Products}</div>'
)}
</div>
</div>
<div class="Col-3-12 Col-Tablet-12-12">
{Helper(file: 'helpers/sidebar')}
</div>
</div>
</div>
</div>
{Helper(file: 'helpers/footer')}