⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showcart.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 2 页
字号:
                  <#else>                    <#-- this is a non-product item -->                    <b>${cartLine.getItemTypeDescription()?if_exists}</b> : ${cartLine.getName()?if_exists}                  </#if>                </div>                                <#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)>                  <#-- Show alternate gifts if there are any... -->                  <div class="tableheadtext">${uiLabelMap.OrderChooseFollowingForGift}:</div>                  <select name="dummyAlternateGwpSelect${cartLineIndex}" onchange="setAlternateGwp(this);" class="selectBox">                  <option value="">- ${uiLabelMap.OrderChooseAnotherGift} -</option>                  <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>                    <#assign alternativeOptionName = Static["org.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(delegator, alternativeOptionProductId, requestAttributes.locale)>                    <option value="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>">${alternativeOptionName?default(alternativeOptionProductId)}</option>                  </#list>                  </select>                  <#-- this is the old way, it lists out the options and is not as nice as the drop-down                  <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>                    <#assign alternativeOptionName = Static["org.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(delegator, alternativeOptionProductId, requestAttributes.locale)>                    <div class="tabletext"><a href="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>" class="buttontext">Select: ${alternativeOptionName?default(alternativeOptionProductId)}</a></div>                  </#list>                  -->                </#if>            </td>            <#-- gift wrap option -->            <#assign showNoGiftWrapOptions = false>            <td nowrap align="right">              <#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP?if_exists>              <#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")?if_exists>              <#if giftWrapOption?has_content>                <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}" onchange="javascript:document.cartform.submit()">                  <option value="NO^">${uiLabelMap.EcommerceNoGiftWrap}</option>                  <#list giftWrapOption as option>                    <option value="${option.productFeatureId}" <#if ((selectedOption.productFeatureId)?exists && selectedOption.productFeatureId == option.productFeatureId)>SELECTED</#if>>${option.description} : ${option.amount?default(0)}</option>                  </#list>                </select>              <#elseif showNoGiftWrapOptions>                <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}" onchange="javascript:document.cartform.submit()">                  <option value="">${uiLabelMap.EcommerceNoGiftWrap}</option>                </select>              <#else>                &nbsp;              </#if>            </td>            <#-- end gift wrap option -->            <td nowrap align="center">              <div class="tabletext">                <#if cartLine.getIsPromo() || cartLine.getShoppingListId()?exists>                       <#if fixedAssetExist == true><#if cartLine.getReservStart()?exists><table border="0" width="100%"><tr><td width="1%">&nbsp;</td><td width="50%" class="tabletext">${cartLine.getReservStart()?string("yyyy-mm-dd")}</td><td align="center" class="tabletext">${cartLine.getReservLength()?string.number}</td></tr><tr><td align="center">&nbsp;</td><td align="center" class="tabletext">${cartLine.getReservPersons()?string.number}</td><td class="tabletext" align="center"><#else>                           <table border="0" width="100%"><tr><td width="52%" align="center">--</td><td align="center">--</td></tr><tr><td align="center">--</td><td align="center" class="tabletext">    </#if>                        ${cartLine.getQuantity()?string.number}</td></tr></table>                    <#else><#-- fixedAssetExist -->                        ${cartLine.getQuantity()?string.number}                    </#if>                <#else><#-- Is Promo or Shoppinglist -->                       <#if fixedAssetExist == true><#if cartLine.getReservStart()?exists><table border="0" width="100%"><tr><td width="1%">&nbsp;</td><td><input type="text" class="inputBox" size="10" name="reservStart_${cartLineIndex}" value=${cartLine.getReservStart()?string}></td><td><input type="text" class="inputBox" size="2" name="reservLength_${cartLineIndex}" value=${cartLine.getReservLength()?string.number}></td></tr><tr><td>&nbsp;</td><td><input type="text" class="inputBox" size="3" name="reservPersons_${cartLineIndex}" value=${cartLine.getReservPersons()?string.number}></td><td class="tabletext"><#else>                           <table border="0" width="100%"><tr><td width="52%" align="center">--</td><td align="center">--</td></tr><tr><td align="center">--</td><td align="center" class="tabletext"></#if>                        <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}" value="${cartLine.getQuantity()?string.number}"></td></tr></table>                    <#else><#-- fixedAssetExist -->                        <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}" value="${cartLine.getQuantity()?string.number}">                    </#if>                </#if>              </div>            </td>            <td nowrap align="right"><div class="tabletext"><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/></div></td>            <td nowrap align="right"><div class="tabletext"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/></div></td>            <td nowrap align="right"><div class="tabletext"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></div></td>            <td nowrap align="center"><div class="tabletext"><#if !cartLine.getIsPromo()><input type="checkbox" name="selectedItem" value="${cartLineIndex}" onclick="javascript:checkToggle(this);"><#else>&nbsp;</#if></div></td>          </tr>        </#list>        <#if shoppingCart.getAdjustments()?has_content>            <tr><td>&nbsp;</td><td colspan="6"><hr class="sepbar"/></td></tr>              <tr>                <td colspan="5" nowrap align="right"><div class="tabletext">${uiLabelMap.CommonSubTotal}:</div></td>                <td nowrap align="right"><div class="tabletext"><@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency()/></div></td>                <td>&nbsp;</td>              </tr>            <#list shoppingCart.getAdjustments() as cartAdjustment>              <#assign adjustmentType = cartAdjustment.getRelatedOneCache("OrderAdjustmentType")>              <!-- adjustment info: ${cartAdjustment.toString()} -->              <tr>                <td colspan="5" nowrap align="right">                    <div class="tabletext">                        <i>${uiLabelMap.EcommerceAdjustment}</i> - ${adjustmentType.description?if_exists}                        <#if cartAdjustment.productPromoId?has_content><a href="<@ofbizUrl>showPromotionDetails?productPromoId=${cartAdjustment.productPromoId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDetails}</a></#if>:                    </div>                </td>                <td nowrap align="right"><div class="tabletext"><@ofbizCurrency amount=Static["org.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/></div></td>                <td>&nbsp;</td>              </tr>            </#list>        </#if>        <#if (shoppingCart.getTotalSalesTax() > 0.0)>        <tr>          <td colspan="5" align="right" valign="bottom">            <div class="tabletext">${uiLabelMap.OrderSalesTax}:</div>          </td>          <td colspan="2" align="right" valign="bottom">            <div class="tabletext"><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency()/></div>          </td>        </tr>        </#if>        <tr>          <td colspan="5" align="right" valign="bottom">            <div class="tabletext"><b>${uiLabelMap.EcommerceCartTotal}:</b></div>          </td>          <td colspan="2" align="right" valign="bottom">            <hr size="1" class="sepbar">            <div class="tabletext"><b><@ofbizCurrency amount=shoppingCart.getGrandTotal() isoCode=shoppingCart.getCurrency()/></b></div>          </td>        </tr>        <#if itemsFromList>        <tr>          <td valign="bottom" colspan="7"><div class="tabletext">L - ${uiLabelMap.EcommerceItemsfromShopingList}.</td>        </tr>        </#if>        <#if promoItems>        <tr>          <td valign="bottom" colspan="7"><div class="tabletext">P - ${uiLabelMap.EcommercePromotionalItems}.</td>        </tr>        </#if>        <#if !itemsFromList && !promoItems>        <tr>          <td colspan="7">&nbsp;</td>        </tr>        </#if>        <tr><td>&nbsp;</td><td colspan="6"><hr class="sepbar"/></td></tr>        <tr>          <td colspan="7" align="right" valign="bottom">            <div class="tabletext">              <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">              <select name="shoppingListId" class="selectBox">                <#if shoppingLists?has_content>                  <#list shoppingLists as shoppingList>                    <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option>                  </#list>                </#if>                <option value="">---</option>                <option value="">${uiLabelMap.EcommerceNewShoppingList}</option>              </select>              &nbsp;&nbsp;              <a href="javascript:addToList();" class="buttontext">${uiLabelMap.EcommerceAddSelectedtoList}</a>&nbsp;&nbsp;              <#else>               ${uiLabelMap.EcommerceYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonLogin}</a>                ${uiLabelMap.EcommerceToAddSelectedItemsToShoppingList}.&nbsp;              </#if>            </div>          </td>        </tr>        <tr><td>&nbsp;</td><td colspan="6"><hr class="sepbar"/></td></tr>        <tr>          <td colspan="7" align="right" valign="bottom">            <div class="tabletext">              <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">              &nbsp;&nbsp;              <a href="<@ofbizUrl>createCustRequestFromCart</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateCustRequestFromCart}</a>&nbsp;&nbsp;              &nbsp;&nbsp;              <a href="<@ofbizUrl>createQuoteFromCart</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateQuoteFromCart}</a>&nbsp;&nbsp;              <#else>               ${uiLabelMap.EcommerceYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonLogin}</a>                ${uiLabelMap.EcommerceToOrderCreateCustRequestFromCart}.&nbsp;              </#if>            </div>          </td>        </tr>        <tr><td>&nbsp;</td><td colspan="6"><hr class="sepbar"/></td></tr>        <tr>          <td colspan="7" align="center" valign="bottom">            <div class="tabletext"><input type="checkbox" onClick="javascript:document.cartform.submit()" name="alwaysShowcart" <#if shoppingCart.viewCartOnAdd()>checked</#if>>&nbsp;${uiLabelMap.EcommerceAlwaysViewCartAfterAddingAnItem}.</div>          </td>        </tr>      </table>    </form>  <#else>    <div class="head2">${uiLabelMap.EcommerceYourShoppingCartEmpty}.</div>  </#if><#-- Copy link bar to bottom to include a link bar at the bottom too -->    </div></div><div class="screenlet">    <div class="screenlet-header">        <div class="boxhead">&nbsp;${uiLabelMap.ProductPromoCodes}</div>    </div>    <div class="screenlet-body">        <div class="tabletext">            <form method="post" action="<@ofbizUrl>addpromocode<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addpromocodeform" style="margin: 0;">                <input type="text" class="inputBox" size="15" name="productPromoCodeId" value="">                <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddCode}">                <#assign productPromoCodeIds = (shoppingCart.getProductPromoCodesEntered())?if_exists>                <#if productPromoCodeIds?has_content>                    ${uiLabelMap.ProductPromoCodesEntered}                    <#list productPromoCodeIds as productPromoCodeId>                        ${productPromoCodeId}                    </#list>                </#if>            </form>        </div>    </div></div><#if showPromoText?exists && showPromoText><div class="screenlet">    <div class="screenlet-header">        <div class="boxhead">&nbsp;${uiLabelMap.EcommerceSpecialOffers}</div>    </div>    <div class="screenlet-body">        <#-- show promotions text -->        <#list productPromos as productPromo>            <div class="tabletext"><a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>" class="linktext">[${uiLabelMap.CommonDetails}]</a> ${productPromo.promoText?if_exists}</div>            <#if productPromo_has_next>                <div><hr class="sepbar"/></div>            </#if>        </#list>        <div><hr class="sepbar"/></div>        <div class="tabletext"><a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceViewAllPromotions}</a></div>    </div></div></#if><#if associatedProducts?has_content><div class="screenlet">    <div class="screenlet-header">        <div class="boxhead">&nbsp;${uiLabelMap.EcommerceYouMightAlsoIntrested}:</div>    </div>    <div class="screenlet-body">        <#-- random complementary products -->        <#list associatedProducts as assocProduct>            <div>                ${setRequestAttribute("optProduct", assocProduct)}                ${setRequestAttribute("listIndex", assocProduct_index)}                ${screens.render("component://ecommerce/widget/CatalogScreens.xml#productsummary")}            </div>            <#if assocProduct_has_next>                <div><hr class="sepbar"/></div>            </#if>        </#list>    </div></div></#if><#if (shoppingCartSize?default(0) > 0)>  ${screens.render("component://ecommerce/widget/CartScreens.xml#promoUseDetailsInline")}</#if><!-- Internal cart info: productStoreId=${shoppingCart.getProductStoreId()?if_exists} locale=${shoppingCart.getLocale()?if_exists} currencyUom=${shoppingCart.getCurrency()?if_exists} userLoginId=${(shoppingCart.getUserLogin().getString("userLoginId"))?if_exists} autoUserLogin=${(shoppingCart.getAutoUserLogin().getString("userLoginId"))?if_exists} -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -