Reference


CSS classes

CSS ClassFunction
cleverApiIndicates that the price information is used here
cleverApi-loadedAfter price loading, the clever CSS class is changed to clever-loaded
cleverApi-{product_id}-listpriceThe list price information is displayed
cleverApi-{product_id}-listpriceLocalizedThe localized list price information is displayed
cleverApi-{product_id}-priceGrossThe gross price information is displayed
cleverApi-{product_id}-priceGrossLocalizedThe localized gross price information is displayed
cleverApi-{product_id}-priceNetThe net price information is displayed
cleverApi-{product_id}-priceNetLocalizedThe localized net price information is displayed
cleverApi-{product_id}-priceVatThe vat price information is displayed
cleverApi-{product_id}-priceVatLocalizedThe localized vat price information is displayed
cleverApi-{product_id}-currencyThe currency ISO code is displayed
cleverApi-{product_id}-currencySymbolThe currency symbol is displayed
cleverApi-{product_id}-vatRateThe VAT rate is displayed
cleverApi-{product_id}-vatRateLocalizedThe localized VAT rate value is displayed
cleverApi-{product_id}-discountAbsoluteThe absolute discount is displayed
cleverApi-{product_id}-discountAbsoluteLocalizedThe localized absolute discount is displayed
cleverApi-{product_id}-discountPercentageThe discount percentage is displayed
cleverApi-{product_id}-discountPercentageLocalizedThe localized discount percentage is displayed
cleverApi-{product_id}-monthlyPriceNetThe net price per month is displayed
cleverApi-{product_id}-monthlyPriceNetLocalizedThe localized net price per month is displayed
cleverApi-{product_id}-monthlyPriceGrossThe gross price per month is displayed
cleverApi-{product_id}-monthlyPriceGrossLocalizedThe localized gross price per month is displayed

HTML Elements

<p><label>currency:</label><b class="cleverApi cleverApi-1-currency"></b></p>
<p><label>currencySymbol:</label><b class="cleverApi cleverApi-1-currencySymbol"></b></p>
<p><label>priceNetLocalized:</label><b class="cleverApi cleverApi-1-priceNetLocalized"></b></p>
<p><label>discountAbsolute:</label><b class="cleverApi cleverApi-1-discountAbsolute"></b></p>
<p><label>discountAbsoluteLocalized:</label><b class="cleverApi cleverApi-1-discountAbsoluteLocalized"></b></p>
<p><label>discountPercentage:</label><b class="cleverApi cleverApi-1-discountPercentage"></b></p>
<p><label>discountPercentageLocalized:</label><b class="cleverApi cleverApi-1-discountPercentageLocalized"></b></p>
<p class="cleverApi-hide-2-discountAbsolute"><label>discountAbsolute:</label><b class="cleverApi cleverApi-2-discountAbsolute"></b></p>
<p class="cleverApi-hide-2-discountAbsoluteLocalized"><label>discountAbsoluteLocalized:</label><b class="cleverApi cleverApi-2-discountAbsoluteLocalized"></b></p>
<p class="cleverApi-hide-2-discountPercentage"><label>discountPercentage:</label><b class="cleverApi cleverApi-2-discountPercentage"></b></p>
<p class="cleverApi-hide-2-discountPercentageLocalized"><label>discountPercentageLocalized:</label><b class="cleverApi cleverApi-2-discountPercentageLocalized"></b></

Example Integration

Product ID: 111111
name (en):Super mega product 14000 XP
additionalName:super
shortDescription:short description
description:description
operatingSystem:OS
systemRequirements:none
listprice:77
listpriceLocalized:77,00 $
priceGross:69.3
priceGrossLocalized:69,30 $
priceNet:58.24
priceNetLocalized:58,24 $
priceVat:11.06
priceVatLocalized:11,06 $
currency:USD
currencySymbol:$
vatRate:19
vatRateLocalized:19 %
discountAbsolute:7.7
discountAbsoluteLocalized:7,70 $
discountPercentage:10
discountPercentageLocalized:10 %
Product ID: 111112 - no discount - hide discount data
listprice:150
currency:USD
currencySymbol:$
listpriceLocalized:150,00 $
Errors
unknown PID hide:unknown css class: cleverApi-12-price
unknown product_id:unknown css class: cleverApi-22-price
unknown css class:unknown css class: cleverApi-22-priceunknown


Did this page help you?