- Finalised Listing of CartList - Added pull to refresh and swipe to delete - Handled manual delete on icon click - Made CouponCart listing view controller - Added api to fetch the coupons - Added api to apply coupon with model - Made a coupon discount stack , will show up
37 lines
1.0 KiB
Swift
37 lines
1.0 KiB
Swift
//
|
|
// CartPaymentOptionsCell.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 23/07/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class CartPaymentOptionsCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var productTitle: LocalisedElementsLabel!
|
|
@IBOutlet weak var productPrice: LocalisedElementsLabel!
|
|
@IBOutlet weak var productImage: UIImageView!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
self.backgroundColor = .clear
|
|
// Initialization code
|
|
}
|
|
|
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
|
super.setSelected(selected, animated: animated)
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
func setData(data : CartListingDM.ResultData){
|
|
self.productTitle.text = data.productName ?? "NA"
|
|
self.productPrice.text = K.ConstantString.rupeeSign + " " + (data.productFinalPrice?.toString() ?? "0.0")
|
|
|
|
if let imageURL = data.shopImage?.first{
|
|
self.productImage.imageURL(imageURL, color: UIColor.appColor(.TextDarkBlue)!)
|
|
}
|
|
}
|
|
}
|