| 12694 |
anikendra |
1 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
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 |
$config['curl_base_url'] = 'http://180.179.212.93/presta/prestashop/api/';//'http://180.179.212.93/presta/prestashop/api/'; //localhost : http://localhost/2013/prestashop/api/
|
|
|
13 |
$config['apikey']='QT3VL25HYK7GPKK1O29E80ABAKCG544S'; //localhost : HQCIG09XEFNMB79P24GDE16O536ECBEY / server :QT3VL25HYK7GPKK1O29E80ABAKCG544S
|
|
|
14 |
$config['home']= array('header'=>array('top_menu','search_bar'),'response'=>array('home_banner','home_menu'),'footer'=>array('authentication_bar','social_bar','footer_link'));
|
|
|
15 |
$config['productlist']= array('header'=>array('top_menu','search_bar','breadcrumb'),'response'=>array('product_list'),'footer'=>array('authentication_bar','social_bar','footer_link'));
|
|
|
16 |
$config['productinfo']= array('header'=>array('top_menu','search_bar','breadcrumb'),'response'=>array('product_details'),'footer'=>array('authentication_bar','subscribe_bar','social_bar','footer_link'));
|
|
|
17 |
$config['search']= array('header'=>array('top_menu','search_bar','breadcrumb'),'response'=>array('product_search'),'footer'=>array('authentication_bar','subscribe_bar','social_bar','footer_link'));
|
|
|
18 |
|
|
|
19 |
$config['oauth_login']= array('header'=>array('top_menu','search_bar'),'response'=>array('login'),'footer'=>array('social_bar','footer_link'));
|
|
|
20 |
$config['oauth_signup']= array('header'=>array('top_menu','search_bar'),'response'=>array('signup'),'footer'=>array('social_bar','footer_link'));
|
|
|
21 |
$config['oauth_forgetpassword']= array('header'=>array('top_menu','search_bar'),'response'=>array('forgetpassword'),'footer'=>array('social_bar','footer_link'));
|
|
|
22 |
|
|
|
23 |
$config['cart']= array('header'=>array('top_menu','search_bar'),'response'=>array('carts'),'footer'=>array('social_bar','footer_link'));
|
|
|
24 |
$config['cart_add']= array('header'=>array(),'response'=>array('addcart'),'footer'=>array());
|
|
|
25 |
$config['cart_update']= array('header'=>array(),'response'=>array('updatecart'),'footer'=>array());
|
|
|
26 |
$config['cart_delete']= array('header'=>array(),'response'=>array('deletecart'),'footer'=>array());
|
|
|
27 |
//sub child of carts
|
|
|
28 |
$config['updatecart']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
29 |
$config['addcart']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
30 |
$config['deletecart']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
/*checkout process
|
|
|
35 |
**/
|
|
|
36 |
$config['checkout']= array('header'=>array('top_menu','search_bar'),'response'=>array('login_process'),'footer'=>array('social_bar','footer_link'));
|
|
|
37 |
$config['billing']= array('header'=>array('top_menu','search_bar'),'response'=>array('billing_process'),'footer'=>array('social_bar','footer_link'));
|
|
|
38 |
$config['orderconfirmation']= array('header'=>array('top_menu','search_bar'),'response'=>array('orderconfirmation_process'),'footer'=>array('social_bar','footer_link'));
|
|
|
39 |
$config['shipping']= array('header'=>array('top_menu','search_bar'),'response'=>array('shipping_process'),'footer'=>array('social_bar','footer_link'));
|
|
|
40 |
$config['payment']= array('header'=>array('top_menu','search_bar'),'response'=>array('payment_process'),'footer'=>array('social_bar','footer_link'));
|
|
|
41 |
|
|
|
42 |
//sub child of carts
|
|
|
43 |
$config['login_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
44 |
$config['billing_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
45 |
$config['orderconfirmation_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
46 |
$config['shipping_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
47 |
$config['payment_process']=array('url' => 'apiurl', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/*
|
|
|
54 |
* ----------------------------------------------------------------------
|
|
|
55 |
* PARAMS FOR HOME PAGE
|
|
|
56 |
* ----------------------------------------------------------------------
|
|
|
57 |
*/
|
|
|
58 |
$config['home_banner']=array('url' => 'products', 'params'=>array('id_category_default'=>3),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
59 |
$config['home_featured_product']=array('url' => 'products', 'params'=>array('id_category_default'=>1),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name,id_default_image,id_category_default]','render'=>'yes');
|
|
|
60 |
$config['home_menu']=array('url' => 'categories', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/*
|
|
|
64 |
* ----------------------------------------------------------------------
|
|
|
65 |
* PARAMS FOR PRODUCT PAGE
|
|
|
66 |
* ----------------------------------------------------------------------
|
|
|
67 |
*/
|
|
|
68 |
//$config['filter']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]');
|
|
|
69 |
$config['product_list']=array('url' => 'products', 'params'=>array('id_category_default'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/*
|
|
|
74 |
* ----------------------------------------------------------------------
|
|
|
75 |
* PARAMS FOR PRODUCT INFO PAGE
|
|
|
76 |
* ----------------------------------------------------------------------
|
|
|
77 |
*/
|
|
|
78 |
$config['product_details']=array('url' => 'products', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
79 |
|
|
|
80 |
/*
|
|
|
81 |
* ----------------------------------------------------------------------
|
|
|
82 |
* PARAMS FOR PRODUCT SEARCH PAGE
|
|
|
83 |
* ----------------------------------------------------------------------
|
|
|
84 |
*/
|
|
|
85 |
$config['product_search']=array('url' => 'search', 'params'=>array('query','language'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
86 |
|
|
|
87 |
/*
|
|
|
88 |
* ----------------------------------------------------------------------
|
|
|
89 |
* PARAMS FOR AUTHORIZATION PAGE
|
|
|
90 |
* ----------------------------------------------------------------------
|
|
|
91 |
*/
|
|
|
92 |
$config['login']=array('url' => 'customers', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
93 |
$config['signup']=array('url' => 'customers', 'params'=>array('email,passwd'),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
94 |
$config['forgetpassword']=array('render'=>'yes');
|
|
|
95 |
|
|
|
96 |
/*
|
|
|
97 |
* ----------------------------------------------------------------------
|
|
|
98 |
* PARAMS FOR Cart PAGE
|
|
|
99 |
* ----------------------------------------------------------------------
|
|
|
100 |
*/
|
|
|
101 |
$config['carts']=array('url' => 'carts', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full','render'=>'yes');
|
|
|
102 |
$config['addcart']=array('url' => 'carts', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
103 |
$config['updatecart']=array('url' => 'carts', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
104 |
$config['delete']=array('url' => 'carts', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'full');
|
|
|
105 |
|
|
|
106 |
/*
|
|
|
107 |
* ----------------------------------------------------------------------
|
|
|
108 |
* PARAMS FOR COMMON PAGE's
|
|
|
109 |
* ----------------------------------------------------------------------
|
|
|
110 |
*/
|
|
|
111 |
/* render = yes/no/viewonly*/
|
|
|
112 |
$config['top_menu']=array('url' => 'categories', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,id_parent,position,name]','render'=>'yes');
|
|
|
113 |
$config['search_bar']=array('render'=>'yes');
|
|
|
114 |
$config['breadcrumb']=array('render'=>'yes');
|
|
|
115 |
$config['authentication_bar']=array('render'=>'yes');
|
|
|
116 |
$config['subscribe_bar']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]','render'=>'yes');
|
|
|
117 |
$config['social_bar']=array('url' => 'menu', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]','render'=>'yes');
|
|
|
118 |
$config['footer_link']=array('render'=>'yes');
|
|
|
119 |
|
|
|
120 |
$config['products']=array('url' => 'products', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE,'display'=>'[id,name]');
|
|
|
121 |
|
|
|
122 |
//$config['get_product'] = array('url' => 'GetProducts.php?', 'params'=>array(),'is_public'=>TRUE,'is_get'=>TRUE);
|
|
|
123 |
|
|
|
124 |
///default configuration
|
|
|
125 |
$config['currencycode']='INR';
|
|
|
126 |
$config['hashkey']='U2KaVoncgiYpdF1N4W66tQvApN1SIoocuzEy0j295eTNkM4hLc2H5BaR'; //server: 9bKnOXVQMJR81zO14OCcKoNUSMVNA9txOUY9Ju58wTqgReAF9TGO0vBC //localhost :U2KaVoncgiYpdF1N4W66tQvApN1SIoocuzEy0j295eTNkM4hLc2H5BaR
|
|
|
127 |
|
|
|
128 |
|