EN IT
Open2b version 7.8

Producers

Below are documented:

In addition to these, on the producer.html page you can also use the variables common to all pages.

producer.html

Displays all products from a producer.

var (

    // Number of columns used to display products.
    columns int

    // Total number of products by the producer.
    count int

    // Description.
    description html

    // Producer identifier.
    id int

    // Name.
    name string

    // Logo.
    producerLogo Image

    // Pagination that lets you move to the next products.
    pagination Pagination

    // Producer products.
    products []Product

    // Menu to choose product sorting.
    sortBy html

)

producers variable

The producers variable, of type []Producer, is used on all store pages to display the list of producers.

{% for producer in producers %} .. {% end for %}