| Line 961... |
Line 961... |
| 961 |
cartItem['dealText'] = item.bestDealText
|
961 |
cartItem['dealText'] = item.bestDealText
|
| 962 |
line.dealText = None
|
962 |
line.dealText = None
|
| 963 |
line.freebieId = None
|
963 |
line.freebieId = None
|
| 964 |
cartItem['sellingPrice'] = line.actual_price
|
964 |
cartItem['sellingPrice'] = line.actual_price
|
| 965 |
|
965 |
|
| - |
|
966 |
for dictbulkPricing in cartItem['bulkPricing']:
|
| - |
|
967 |
if dictbulkPricing['quantity'] < cartItem['minBuyQuantity'] or dictbulkPricing['quantity'] > cartItem['maxQuantity']:
|
| - |
|
968 |
cartItem['bulkPricing'].remove(dictbulkPricing)
|
| - |
|
969 |
cartItem['bulkPricing'] = sorted(cartItem['bulkPricing'], key=lambda k: k['quantity'],reverse=True)
|
| - |
|
970 |
|
| 966 |
if item_shipping_info.isActive:
|
971 |
if item_shipping_info.isActive:
|
| 967 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
972 |
cart.total_price = cart.total_price + (line.actual_price * line.quantity)
|
| 968 |
try:
|
973 |
try:
|
| 969 |
item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime
|
974 |
item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime
|
| 970 |
except LogisticsServiceException:
|
975 |
except LogisticsServiceException:
|