| Line 887... |
Line 887... |
| 887 |
cartItem['cartItemMessages']=[]
|
887 |
cartItem['cartItemMessages']=[]
|
| 888 |
cartItemMessages = cartItem['cartItemMessages']
|
888 |
cartItemMessages = cartItem['cartItemMessages']
|
| 889 |
cartItem['color'] = item.color
|
889 |
cartItem['color'] = item.color
|
| 890 |
cartItem['catalogItemId'] = item.catalogItemId
|
890 |
cartItem['catalogItemId'] = item.catalogItemId
|
| 891 |
cartItem['packQuantity'] = item.packQuantity
|
891 |
cartItem['packQuantity'] = item.packQuantity
|
| - |
|
892 |
cartItem['minBuyQuantity'] = item.minimumBuyQuantity
|
| - |
|
893 |
cartItem['quantityStep'] = item.quantityStep
|
| 892 |
cartItem['bulkPricing'] = tempBulkItemList
|
894 |
cartItem['bulkPricing'] = tempBulkItemList
|
| 893 |
bulkPrice = None
|
895 |
bulkPrice = None
|
| 894 |
if item_id in bulkPricingItems:
|
896 |
if item_id in bulkPricingItems:
|
| 895 |
#Check quantity qualifies or not
|
897 |
#Check quantity qualifies or not
|
| 896 |
bulkPricingList = bulkPricingMap.get(item_id)
|
898 |
bulkPricingList = bulkPricingMap.get(item_id)
|
| Line 931... |
Line 933... |
| 931 |
if item_shipping_info.isRisky and item_shipping_info.quantity < line.quantity:
|
933 |
if item_shipping_info.isRisky and item_shipping_info.quantity < line.quantity:
|
| 932 |
line.quantity = item_shipping_info.quantity
|
934 |
line.quantity = item_shipping_info.quantity
|
| 933 |
itemQuantityChanged=True
|
935 |
itemQuantityChanged=True
|
| 934 |
cartItem['quantity'] = line.quantity
|
936 |
cartItem['quantity'] = line.quantity
|
| 935 |
cartItem['maxQuantity'] = min(item_shipping_info.quantity, 20)
|
937 |
cartItem['maxQuantity'] = min(item_shipping_info.quantity, 20)
|
| - |
|
938 |
if item.maximumBuyQuantity is not None and item.maximumBuyQuantity >0:
|
| - |
|
939 |
cartItem['maxQuantity'] = min(cartItem['maxQuantity'], item.maximumBuyQuantity)
|
| 936 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
940 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
| 937 |
try:
|
941 |
try:
|
| 938 |
item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime
|
942 |
item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime
|
| 939 |
except LogisticsServiceException:
|
943 |
except LogisticsServiceException:
|
| 940 |
item_delivery_estimate = -1
|
944 |
item_delivery_estimate = -1
|