Ionic j2store
Search…
UI Customization
You can change the branding including store colors, logo, header, footer, and more. The app is built using the Ionic framework and works beautifully with the J2Store website.

1. Change store Name :

Open src/pages/dashboard/dashboard.htmlfile in the project.
1
<ion-col col-5>
2
<h3 class="headertitle">Outfit</h3>
3
</ion-col>
Copied!
In the previous code, you can change the Store Name

2. Change Store Colors :

Open src/theme/variables.scss file in the project
1
$colors: (
2
primary: #F6846C,
3
secondary: #D75E41,
4
btnclr: #B33F26,
5
light: #F7FEDD,
6
dark: #222,
7
energy: #9ad32f
8
);
Copied!
The Primary is the main color of the app and Btnclr is the button color of the app
We can change the button color main color in this section.

3. Adding the new Menu :

  • J2store mobile app supports dynamic menu structure.
  • Uploaded the menu.json in the server https://yourwebsite.com/menu.json
  • If you need to add menu simply add that in the menu.json file no need to do any additional work in coding.
Add single menu :
  • Just add the menu name and category id in the json file.
Single menu
Add sub menu:
  • For the sub menu we need to set CID as 0 in the json file.
Submenu

4. Change the API URL :

Open src/providers/url-service file in the project
1
apiUrl = 'https://themeparrot.com/api/v1/';
2
apiUrl2 = 'https://themeparrot.com/api/v2/';
Copied!
Change the https://themeparrot.com to https://yourdomain.com

5. Change the Image URL :

Open src/providers/config-service/config-service.ts file in the project
1
export const IMG_PATH= 'https://themeparrot.com';
Copied!
Change the https://themeparrot.com to https://yourdomain.com

5. Change the Category details :

Open src/pages/dashboard/dashboard.html file in the project
1
<ion-card class="cardbordor" (click)="test($event, 8)">
2
<img src="https://themeparrot.com/banner.png">
3
<div class="card-title">Women</div>
4
<div class="card-subtitle"></div>
5
</ion-card>
Copied!
Here you can change the Category image URL, Category name, & Category Id
Dash board Screen

6. Change the App Icon

  • Upload your logo and splash screen to the following URL
  • Icon size should be 1024 *1024
  • Splash screen size should be 4096 * 4096
  • Download the zip folder from URL and paste that folder in the resources/ folder
  • Added the Logo in the src/assets/imgs/ folder
  • Logo size should be 1024 * 1024
  • To add a logo for the app open src/pages/dashboard/dashboard.htmlfile in the project. and replace the 'headertitle' code with the 'headerimg'.
From
1
<ion-col col-5>
2
<h3 class="headertitle">Outfit</h3>
3
</ion-col>
4
Copied!
To
1
<ion-col col-8>
2
<img src="assets/imgs/logo.png" alt=""
3
style="margin-left: 63px; width: 43%" class="headerimg">
4
</ion-col>
Copied!

8. Change the Client_id & client_secret:

  1. 1.
    Open the src/pages/dashboard/dashboard.ts ,src/pages/login/login.ts
    & src/pages/myaccount/myaccount.tsfile and find the client_id & client_secret replace that with your client_id & client_secret. (This information will get after install j2rest plugin)
1
refreshData = { grant_type: 'password', client_id: 'xxxxxxxxxxx', client_secret: 'xxxxxxxx' };
Copied!

9. Change the Forget Password URL :

  1. 1.
    Open the src/pages/login/login.tsfile, in the forget() function changed the url with your forget Password url
From
1
forget(){
2
let browserRef = window.open('https://w3cert.net/outfit/index.php/en/register?view=reset&tmpl=component', '_self', 'hideurlbar=yes,location=no');
3
this.navCtrl.popToRoot();
4
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
5
var loc = e.url;
6
if(loc != "https://w3cert.net/outfit/index.php/en/register?view=reset&tmpl=component")
7
{
8
browserRef.close();
9
}
10
});
11
12
}
Copied!
To
1
forget(){
2
let browserRef = window.open('https://yourwebsiteforgetpasswordURL?view=reset&tmpl=component', '_self', 'hideurlbar=yes,location=no');
3
this.navCtrl.popToRoot();
4
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
5
var loc = e.url;
6
if(loc != "https://yourwebsiteforgetpasswordURL?view=reset&tmpl=component")
7
{
8
browserRef.close();
9
}
10
});
11
12
}
Copied!

10. Changed the Checkout URL :

Open the src/pages/checkout/checkout.ts file, in the lstnurl3() function changed the url with your website url
From
1
lstnurl3(){
2
let localaccesstoken = localStorage.getItem('token');
3
let currencycode = localStorage.getItem('currency_id');
4
let browserRef = window.open('https://w3cert.net/outfit/index.php?option=com_j2store&view=checkout&access_token=' + localaccesstoken + '&mobile=mobile&currency=' + currencycode + '&tmpl=component', '_self', 'hideurlbar=yes,location=no');
5
this.navCtrl.push(MyaccountPage);
6
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
7
var loc = e.url;
8
if(loc.includes('com_j2store&view=myprofile&mobile=mobile')){
9
localStorage.removeItem('cart_id');
10
browserRef.close();
11
}
12
else{
13
console.log("inside else");
14
}
15
});
16
}
Copied!
To
1
lstnurl3(){
2
let localaccesstoken = localStorage.getItem('token');
3
let currencycode = localStorage.getItem('currency_id');
4
let browserRef = window.open('https://yourwebsite URL?option=com_j2store&view=checkout&access_token=' + localaccesstoken + '&mobile=mobile&currency=' + currencycode + '&tmpl=component', '_self', 'hideurlbar=yes,location=no');
5
this.navCtrl.push(MyaccountPage);
6
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
7
var loc = e.url;
8
if(loc.includes('com_j2store&view=myprofile&mobile=mobile')){
9
localStorage.removeItem('cart_id');
10
browserRef.close();
11
}
12
else{
13
console.log("inside else");
14
}
15
});
16
}
Copied!
Last modified 4mo ago
Copy link