Subversion Repositories SmartDukaan

Rev

Rev 10719 | Rev 10843 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10582 lgm 1
<?php
2
/*
3
 * ----------------------------------------------------------------------
4
 * PARAMS FOR CURL REQUEST
5
 * STANDARD FUNCTION : HEADER : TOP_MENU, SEARCH_BAR, BREADCRUMB || FOOTER : AUTHENTICATION_BAR,SUBSCRIBE_BAR,SOCIAL_BAR,FOOTER_LINK
6
 * HOME : HOME_BANNER,HOME_FEATURED_PRODUCT,HOME_MENU
7
 * PRODUCT LIST : PRODUCT_LIST
8
 * PRODUCT INFO : PRODUCT_DETAILS
9
 * SEARCH : PRODUCT_SEARCH
10
 * ----------------------------------------------------------------------
11
 */
12
//http://173.255.251.247:18080
13
$config['curl_base_url'] = 'http://www.shop2020.in:8080/mobileapi/';//'http://180.179.212.93/presta/prestashop/api/'; //localhost : http://localhost/2013/prestashop/api/
10719 lgm 14
$config['home']= array('header'=>array('top_menu','search_bar'),'response'=>array('home_banner','recharge_icons','home_featured_product','recommended_accessories','home_menu'),'footer'=>array('social_bar','footer_link'));
10582 lgm 15
 
16
$config['productlist']= array('header'=>array('top_menu','search_bar'),'response'=>array('product_list','special_page','coming_soon','best_deals'),'footer'=>array('footer_link'));
17
$config['searchlist']= array('header'=>array('top_menu','search_bar'),'response'=>array('search_list'),'footer'=>array('footer_link'));
18
 
19
$config['productinfo']= array('header'=>array('top_menu','search_bar'),'response'=>array('product_details'),'footer'=>array('footer_link'));
20
 
21
$config['oauth_login']= array('header'=>array('top_menu','search_bar'),'response'=>array('login'),'footer'=>array('footer_link'));
22
$config['oauth_signup']= array('header'=>array('top_menu','search_bar'),'response'=>array('signup'),'footer'=>array('footer_link'));
23
$config['oauth_forgetpassword']= array('header'=>array('top_menu','search_bar'),'response'=>array('forgotpassword'),'footer'=>array('social_bar','footer_link'));
24
//social integration
25
$config['oauth_social']['facebook']=array('id'=>'297759993685863','secretkey'=>'981be17e9fb442c0968a4e6bb18f099a');
26
//$config['oauth_social']['google']=array('id'=>'482999149520-ugui554gp6ts42a9sa1kv59id149k97t.apps.googleusercontent.com','secretkey'=>'h0KYlU9a7fdzqm0HUqaxze6r');
27
 
