Item card Price display issue
This commit is contained in:
parent
b6e76336a4
commit
da2b8ca938
|
|
@ -5182,7 +5182,7 @@ const BSItemCard = (props) => {
|
||||||
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
||||||
return (
|
return (
|
||||||
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
||||||
?.OnePcsPrice || null
|
?.OnePcsPrice || 0
|
||||||
);
|
);
|
||||||
// OnePcsPrice
|
// OnePcsPrice
|
||||||
}
|
}
|
||||||
|
|
@ -5200,7 +5200,7 @@ const BSItemCard = (props) => {
|
||||||
return firstVariantDetails;
|
return firstVariantDetails;
|
||||||
} else {
|
} else {
|
||||||
// Handle the case where no variant satisfies the condition
|
// Handle the case where no variant satisfies the condition
|
||||||
return null; // or any other value you want to return
|
return 0; // or any other value you want to return
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const ItemMRP = (item) => {
|
const ItemMRP = (item) => {
|
||||||
|
|
@ -5209,7 +5209,7 @@ const BSItemCard = (props) => {
|
||||||
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
||||||
return (
|
return (
|
||||||
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
||||||
?.OnePcsPrice || null
|
?.OnePcsPrice || 0
|
||||||
);
|
);
|
||||||
// OnePcsPrice
|
// OnePcsPrice
|
||||||
}
|
}
|
||||||
|
|
@ -5227,7 +5227,7 @@ const BSItemCard = (props) => {
|
||||||
return firstVariantDetails;
|
return firstVariantDetails;
|
||||||
} else {
|
} else {
|
||||||
// Handle the case where no variant satisfies the condition
|
// Handle the case where no variant satisfies the condition
|
||||||
return null; // or any other value you want to return
|
return 0; // or any other value you want to return
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const ItemSize = (item) => {
|
const ItemSize = (item) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue