Pregunta a l'IA
Hola! Pregunta'm qualsevol cosa
Financials
User shopping

The site cart can be fully implement using cart related macros. See Adding a shopping cart context to an Elephant site.

Financials
Macro parser

Shows contracts with page navigation.

{@ contracts [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts without navigation.

{@ contract-list [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts of specific type with page navigation.

{@ contract-type [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Shows contracts of specific type without navigation.

{@ contract-type-list [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Cart's checkout form.

{@ checkout }

Clean cart content. Allows to create a context with after-clean actions.

{@ clean-cart }

Lists products with page navigation.

{@ products : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists products without navigation.

{@ product-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products with page navigation.

{@ promoted : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products without navigation.

{@ promoted-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Creates an unordered linkable list of product names.

{@ product-name : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Creates a comma separated linkable list of product names.

{@ product-name-list : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Shows product or sum of products' price.

{@ product-price : format : ids [,ids...] }
Atributs Descripció Opcions Per defecte
format Format used to show the value.
ids Identifiers.

Cart form.

{@ cart : shopping [ : template ] }
Atributs Descripció Opcions Per defecte
shopping Shopping mode.
template Template used to show the items. cart