| Line 934... |
Line 934... |
| 934 |
line.quantity = item_shipping_info.quantity
|
934 |
line.quantity = item_shipping_info.quantity
|
| 935 |
itemQuantityChanged=True
|
935 |
itemQuantityChanged=True
|
| 936 |
cartItem['quantity'] = line.quantity
|
936 |
cartItem['quantity'] = line.quantity
|
| 937 |
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:
|
938 |
if item.maximumBuyQuantity is not None and item.maximumBuyQuantity >0:
|
| 939 |
cartItem['maxQuantity'] = min(cartItem['maxQuantity'], item.maximumBuyQuantity)
|
939 |
cartItem['maxQuantity'] = min(item_shipping_info.quantity, item.maximumBuyQuantity)
|
| 940 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
940 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
| 941 |
try:
|
941 |
try:
|
| 942 |
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
|
| 943 |
except LogisticsServiceException:
|
943 |
except LogisticsServiceException:
|
| 944 |
item_delivery_estimate = -1
|
944 |
item_delivery_estimate = -1
|