Custom tokens are tokens that have a variable name, not like the other two groups, Price tokens and Attribute tokens, whose names are preset, but in this case, the name depends on the data that have been loaded to the product.
Basically the Custom tokens refer to data loaded into the catalog and are subdivided into the following groups:
Custom fields tokens
The token name is the name of the custom field and the value is the value of the custom field.
For example, if you had a custom field named ip that indicates the degree of dust and water resistance of a cell phone, you could highlight the degree of compliance with a display widget with the content "IP: {ip}", this would be displayed only on products that have the custom field ip assigned with a value.
Category & Brand tokens
These tokens are used to display a Display widget for a certain category or brand.
For example, if we wanted to highlight that we extend the warranty to all Apple products we could do it with a display widget containing "{apple}::2-Year Extended Warranty Plan". Display Widget will display "2-Year Extended Warranty Plan" only on products that have Apple as a brand name (See When to display a block and when not to?).
URL tokens
These tokens are used to show display widgets only to users who arrive at the site with a certain URL. Basically they are used in mailings, social network postings or advertising, where the user clicks on a link specially prepared to receive it with certain messages.
The token name has to appear in the URL preceded with the prefix dwt_.
For example, if you wanted to show a discount coupon to a lead base to which you will send a mailing, you would simply link to the site with a URL of the type www.mysite.com?dwt_vip_coupon=PRE-BLACK-FRIDAY.
By referencing the {vip_coupon} token in a display widget, for example, "10% off with {vip_coupon} coupon", users entering the site from that link would see "10% off with PRE-BLACK-FRIDAY coupon".
By combining URL tokens with Category & Brand tokens, you could have these leads only show the coupon on products in the Black friday category with the content "{black friday}::10% off with {vip_coupon} coupon".
Note: The URL Token information is stored for 60 days on the device with which you entered the site, you should verify that the Cookie Policy allows it.
Image tokens
These tokens allow you to reference an image that has been uploaded to the BigCommerce Image Manager. For example, {img_sale-badge.png} refers to the image sale-badge.png that should exist in the Image Manager to be displayed.
Note: if the file extension is not specified, png is assumed.
Variant option tokens
As the name implies, these tokens refer to the options of a variant, for example, {color} would refer to the Color option of a variant.
For example, you could highlight the chosen model code on the image as in this case using "Diseño: {model}:
ToDo: Illustrate the 4 examples"
ToDo: Define image size theme in Image tokens