Liqiud basics
Modules
API
Mailer
Campaign templates
On this page
Overview
Below you can see all the available campaign templates
| Name | Description |
| campaigns.ws | Template for showing all products in all ongoing campaigns |
| campaigns.single.ws | Template for showing a single campaign |
campaigns.ws
This is the template where you can view all ongoing campaigns on your site.
You reach all the campaigns via the URL /catalog/campaigns
Below you can se all of the available templete methods
| Name | Description |
| store.sales | Array with CampaignDrop. Ongoing sales campaigns for customer/guest. |
| store.sales? | Boolean. Any sales? |
campagns.single.ws
In this template you can show a single campaign. If you create this template, this will by default become the standard template for all campaigns.
You reach the campaign via the URL /catalog/campaigns/:campaign_url e.g. /catalog/campaigns/wand-sale
For a campaign to be visible it needs the following requirements
- Is a sale campaign (no code).
- Is an ongoing campaign (start date lesser than now and either no end date or end date greater that now.)
- Is accessible to the customer (check campaign groups).
- Has an url and the url matches the request.
- Is visible in the site.
Below you can se all of the available templete methods
| Name | Description |
| campaign | CampaignDrop for current campaign |
| seo | SeoDrop for current campaign |
Updated: 2020-09-01