|
@@ -201,8 +201,12 @@
|
|
|
{{
|
|
|
adultCount * adultUnitPrice +
|
|
|
childCount * childUnitPrice +
|
|
|
- infantCount * infantUnitPrice
|
|
|
+ infantCount * infantUnitPrice +
|
|
|
+ (adultCount % 2 == 0 ? 0 : singleDiffPrice)
|
|
|
}}
|
|
|
+ <lable v-if="adultCount % 2 != 0 && singleDiffPrice > 0"
|
|
|
+ >(Include single room difference:{{ singleDiffPrice }})</lable
|
|
|
+ >
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="
|
|
@@ -296,6 +300,7 @@ export default {
|
|
|
const filteredSkuIndex = ref([]);
|
|
|
const activeIndex = ref(0);
|
|
|
const adultUnitPrice = ref(0);
|
|
|
+ const singleDiffPrice = ref(0);
|
|
|
const generalPrice = ref(0);
|
|
|
const childUnitPrice = ref(0);
|
|
|
const infantUnitPrice = ref(0);
|
|
@@ -318,6 +323,7 @@ export default {
|
|
|
const GENERALPRICE = "e16df480-b17d-4442-91c2-d6c30d0d7ab0";
|
|
|
const ADULTPRICEPROP = "e228b843-e054-41f8-91dd-19663460df54";
|
|
|
const CHILDPRICEPROP = "c4c845a7-4bef-46d8-a5ad-d72a5464e8b1";
|
|
|
+ const SINGLEDIFFPRICEPROP = "d4825026-3ad8-4861-8e8f-e980b55fe67b";
|
|
|
const INFANTPRICEPROP = "448406cb-b68f-439e-9da8-148d78ae8404";
|
|
|
const SHORTDESCRIPTIONPROP = "f3cac6ed-8e87-4fb9-a912-bd87f483b4d5";
|
|
|
|
|
@@ -602,6 +608,10 @@ export default {
|
|
|
sku,
|
|
|
ADULTPRICEPROP
|
|
|
);
|
|
|
+ singleDiffPrice.value = extractAttributeValueFromProductPropertyBag(
|
|
|
+ sku,
|
|
|
+ SINGLEDIFFPRICEPROP
|
|
|
+ );
|
|
|
childUnitPrice.value = extractAttributeValueFromProductPropertyBag(
|
|
|
sku,
|
|
|
CHILDPRICEPROP
|
|
@@ -810,6 +820,7 @@ export default {
|
|
|
childCount,
|
|
|
infantCount,
|
|
|
adultUnitPrice,
|
|
|
+ singleDiffPrice,
|
|
|
childUnitPrice,
|
|
|
infantUnitPrice,
|
|
|
generalPrice,
|