Subversion Repositories SmartDukaan

Rev

Rev 11533 | Rev 11627 | 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/
11169 lgm 14
$config['home']= array('header'=>array('top_menu','search_bar'),'response'=>array('home_banner','home_featured_product','recommended_accessories','home_menu'),'footer'=>array('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
 
11171 lgm 21
$config['oauth_login']= array('header'=>array('top_menu','search_bar'),'response'=>array('login_process','login'),'footer'=>array('footer_link'));
22
$config['oauth_signup']= array('header'=>array('top_menu','search_bar'),'response'=>array('signup_process','signup'),'footer'=>array('footer_link'));
10582 lgm 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
 
10843 lgm 28
$config['faq']= array('header'=>array('top_menu','search_bar'),'response'=>array('faq_list'),'footer'=>array('footer_link'));
29
$config['faq_list']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
30
 
10582 lgm 31
//recharge
32
$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'));
33
$config['service']= array('header'=>array(),'response'=>array('service_provider'),'footer'=>array());
34
$config['denominations']= array('header'=>array(),'response'=>array('mobile_denominations'),'footer'=>array());
35
$config['rechargeAmount']= array('header'=>array(),'response'=>array('recharge_amount'),'footer'=>array());
36
$config['rechargeConfirm']= array('header'=>array(),'response'=>array('recharge_confirm'),'footer'=>array());
37
$config['rechargePayOptions']= array('header'=>array('top_menu','search_bar'),'response'=>array('recharge_payOptions','recharge_paymentSubmit'),'footer'=>array('footer_link'));
38
$config['rechargeOrderConfirmation']= array('header'=>array('top_menu','search_bar'),'response'=>array('recharge_orderconfirmation'),'footer'=>array('footer_link'));
39
$config['rechargeFaq']= array('header'=>array('top_menu','search_bar'),'response'=>array('home_banner','recharge_faq'),'footer'=>array('footer_link'));
10889 lgm 40
$config['hdfcRecahrgeResponse']= array('header'=>array(),'response'=>array('hdfc_recharge_response'),'footer'=>array());
10582 lgm 41
//sub child of recharge
42
	$config['recharge_list']=array('url' =>array(), 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
43
	$config['recharge_confirmation']=array('url' =>'recharge!getUserForRecharge', 'params'=>array('email'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
44
	$config['mobile_operator']=array('url' => 'recharge!getAllMobileOperators', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
45
	$config['dth_operator']=array('url' => 'recharge!getAllDthOperators', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
46
	$config['plan_map']=array('url' => 'recharge!getPlanMapInJson', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
47
	$config['service_provider']=array('url' => 'recharge!getServiceProvider', 'params'=>array('deviceNumber','userId','isLoggedIn','serviceType'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
48
	$config['mobile_denominations']=array('url' => 'recharge!getAllDenominations', 'params'=>array('operatorId','userId','isLoggedIn','circleCode','denominationType'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
49
	$config['recharge_amount']=array('url' => 'recharge!getRechargeAmounts', 'params'=>array('rechargeAmount','userId','isLoggedIn','couponCode'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
50
	$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');
51
	$config['recharge_payOptions']=array('url' => 'recharge-pay-options', 'params'=>array('rechargeOrderId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
52
	$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');
53
	$config['zero_payrecharge']=array('url' => 'zero-pay-recharge', 'params'=>array('rechargeOrderId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
54
	$config['recharge_orderconfirmation']=array('url' => 'recharge-result', 'params'=>array('paymentId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
55
	$config['recharge_faq']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
10889 lgm 56
	$config['hdfc_recharge_response']=array('url' => 'hdfc-recharge-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
10582 lgm 57
//cart
11517 lgm 58
$config['cart']= array('header'=>array('top_menu','search_bar'),'response'=>array('cart_empty','carts'),'footer'=>array('footer_link'));
10582 lgm 59
$config['cart_add']= array('header'=>array(),'response'=>array('addcart'),'footer'=>array());
60
$config['cart_update']= array('header'=>array(),'response'=>array('updatecart'),'footer'=>array());
61
$config['cart_delete']= array('header'=>array(),'response'=>array('deletecart'),'footer'=>array());
62
$config['cart_coupon']= array('header'=>array(),'response'=>array('cartcoupon'),'footer'=>array());
63
$config['cart_couponclear']= array('header'=>array(),'response'=>array('cartcouponclear'),'footer'=>array());
64
$config['cart_insure']= array('header'=>array(),'response'=>array('cartinsure'),'footer'=>array());
65
//sub child of carts
66
	$config['updatecart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
67
	$config['addcart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
68
	$config['deletecart']=array('url' => 'cart', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
69
	$config['cartcoupon']=array('url' => 'edit', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
70
	$config['cartcouponclear']=array('url' => 'edit', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
71
	$config['cartinsure']=array('url' => 'cart!insureItem', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
72
 
73
/*checkout process**/
74
$config['billing']= array('header'=>array('top_menu','search_bar'),'response'=>array('billing_process'),'footer'=>array('social_bar','footer_link'));
11072 lgm 75
$config['orderconfirmation']= array('header'=>array('top_menu','search_bar'),'response'=>array('orderconfirmation_process'),'footer'=>array('footer_link'));
76
$config['paymenterror']= array('header'=>array('top_menu','search_bar'),'response'=>array('payment_error'),'footer'=>array('footer_link'));
77
$config['shipping']= array('header'=>array('top_menu','search_bar'),'response'=>array('shipping_process','pickup','carts'),'footer'=>array('footer_link'));
10582 lgm 78
$config['shipping_delete']= array('header'=>array(),'response'=>array('deleteAddress'),'footer'=>array());
79
$config['shipping_change']= array('header'=>array(),'response'=>array('changeAddress'),'footer'=>array());
11072 lgm 80
$config['shippingmethod']= array('header'=>array('top_menu','search_bar'),'response'=>array('shippingmethod_process','shippingmethod_submit'),'footer'=>array('footer_link'));
81
$config['payment']= array('header'=>array('top_menu','search_bar'),'response'=>array('payment_process','emi','payment_submit'),'footer'=>array('footer_link'));
10582 lgm 82
$config['ebsProcessing']= array('header'=>array(),'response'=>array('ebs_processing'),'footer'=>array());
83
$config['ebsResponse']= array('header'=>array(),'response'=>array('ebs_response'),'footer'=>array());
10889 lgm 84
$config['hdfcResponse']= array('header'=>array(),'response'=>array('hdfc_response'),'footer'=>array());
85
$config['hdfcEmiResponse']= array('header'=>array(),'response'=>array('hdfc_emi_response'),'footer'=>array());
10582 lgm 86
$config['innovitiResponse']= array('header'=>array(),'response'=>array('innoviti_response'),'footer'=>array());
87
$config['insurance_info']= array('header'=>array(),'response'=>array('insuranceInfo'),'footer'=>array());
88
//sub child of checkout
89
	$config['billing_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
90
	$config['orderconfirmation_process']=array('url' => 'pay-success', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
91
	$config['payment_error']=array('url' => '', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
92
	$config['shipping_process']=array('url' => 'address', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
93
	$config['deleteAddress']=array('url' => 'address!destroy', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
94
	$config['changeAddress']=array('url' => 'cart!changeAddress', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
95
	$config['payment_process']=array('url' => 'pay-options', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
96
	$config['payment_submit']=array('url' => 'order', 'params'=>array('isLoggedIn','userId','payment_option','addressid'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
97
	$config['ebs_processing']=array('url' => 'ebs-pay-processing', 'params'=>array('DR','userId','isLoggedIn'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');	
98
	$config['ebs_response']=array('url' => 'ebs-pay-response', 'params'=>array('DR','userId','isLoggedIn'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');	
99
	$config['hdfc_response']=array('url' => 'hdfc-pay-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
10889 lgm 100
	$config['hdfc_emi_response']=array('url' => 'hdfc-emi-pay-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
10582 lgm 101
	$config['innoviti_response']=array('url' => 'innoviti-pay-response', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
11525 lgm 102
	$config['emi']=array('url' => 'emi-schemes', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
10582 lgm 103
	$config['insuranceInfo']=array('url' => 'address!storeInsuranceDetails', 'params'=>array('dob','addressId','guardianName'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
104
 
105
/*myaccount**/
106
$config['contactUs']= array('header'=>array('top_menu','search_bar'),'response'=>array('contact_us'),'footer'=>array('footer_link'));
107
$config['myaccount']= array('header'=>array('top_menu','search_bar'),'response'=>array('account'),'footer'=>array('footer_link'));
108
$config['completed-orders']= array('header'=>array('top_menu','search_bar'),'response'=>array('closed'),'footer'=>array('footer_link'));
109
$config['order']= array('header'=>array('top_menu','search_bar'),'response'=>array('order_details'),'footer'=>array('footer_link'));
110
$config['failed-orders']= array('header'=>array('top_menu','search_bar'),'response'=>array('failed'),'footer'=>array('footer_link'));
111
$config['mypurchases']= array('header'=>array('top_menu','search_bar'),'response'=>array('purchases'),'footer'=>array('footer_link'));
112
$config['personal-details']= array('header'=>array('top_menu','search_bar'),'response'=>array('details'),'footer'=>array('footer_link'));
113
$config['my-wallet']= array('header'=>array('top_menu','search_bar'),'response'=>array('wallet'),'footer'=>array('footer_link'));
114
$config['my-recharges']= array('header'=>array('top_menu','search_bar'),'response'=>array('myrecharges'),'footer'=>array('footer_link'));
115
 
116
/* 
117
 * ----------------------------------------------------------------------
118
 * PARAMS FOR HOME PAGE
119
 * ----------------------------------------------------------------------
120
 */
121
$config['home_banner']=array('url' => 'banner', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
122
$config['top_menu']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
123
$config['home_featured_product']=array('url' => 'featured-list', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
124
$config['recommended_accessories']=array('url' => 'recommended-accessories', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
125
$config['home_menu']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
126
$config['auto_suggest']=array('url' => 'auto-suggest', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
127
 
128
/*
129
 * ----------------------------------------------------------------------
130
 * PARAMS FOR PRODUCT PAGE
131
 * ----------------------------------------------------------------------
132
 */
133
//$config['filter']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]');
134
$config['product_list']=array('url' => 'category', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
135
$config['special_page']=array('url' => 'special-page', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
136
$config['coming_soon']=array('url' => 'coming-soon', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
137
$config['best_deals']=array('url' => 'best-deals', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
138
$config['search_list']=array('url' => 'search', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
139
$config['estimate_delivery']=array('url' => 'estimate', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
140
$config['anonymous']=array('url' => 'anonymous-user', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
141
$config['pickup']=array('url' => 'pickup-store', 'params'=>array(''),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
142
/*
143
 * ----------------------------------------------------------------------
144
 * PARAMS FOR PRODUCT INFO PAGE
145
 * ----------------------------------------------------------------------
146
 */
147
$config['product_details']=array('url' => 'entity', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'','render'=>'yes');
148
 
149
/*
150
 * ----------------------------------------------------------------------
151
 * PARAMS FOR AUTHORIZATION PAGE
152
 * ----------------------------------------------------------------------
153
 */
154
$config['login']=array('url' => 'login', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
155
$config['signup']=array('url' => 'register', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
156
$config['forgotpassword']=array('url' => 'forgot-password', 'params'=>array('email'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
157
 
158
/*
159
 * ----------------------------------------------------------------------
160
 * PARAMS FOR Cart PAGE
161
 * ----------------------------------------------------------------------
162
 */
163
$config['carts']=array('url' => 'cart', 'params'=>array('isLoggedIn','userId','Id'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
164
 
165
/*
166
 * ----------------------------------------------------------------------
167
 * PARAMS FOR TrackOrder PAGE
168
 * ----------------------------------------------------------------------
169
 */
170
$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');
171
$config['account']=array('url' => 'open-orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
172
$config['closed']=array('url' => 'order', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
173
$config['order_details']=array('url' => 'order', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
174
$config['failed']=array('url' => 'failed-orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
175
$config['purchases']=array('url' => 'purchases', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
176
$config['details']=array('url' => 'personal-details', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
177
$config['wallet']=array('url' => 'wallet', 'params'=>array('isLoggedIn','userId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
178
$config['myrecharges']=array('url' => 'my-recharges', 'params'=>array('isLoggedIn','userId'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
179
$config['contact']=array('url' => 'contact-us', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
180
$config['modifyAddress']=array('url' => 'order!modifyAddress', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
181
$config['returnProduct']=array('url' => 'contact-us/to_return', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
182
$config['cancelOrder']=array('url' => 'contact-us/to_cancel', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
183
$config['deliveryProblem']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
184
$config['paymentStatus']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
185
$config['orderStatus']=array('url' => 'contact-us/all_orders', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
186
 
187
 
10843 lgm 188
 
189
 
10582 lgm 190
$config['authentication_bar']=array('render'=>'yes');
191
$config['subscribe_bar']=array('render'=>'yes');
192
$config['social_bar']=array('render'=>'yes');
11171 lgm 193
$config['login_process']=array('render'=>'yes');
194
$config['signup_process']=array('render'=>'yes');
11517 lgm 195
$config['cart_empty']=array('display'=>'full','render'=>'yes');
10582 lgm 196
$config['footer_link']=array('render'=>'yes');
197
$config['search_bar']=array('render'=>'yes');
10719 lgm 198
$config['recharge_icons']=array('render'=>'yes');
10582 lgm 199
$config['limit'] = 10;
200
$config['insurance'] = 1.5;
201
$config['topup-special'] = array(6,7,19,17);
202
$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 :");
203
$config['username'] = array('letsgomo','shop2020');
204
$config['password'] = array('reddevil','letsgomo123');
205
$config['cdn_version'] = 1;
11538 anikendra 206
$config['email_list'] = array('amit.gupta.com');
207
$config['email_params'] = array('protocol'  => 'smtp','smtp_host' => 'ssl://smtp.gmail.com','smtp_port' => 465,'smtp_user' => 'mobile@letsgomo.com','smtp_pass' => 'turbo124','charset'   => 'utf-8','Content-Type' =>'text/html');