Below are documented:
promotions.html promotions pagepromotion.html page for a single promotionIn addition to these, you can also use the variables common to all pages.
Promotions page listing all active promotions.
var (
// Page content.
content html
// Page image.
image AlignedImage
// Active promotions, excluding those with coupons.
promotions []Promotion
)
Page for a promotion with the products included in it.
var (
// Number of columns used to display products.
columns int
// Total number of products on promotion.
count int
// Detailed description.
description html
// Promotion deactivation time.
endHour Hour
// End date.
endTime Time
// Promotion identifier.
id int
// Indicates whether the promotion is active.
isActive bool
// Large image.
// Contains the same value as largeImage.
image Image
// Large image.
largeImage Image
// The <meta property="og:image"> tag that tells sites like Facebook
// which image to use for sharing.
// Insert between <head> and </head>.
metaOGImage html
// Name.
name string
// Pagination, lets you move to the next products.
pagination Pagination
// Products on promotion.
products []Product
// Small image.
smallImage Image
// Menu to choose product sorting.
sortBy html
// Promotion activation time.
startHour Hour
// Start date.
startTime Time
)