<!-- Ad Template with Carousel Layout--> {{#Items}} <!--Section tag for iterating through the list of items--> <div class="aalb-product-carousel-unit" id="{{ID}}">
<div class="aalb-pc-wrapper"> <div class="aalb-pc-product-container"> <ul class="aalb-pc-product-list"> {{#Item}} <!-- Section tag for beginning of information on one item --> {{#aalb}} <!-- Section tag for picking up information on attributes for the item --> <li class="aalb-pc-product"> <div class="aalb-pc-product-image"> <div class="aalb-pc-product-image-wrapper"> <a href="{{DetailPageURL}}" title="{{Title}}" target="_blank" rel="nofollow"> <!--Individual attributes are provided as variable tags as {{[[attribute]]}}. Check documentation for list of supported variable tags.--> <img src="{{MediumImageURL}}" srcset="{{LargeImageURL}}" alt="{{Title}}" /> {{#SavingPercent}} <!-- The section tag ensures that percentage savings is displayed only if it is available --> <span class="aalb-pc-percent-off"> -{{SavingPercent}}% </span> {{/SavingPercent}} </a> </div> </div>
<div class="aalb-pc-product-offer-price"> <!-- (価格の項目)The section tag for different marketplaces ensures localization of static text. --> 価格: <span class="aalb-pc-product-offer-price-value">{{CurrentPrice}}</span> </div> {{#StrikePrice}} <!-- The section tag ensures that strike price is displayed only if it is available --> <div class="aalb-pc-product-list-price"> <!-- (参考価格の項目)The section tag for different marketplaces ensures localization of static text. --> 参考価格: <span class="aalb-pc-product-list-price-value">{{StrikePrice}}</span> </div> {{/StrikePrice}} {{#Prime}} <!-- The section tag ensures that prime icon is displayed only if it is available --> <div class="aalb-pc-product-prime-icon"> <i class="icon-prime-all"></i> </div> {{/Prime}} </div>
if (rows && columns) { var cutOffIndex = (rows * columns) - 1; $products.filter(':gt(' + cutOffIndex + ')').remove(); }
function updateLayout() { var wrapperWidth = $wrapper.width(); var possibleColumns = columns || parseInt( wrapperWidth / (CONSTANTS.productMinWidth + CONSTANTS.productMargin), 10 ); var actualColumns = columns || possibleColumns < productCount ? possibleColumns : productCount;
/** * The actual columns can be zero when the wraperwidth is less than sum of CONSTANTS.productMinWidth and * CONSTANTS.productMargin.The parseInt will use floor function and converts any value less than 1 to * zero.Therefore making actual columns 1 . **/ if( actualColumns == 0 ) { actualColumns = 1; }
/** * Removing the Carousel navigation button when the number of products selected by admin is less * than the actual columns (the number of products) can be shown on screen **/ if( productCount > actualColumns ) { $btnNext.css( 'visibility', 'visible' ).removeClass( 'disabled' ).unbind( 'click' ); $btnPrev.css( 'visibility', 'visible' ).removeClass( 'disabled' ).unbind( 'click' ); } $productContainer.jCarouselLite( { btnNext : '#' + $adUnit.attr( 'id' ) + ' .aalb-pc-btn-next', btnPrev : '#' + $adUnit.attr( 'id' ) + ' .aalb-pc-btn-prev', visible : actualColumns, circular: false } );
{{ASIN}}: the Amazon Standard Identification Number for the product {{Title}}: the title or name of the item {{DetailPageURL}}: the URL for linking back to Amazon {{LargeImageURL}}: large image URL {{MediumImageURL}}: medium image URL {{SmallImageURL}}: small image URL {{By}}: name of the author, artist or brand {{CurrentPrice}}: it’s the current price. If the price is not available, a link to Amazon will be shown instead {{CurrentPriceValue}}: the current price in raw format {{StrikePrice}}: the manufacturer’s suggested price {{StrikePriceValue}}: the strike price in raw format {{Saving}}: the reduction in the strike price {{SavingPercent}}: saving in percentage {{SavingValue}}: saving in raw format {{Prime}}: indicates if the item is eligible for Prime {{Merchant}}: returns Amazon if the item is sold and shipped by Amazon. No value for marketplace merchants {{MinimumPrice}}: minimum price for a new item {{MinimumPriceValue}}: minimum price in raw format {{InStock}}: indicates if the product is in stock.