Campaigns

On this page

Overview

You can use campaigns to e.g create a Black Friday Sale, or maybe a 20% off on selected items. 

 

Below you can see all of the available drops on a single campaign 


Name Description
campaign.id Database unique Identifier for the campaign
campaign.name The name of the campaign
campaign.description Description of the campaign
campaign.start_at Start date
campaign.end_at End date
campaign.code The campaign code, if it has one
campaign.include_guests Boolean
campaign.exists? Boolean
campaign.url Path to the campaigns page
campaign.default_url URL set in the campaigns admin form
campaign.products ProductsDrop. Campaigns products
campaign.groups_with_products_in_common See Groups with products in common
campaign.image Returns a MediaFile Drop if the campaign has an image.
Otherwise it returns null
campaign.media_file Alias for 'image'
campaign.image? Boolean. True if campaign has image
campaign.has_image? Alias for 'image?'
campaign.visible Boolean
campaign.visible? Boolean

 

Updated: 2020-11-17