This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <isset name="GiftCertLineItemDef" value="${dw.object.SystemObjectMgr.describe('GiftCertificateLineItem').getCustomAttributeDefinition( "denominations" ).getValues()}" scope="page" /> | |
| <select> | |
| <isloop iterator="${GiftCertLineItemDef}" var="denom" status="status"> | |
| <option value="${denom.getValue()}">${denom.getDisplayValue()}</option> | |
| </isloop> | |
| </select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('#dwfrm_profile_newsletter').attr('checked', function(){ | |
| var status = ${pdict.ETSubStatus}; | |
| if(status === true){return 'checked'}; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <isinclude template="util/modules"> | |
| <div class="checkBalanceContainer"> | |
| <form action="${URLUtils.continueURL()}" id="${pdict.CurrentForms.giftcert.htmlName}"> | |
| <isinputfield formfield="${pdict.CurrentForms.giftcert.balance.giftCertID}" type="input"> | |
| <isinputfield formfield="${pdict.CurrentForms.giftcert.balance.pin}" type="input" > | |
| <button type="submit" name="${pdict.CurrentForms.giftcert.checkbalance.htmlName}" class="checkBalance">Check Balance</button> | |
| <iscomment>Hidden input required for ajax serialization of the form</iscomment> | |
| <input name='${pdict.CurrentForms.giftcert.checkbalance.htmlName}' type='hidden' value="true"/> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GetPipelineHooks.ds | |
| /** | |
| * Name: GetHookPipeline.ds | |
| * | |
| * Description: | |
| * Gets the configiured hook pipeline, if not found it returns EmptyHook-Start | |
| * | |
| * @input hookName : String The property key of the Hook | |
| * @input fallbackHookPipeline : String The pipeline, which should be used as a fallback, if the hook is not defined in the current site | |
| * @output hookPipeline : String The hook pipeline to call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Demandware Script File | |
| * Export only the Product IDs to Netrada FTP to match the ProductFeed Export sent to Bazaarvoice | |
| * Exports Product IDs to a text file with pipe delimiters. | |
| * Created by David Witt 05 June 2013 | |
| * | |
| */ | |
| importPackage( dw.system ); | |
| importPackage( dw.util ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| decimal_sep: character used as deciaml separtor, it defaults to '.' when omitted | |
| thousands_sep: char used as thousands separator, it defaults to ',' when omitted | |
| */ | |
| Number.prototype.toMoney = function(decimals, decimal_sep, thousands_sep) { | |
| var n = this, | |
| c = isNaN(decimals) ? 2 : Math.abs(decimals), //if decimal is zero we must take it, it means user does not want to show any decimal | |
| d = decimal_sep || '.', //if no decimal separator is passed we use the dot as default decimal separator (we MUST use a decimal separator) | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iscomment>Be sure to include this line commented out in the category rendering template if you want this to show up outside the rendering template</iscomment> | |
| <isslot id="cat-banner" context="category" description="Category Banner" context-object="${pdict.ProductSearchResult.category}"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getShortDescription(product : Product) { | |
| var description : String = product.getLongDescription().toString(); | |
| var htmlTest : RegExp = new RegExp("(<([^>]+)>)", "ig"); | |
| description = description.replace(htmlTest, ""); | |
| return description; | |
| } |