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.
Open
src/pages/dashboard/dashboard.html
file in the project. <ion-col col-5>
<h3 class="headertitle">Outfit</h3>
</ion-col>
In the previous code, you can change the Store Name
Open
src/theme/variables.scss
file in the project$colors: (
primary: #F6846C,
secondary: #D75E41,
btnclr: #B33F26,
light: #F7FEDD,
dark: #222,
energy: #9ad32f
);
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.
- 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

Open
src/providers/url-service
file in the project apiUrl = 'https://themeparrot.com/api/v1/';
apiUrl2 = 'https://themeparrot.com/api/v2/';
Change the
https://themeparrot.com
to https://yourdomain.com
Open
src/providers/config-service/config-service.ts
file in the projectexport const IMG_PATH= 'https://themeparrot.com';
Change the
https://themeparrot.com
to https://yourdomain.com
Open
src/pages/dashboard/dashboard.html
file in the project<ion-card class="cardbordor" (click)="test($event, 8)">
<img src="https://themeparrot.com/banner.png">
<div class="card-title">Women</div>
<div class="card-subtitle"></div>
</ion-card>
Here you can change the Category image URL, Category name, & Category Id

Dash board Screen


- 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
<ion-col col-5>
<h3 class="headertitle">Outfit</h3>
</ion-col>
To
<ion-col col-8>
<img src="assets/imgs/logo.png" alt=""
style="margin-left: 63px; width: 43%" class="headerimg">
</ion-col>
- 1.Open the
src/pages/dashboard/dashboard.ts
,src/pages/login/login.ts
&src/pages/myaccount/myaccount.ts
file and find the client_id & client_secret replace that with your client_id & client_secret. (This information will get after install j2rest plugin)
refreshData = { grant_type: 'password', client_id: 'xxxxxxxxxxx', client_secret: 'xxxxxxxx' };
- 1.Open the
src/pages/login/login.ts
file, in the forget() function changed the url with your forget Password url
From
forget(){
let browserRef = window.open('https://w3cert.net/outfit/index.php/en/register?view=reset&tmpl=component', '_self', 'hideurlbar=yes,location=no');
this.navCtrl.popToRoot();
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
var loc = e.url;
if(loc != "https://w3cert.net/outfit/index.php/en/register?view=reset&tmpl=component")
{
browserRef.close();
}
});
}
To
forget(){
let browserRef = window.open('https://yourwebsiteforgetpasswordURL?view=reset&tmpl=component', '_self', 'hideurlbar=yes,location=no');
this.navCtrl.popToRoot();
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
var loc = e.url;
if(loc != "https://yourwebsiteforgetpasswordURL?view=reset&tmpl=component")
{
browserRef.close();
}
});
}
Open the
src/pages/checkout/checkout.ts
file, in the lstnurl3() function changed the url with your website urlFrom
lstnurl3(){
let localaccesstoken = localStorage.getItem('token');
let currencycode = localStorage.getItem('currency_id');
let browserRef = window.open('https://w3cert.net/outfit/index.php?option=com_j2store&view=checkout&access_token=' + localaccesstoken + '&mobile=mobile¤cy=' + currencycode + '&tmpl=component', '_self', 'hideurlbar=yes,location=no');
this.navCtrl.push(MyaccountPage);
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
var loc = e.url;
if(loc.includes('com_j2store&view=myprofile&mobile=mobile')){
localStorage.removeItem('cart_id');
browserRef.close();
}
else{
console.log("inside else");
}
});
}
To
lstnurl3(){
let localaccesstoken = localStorage.getItem('token');
let currencycode = localStorage.getItem('currency_id');
let browserRef = window.open('https://yourwebsite URL?option=com_j2store&view=checkout&access_token=' + localaccesstoken + '&mobile=mobile¤cy=' + currencycode + '&tmpl=component', '_self', 'hideurlbar=yes,location=no');
this.navCtrl.push(MyaccountPage);
browserRef.addEventListener('loadstop', function(e: InAppBrowserEvent) {
var loc = e.url;
if(loc.includes('com_j2store&view=myprofile&mobile=mobile')){
localStorage.removeItem('cart_id');
browserRef.close();
}
else{
console.log("inside else");
}
});
}
Last modified 11mo ago