28
//recharge
29
$config['recharge']= array('header'=>array('top_menu','search_bar'),'response'=>array('recharge_list','mobile_operator','dth_operator','plan_map','recharge_confirmation','recharge_amount'),'footer'=>array('footer_link'));
30
$config['service']= array('header'=>array(),'response'=>array('service_provider'),'footer'=>array());
31
$config['denominations']= array('header'=>array(),'response'=>array('mobile_denominations'),'footer'=>array());
32
$config['rechargeAmount']= array('header'=>array(),'response'=>array('recharge_amount'),'footer'=>array());
33
$config['rechargeConfirm']= array('header'=>array(),'response'=>array('recharge_confirm'),'footer'=>array());
34
$config['rechargePayOptions']= array('header'=>array('top_menu','search_bar'),'response'=>array('recharge_payOptions','recharge_paymentSubmit'),'footer'=>array('footer_link'));
35
$config['rechargeOrderConfirmation']= array('header'=>array('top_menu','search_bar'),'response'=>array('recharge_orderconfirmation'),'footer'=>array('footer_link'));
36
$config['rechargeFaq']= array('header'=>array('top_menu','search_bar'),'response'=>array('home_banner','recharge_faq'),'footer'=>array('footer_link'));
37
//sub child of recharge
38
	$config['recharge_list']=array('url' =>array(), 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
39
	$config['recharge_confirmation']=array('url' =>'recharge!getUserForRecharge', 'params'=>array('email'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
40
	$config['mobile_operator']=array('url' => 'recharge!getAllMobileOperators', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
41
	$config['dth_operator']=array('url' => 'recharge!getAllDthOperators', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
42
	$config['plan_map']=array('url' => 'recharge!getPlanMapInJson', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
43
	$config['service_provider']=array('url' => 'recharge!getServiceProvider', 'params'=>array('deviceNumber','userId','isLoggedIn','serviceType'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
44
	$config['mobile_denominations']=array('url' => 'recharge!getAllDenominations', 'params'=>array('operatorId','userId','isLoggedIn','circleCode','denominationType'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
45
	$config['recharge_amount']=array('url' => 'recharge!getRechargeAmounts', 'params'=>array('rechargeAmount','userId','isLoggedIn','couponCode'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
46
	$config['recharge_confirm']=array('url' => 'recharge!createRecharge', 'params'=>array('operatorId','serviceType','rechargeAmount','userId','rechargeUserId','isLoggedIn','couponCode','ipAddress','plan','email','number'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
47
	$config['recharge_payOptions']=array('url' => 'recharge-pay-options', 'params'=>array('rechargeOrderId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
48
	$config['recharge_paymentSubmit']=array('url' => 'recharge-payment', 'params'=>array('rechargeOrderId','payment_option','name','line1','line2','city','state','pincode','phone'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
49
	$config['zero_payrecharge']=array('url' => 'zero-pay-recharge', 'params'=>array('rechargeOrderId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
50
	$config['recharge_orderconfirmation']=array('url' => 'recharge-result', 'params'=>array('paymentId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
51
	$config['recharge_faq']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
52
//cart
10754 lgm 53
$config['cart']= array('header'=>array('top_menu','search_bar'),'response'=>array('carts'),'footer'=>array('footer_link'));
10582 lgm 54
$config['cart_add']= array('header'=>array(),'response'=>array('addcart'),'footer'=>array());
55
$config['cart_update']= array('header'=>array(),'response'=>array('updatecart'),'footer'=>array());
56
$config['cart_delete']= array('header'=>array(),'response'=>array('deletecart'),'footer'=>array());
57
$config['cart_coupon']= array('header'=>array(),'response'=>array('cartcoupon'),'footer'=>array());
58
$config['cart_couponclear']= array('header'=>array(),'response'=>array('cartcouponclear'),'footer'=>array());
59
$config['cart_insure']= array('header'=>array(),'response'=>array('cartinsure'),'footer'=>array());
60
//sub child of carts
61
	$config['updatecart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
62
	$config['addcart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
63
	$config['deletecart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
64
	$config['cartcoupon']=array('url' => 'edit', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
65
	$config['cartcouponclear']=array('url' => 'edit', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
66
	$config['cartinsure']=array('url' => 'cart!insureItem', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
67
 
68
/*checkout process**/
69
$config['billing']= array('header'=>array('top_menu','search_bar'),'response'=>array('billing_process'),'footer'=>array('social_bar','footer_link'));
70
$config['orderconfirmation']= array('header'=>array('top_menu','search_bar'),'response'=>array('orderconfirmation_process'),'footer'=>array('social_bar','footer_link'));
71
$config['paymenterror']= array('header'=>array('top_menu','search_bar'),'response'=>array('payment_error'),'footer'=>array('social_bar','footer_link'));
72
$config['shipping']= array('header'=>array('top_menu','search_bar'),'response'=>array('shipping_process','pickup','carts'),'footer'=>array('social_bar','footer_link'));
73
$config['shipping_delete']= array('header'=>array(),'response'=>array('deleteAddress'),'footer'=>array());
74
$config['shipping_change']= array('header'=>array(),'response'=>array('changeAddress'),'footer'=>array());
75
$config['shippingmethod']= array('header'=>array('top_menu','search_bar'),'response'=>array('shippingmethod_process','shippingmethod_submit'),'footer'=>array('social_bar','footer_link'));
76
$config['payment']= array('header'=>array('top_menu','search_bar'),'response'=>array('payment_process','emi','payment_submit'),'footer'=>array('social_bar','footer_link'));
77
$config['ebsProcessing']= array('header'=>array(),'response'=>array('ebs_processing'),'footer'=>array());
78
$config['ebsResponse']= array('header'=>array(),'response'=>array('ebs_response'),'footer'=>array());
79
$config['hdfcResponse']= array('header'=>array(),'response'=>array('ebs_response'),'footer'=>array());
80
$config['innovitiResponse']= array('header'=>array(),'response'=>array('innoviti_response'),'footer'=>array());
81
$config['insurance_info']= array('header'=>array(),'response'=>array('insuranceInfo'),'footer'=>array());
82
//sub child of checkout
83
	$config['login_process']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
84
	$config['billing_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
85
	$config['orderconfirmation_process']=array('url' => 'pay-success', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
86
	$config['payment_error']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
87
	$config['shipping_process']=array('url' => 'address', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
88
	$config['deleteAddress']=array('url' => 'address!destroy', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
89
	$config['changeAddress']=array('url' => 'cart!changeAddress', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
90
	$config['payment_process']=array('url' => 'pay-options', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
91
	$config['payment_submit']=array('url' => 'order', 'params'=>array('isLoggedIn','userId','payment_option','addressid'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
92
	$config['ebs_processing']=array('url' => 'ebs-pay-processing', 'params'=>array('DR','userId','isLoggedIn'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');	
93
	$config['ebs_response']=array('url' => 'ebs-pay-response', 'params'=>array('DR','userId','isLoggedIn'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');	
94
	$config['hdfc_response']=array('url' => 'hdfc-pay-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
95
	$config['innoviti_response']=array('url' => 'innoviti-pay-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
96
	$config['emi']=array('url' => 'emi-schemes', 'params'=>array(''),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
97
	$config['insuranceInfo']=array('url' => 'address!storeInsuranceDetails', 'params'=>array('dob','addressId','guardianName'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
98
 
99
/*myaccount**/
100
$config['contactUs']= array('header'=>array('top_menu','search_bar'),'response'=>array('contact_us'),'footer'=>array('footer_link'));
101
$config['myaccount']= array('header'=>array('top_menu','search_bar'),'response'=>array('account'),'footer'=>array('footer_link'));
102
$config['completed-orders']= array('header'=>array('top_menu','search_bar'),'response'=>array('closed'),'footer'=>array('footer_link'));
103
$config['order']= array('header'=>array('top_menu','search_bar'),'response'=>array('order_details'),'footer'=>array('footer_link'));
104
$config['failed-orders']= array('header'=>array('top_menu','search_bar'),'response'=>array('failed'),'footer'=>array('footer_link'));
105
$config['mypurchases']= array('header'=>array('top_menu','search_bar'),'response'=>array('purchases'),'footer'=>array('footer_link'));
106
$config['personal-details']= array('header'=>array('top_menu','search_bar'),'response'=>array('details'),'footer'=>array('footer_link'));
107
$config['my-wallet']= array('header'=>array('top_menu','search_bar'),'response'=>array('wallet'),'footer'=>array('footer_link'));
108
$config['my-recharges']= array('header'=>array('top_menu','search_bar'),'response'=>array('myrecharges'),'footer'=>array('footer_link'));
109
 
110
/* 
111
 * ----------------------------------------------------------------------
112
 * PARAMS FOR HOME PAGE
113
 * ----------------------------------------------------------------------
114
 */
115
$config['home_banner']=array('url' => 'banner', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
116
$config['top_menu']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
117
$config['home_featured_product']=array('url' => 'featured-list', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
118
$config['recommended_accessories']=array('url' => 'recommended-accessories', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
119
$config['home_menu']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
120
$config['auto_suggest']=array('url' => 'auto-suggest', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
121
 
122
/*
123
 * ----------------------------------------------------------------------
124
 * PARAMS FOR PRODUCT PAGE
125
 * ----------------------------------------------------------------------
126
 */
127
//$config['filter']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]');
128
$config['product_list']=array('url' => 'category', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
129
$config['special_page']=array('url' => 'special-page', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
130
$config['coming_soon']=array('url' => 'coming-soon', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
131
$config['best_deals']=array('url' => 'best-deals', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
132
$config['search_list']=array('url' => 'search', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
133
$config['estimate_delivery']=array('url' => 'estimate', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
134
$config['anonymous']=array('url' => 'anonymous-user', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
135
$config['pickup']=array('url' => 'pickup-store', 'params'=>array(''),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
136
/*
137
 * ----------------------------------------------------------------------
138
 * PARAMS FOR PRODUCT INFO PAGE
139
 * ----------------------------------------------------------------------
140
 */
141
$config['product_details']=array('url' => 'entity', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
142
 
143
/*
144
 * ----------------------------------------------------------------------
145
 * PARAMS FOR AUTHORIZATION PAGE
146
 * ----------------------------------------------------------------------
147
 */
148
$config['login']=array('url' => 'login', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
149
$config['signup']=array('url' => 'register', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
150
$config['forgotpassword']=array('url' => 'forgot-password', 'params'=>array('email'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
151
 
152
/*
153
 * ----------------------------------------------------------------------
154
 * PARAMS FOR Cart PAGE
155
 * ----------------------------------------------------------------------
156
 */
157
$config['carts']=array('url' => 'cart', 'params'=>array('isLoggedIn','userId','Id'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
158
 
159
/*
160
 * ----------------------------------------------------------------------
161
 * PARAMS FOR TrackOrder PAGE
162
 * ----------------------------------------------------------------------
163
 */
164
$config['contact_us']=array('url' => 'contact-us', 'params'=>array('communication_type','order_id','message','subject','userId','isLoggedIn','email'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
165
$config['account']=array('url' => 'open-orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
166
$config['closed']=array('url' => 'order', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
167
$config['order_details']=array('url' => 'order', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
168
$config['failed']=array('url' => 'failed-orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
169
$config['purchases']=array('url' => 'purchases', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
170
$config['details']=array('url' => 'personal-details', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
171
$config['wallet']=array('url' => 'wallet', 'params'=>array('isLoggedIn','userId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
172
$config['myrecharges']=array('url' => 'my-recharges', 'params'=>array('isLoggedIn','userId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
173
$config['contact']=array('url' => 'contact-us', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
174
$config['modifyAddress']=array('url' => 'order!modifyAddress', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
175
$config['returnProduct']=array('url' => 'contact-us/to_return', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
176
$config['cancelOrder']=array('url' => 'contact-us/to_cancel', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
177
$config['deliveryProblem']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
178
$config['paymentStatus']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
179
$config['orderStatus']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
180
 
181
 
182
$config['authentication_bar']=array('render'=>'yes');
183
$config['subscribe_bar']=array('render'=>'yes');
184
$config['social_bar']=array('render'=>'yes');
185
$config['footer_link']=array('render'=>'yes');
186
$config['search_bar']=array('render'=>'yes');
10719 lgm 187
$config['recharge_icons']=array('render'=>'yes');
10582 lgm 188
$config['limit'] = 10;
189
$config['insurance'] = 1.5;
190
$config['topup-special'] = array(6,7,19,17);
191
$config['DthIdAliasMap'] = array(0 => "Account Number :",1=>"VC Number :",2=>"Smart Card Number :",3=>"Smart Card Number :",4=>"Subscriber Id :",5=>"Customer Id :",26=>"Customer Id :");
192
$config['username'] = array('letsgomo','shop2020');
193
$config['password'] = array('reddevil','letsgomo123');
194
$config['cdn_version'] = 1;
195
 
196