product_nametextNameelementproductfas fa-fonttrue500100Dim when unavailable?0Dim Colour#8881product_descriptiontextDescriptionelementproductfas fa-fonttrue500100product_pricetextPriceelementproductfas fa-money-bill-alttrue500100Currency CodeThe 3 digit currency code to apply to the price, e.g. USD/GBP/EURPrefixSuffixproduct_allergy_infotextAllergy infoelementproductfas fa-allergiestrue500100product_photoglobal_imageelementproductfas fa-imagePhoto100100product_options_nameOptions: Nameelementproductfas fa-listtrue500100Option slot1Fit to selectionFit to selected area instead of using the font size?0Font FamilySelect a custom font - leave empty to use the default font.Font Size241Font Colour%THEME_COLOR%PrefixSuffixHorizontal Aligncenter1Vertical Aligncenter
]]> 0 &&
properties.data.productOptions[optionSlot]
) {
var option = properties.data.productOptions[optionSlot];
var name = option.name;
if (properties.prefix && properties.prefix !== '') {
name = properties.prefix + '' + name;
}
if (properties.suffix && properties.suffix !== '') {
name = name + '' + properties.suffix;
}
$productContainer.find('div').html(name);
}
if(properties.fitToArea) {
// Set target for the text
properties.fitTarget = 'div';
// Scale text to container
$(target).find('.product-elements-options-name').xiboTextScaler(properties);
}
]]>product_options_valueOptions: Valueelementproductfas fa-money-bill-alttrue500100Option slot1Fit to selectionFit to selected area instead of using the font size?0Font FamilySelect a custom font - leave empty to use the default font.Font Size241Font Colour%THEME_COLOR%Currency CodeThe 3 digit currency code to apply to the price, e.g. USD/GBP/EURPrefixSuffixHorizontal Aligncenter1Vertical Aligncenter
]]> 0 &&
properties.data.productOptions[optionSlot]
) {
var option = properties.data.productOptions[optionSlot];
var value = option.value;
var options = {};
if (properties.currencyCode && properties.currencyCode !== '') {
options.style = 'currency';
options.currency = properties.currencyCode;
}
value = new Intl.NumberFormat(undefined, options).format(value);
if (properties.prefix && properties.prefix !== '') {
value = properties.prefix + '' + value;
}
if (properties.suffix && properties.suffix !== '') {
value = value + '' + properties.suffix;
}
$productContainer.find('div').html(value);
}
if(properties.fitToArea) {
// Set target for the text
properties.fitTarget = 'div';
// Scale text to container
$(target).find('.product-elements-options-value').xiboTextScaler(properties);
}
]]>product_caloriestextCalorieselementproductfas fa-weighttrue500100UnitskcalUnits margin4Units color' + properties.units + '');
if (properties.unitMargin > 0) {
$(target).find('.calories-label').css('margin-left', properties.unitMargin + 'px');
}
if (properties.unitColor != '') {
$(target).find('.calories-label').css('color', properties.unitColor);
}
}
]]>