Skip to main content
Version: Thelia 2

{customer}

Customer Substitutions provide logged-in customer data.
{customer attr="one_of_the_following"}

Attributes​

Attribute nameData returned
id
ref
firstname
lastname
email
title_id
langThe customer lang ID
reseller1 if the customer is a reseller else 0
sponsorThe customer sponsor ID
discountThe customer % discount
createdAtThe date of creation formatted by Date time parameter
updatedAtThe date of last modification formatted by Date time parameter

Date Time optional parameters​

ParameterDescription
outputTake date, datetime or time as value to select the return type
formatTake a PHP date format, the format for the current locale will be used if this parameter is empty