|
|
@@ -660,15 +660,24 @@
|
|
|
// appDelegate.order_code = order_code;
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadCart:true immediately:false];
|
|
|
NSString * msg = nil;
|
|
|
- if(checked.count==1)
|
|
|
- {
|
|
|
- msg=@"1 item added to Cart";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- msg=[NSString stringWithFormat:@"%lu items added to Cart",(unsigned long)checked.count];
|
|
|
+ if (self.addAll) {
|
|
|
+
|
|
|
+ unsigned long checkedCount = [return_json[@"count"] integerValue];
|
|
|
+
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to Cart",checkedCount];
|
|
|
+ } else {
|
|
|
+
|
|
|
+ if(checked.count==1)
|
|
|
+ {
|
|
|
+ msg=@"1 item added to Cart";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to Cart",(unsigned long)checked.count];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
[RAUtils message_alert:nil title:msg controller:self] ;
|
|
|
|
|
|
[self end_select:2];
|
|
|
@@ -753,13 +762,22 @@
|
|
|
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadPortfolio:true immediately:false];
|
|
|
NSString * msg = nil;
|
|
|
- if(checked.count==1)
|
|
|
- {
|
|
|
- msg=@"1 item added to Portfolio";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- msg=[NSString stringWithFormat:@"%lu items added to Portfolio",(unsigned long)checked.count];
|
|
|
+
|
|
|
+ if (self.addAll) {
|
|
|
+
|
|
|
+ unsigned long checkedCount = [return_json[@"count"] integerValue];
|
|
|
+
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to Portfolio",checkedCount];
|
|
|
+ } else {
|
|
|
+
|
|
|
+ if(checked.count==1)
|
|
|
+ {
|
|
|
+ msg=@"1 item added to Portfolio";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to Portfolio",(unsigned long)checked.count];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[RAUtils message_alert:nil title:msg controller:self] ;
|
|
|
@@ -839,13 +857,22 @@
|
|
|
|
|
|
|
|
|
NSString * msg = nil;
|
|
|
- if(checked.count==1)
|
|
|
- {
|
|
|
- msg=@"1 item added to \nWish List";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- msg=[NSString stringWithFormat:@"%lu items added to \nWish List",(unsigned long)checked.count];
|
|
|
+
|
|
|
+ if (self.addAll) {
|
|
|
+
|
|
|
+ unsigned long checkedCount = [return_json[@"count"] integerValue];
|
|
|
+
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to \nWish List",checkedCount];
|
|
|
+ } else {
|
|
|
+
|
|
|
+ if(checked.count==1)
|
|
|
+ {
|
|
|
+ msg=@"1 item added to \nWish List";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ msg=[NSString stringWithFormat:@"%lu items added to \nWish List",(unsigned long)checked.count];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[RAUtils message_alert:nil title:msg controller:self] ;
|