From 01df070fa5cff72fc8a9b972a6cdfaaceb387f82 Mon Sep 17 00:00:00 2001 From: Mridul Pathak Date: Tue, 5 Jul 2016 09:04:53 +0000 Subject: [PATCH] [OFBIZ-7297] Migrate promotext.properties to UiLabels. Thanks Suraj Khurana for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751424 13f79535-47bb-0310-9956-ffa450edef68 --- .../product/config/ProductPromoUiLabels.xml | 109 ++++++++++++++++++ .../product/config/promotext.properties | 53 --------- 2 files changed, 109 insertions(+), 53 deletions(-) create mode 100644 applications/product/config/ProductPromoUiLabels.xml delete mode 100644 applications/product/config/promotext.properties diff --git a/applications/product/config/ProductPromoUiLabels.xml b/applications/product/config/ProductPromoUiLabels.xml new file mode 100644 index 0000000000..48590a70e3 --- /dev/null +++ b/applications/product/config/ProductPromoUiLabels.xml @@ -0,0 +1,109 @@ + + + + + is + + + is not + + + invalid + + + invalid + + + invalid + + + invalid + + + exactly + + + anything except + + + less than + + + less than + + + more than + + + more than + + + spend ${quantityOperator} $${condValue} + + + Applied to party classification - ${partyClassificationsIncluded} + + + Not applied to party classification - ${partyClassificationsExcluded} + + + buy ${quantityOperator} $${condValue} of qualifying products + + + for each $${condValue} or more of qualifying products + + + buy ${condValue} of qualifying products + + + if your account is ${quantityOperator} ${condValue} days old + + + if your account ID ${equalityOperator} ${condValue} + + + if your account ${equalityOperator} part of the group with ID ${condValue} + + + if your account ${equalityOperator} in the classification with ID ${condValue} + + + if your account ${equalityOperator} in the role with ID ${condValue} + + + get a free ${productName} [${productId}] + + + get free shipping of type ${productId} on carrier ${partyId} + + + get ${quantity} at ${amount}% discount + + + get ${quantity} at $${amount} off + + + get ${quantity} for $${amount} + + + get ${amount}% off your order + + + get $${amount} off your order + + \ No newline at end of file diff --git a/applications/product/config/promotext.properties b/applications/product/config/promotext.properties deleted file mode 100644 index 7992922efa..0000000000 --- a/applications/product/config/promotext.properties +++ /dev/null @@ -1,53 +0,0 @@ -############################################################################### -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -############################################################################### - -operator.equality.PPC_EQ=is -operator.equality.PPC_NEQ=is not -operator.equality.PPC_LT=invalid -operator.equality.PPC_LTE=invalid -operator.equality.PPC_GT=invalid -operator.equality.PPC_GTE=invalid - -operator.quantity.PPC_EQ=exactly -operator.quantity.PPC_NEQ=anything except -operator.quantity.PPC_LT=less than -operator.quantity.PPC_LTE=less than -operator.quantity.PPC_GT=more than -operator.quantity.PPC_GTE=more than - - -condition.PPIP_ORDER_TOTAL=spend ${quantityOperator} $${condValue} -condition.PPIP_PARTY_CLASS.APPLIED=Applied to party classification - ${partyClassificationsIncluded} -condition.PPIP_PARTY_CLASS.NOT_APPLIED=Not applied to party classification - ${partyClassificationsExcluded} -condition.PPIP_PRODUCT_TOTAL=buy ${quantityOperator} $${condValue} of qualifying products -condition.PPIP_PRODUCT_AMOUNT=for each $${condValue} or more of qualifying products -condition.PPIP_PRODUCT_QUANT=buy ${condValue} of qualifying products -condition.PPIP_NEW_ACCT=if your account is ${quantityOperator} ${condValue} days old -condition.PPIP_PARTY_ID=if your account ID ${equalityOperator} ${condValue} -condition.PPIP_PARTY_GRP_MEM=if your account ${equalityOperator} part of the group with ID ${condValue} -condition.PPIP_PARTY_GRP_MEM=if your account ${equalityOperator} in the classification with ID ${condValue} -condition.PPIP_ROLE_TYPE=if your account ${equalityOperator} in the role with ID ${condValue} - -action.PROMO_GWP=get a free ${productName} [${productId}] -action.PROMO_FREE_SHIPPING=get free shipping of type ${productId} on carrier ${partyId} -action.PROMO_PROD_DISC=get ${quantity} at ${amount}% discount -action.PROMO_PROD_AMDISC=get ${quantity} at $${amount} off -action.PROMO_PROD_PRICE=get ${quantity} for $${amount} -action.PROMO_ORDER_PERCENT=get ${amount}% off your order -action.PROMO_ORDER_AMOUNT=get $${amount} off your order