Blog

  • Simplify Product Filtering by Category and Store ID in the Admin Panel with Our Powerful OpenCart 3.x Free Extension

    OpenCart, one of the most popular e-commerce platforms, empowers countless online stores worldwide. To enhance its functionality and provide store owners with more flexibility, we are thrilled to announce the launch of our new extension for OpenCart 3.x. With this powerful extension, users can now effortlessly filter products by category and store ID directly from the admin panel. Say goodbye to tedious manual searches and welcome a streamlined product management experience!

    Why Product Filtering Matters:

    Efficient product management is a key aspect of running a successful online store. As the number of products and categories increases, finding specific products or organizing them becomes more challenging. Without a robust filtering system, valuable time is wasted navigating through a sea of products, making even the simplest tasks arduous. Our new extension addresses this pain point and simplifies the product filtering process.

    Filtering by Category:

    Our extension offers a seamless solution to filter products based on their categories. By integrating this feature into the OpenCart admin panel, store owners can now effortlessly browse and manage products specific to a category. Whether you want to update pricing, adjust inventory, or modify descriptions, the ability to quickly locate products within a particular category saves time and boosts productivity.

    Filtering by Store ID:

    For those who manage multiple online stores within their OpenCart setup, filtering products by store ID is a game-changer. Each store might have its own unique set of products, making it essential to have a streamlined method to navigate through them. Our extension provides the flexibility to filter products based on the store ID, allowing store owners to efficiently manage their inventory across various stores within the same admin panel.

    Key Features:

    1. Seamless integration: Our extension seamlessly integrates into the OpenCart 3.x admin panel, ensuring a smooth user experience.
    2. Category filtering: Easily filter and view products based on specific categories, simplifying product management tasks.
    3. Store ID filtering: Effortlessly navigate through products belonging to different stores within the OpenCart setup by filtering using the store ID.
    4. Enhanced productivity: By reducing the time spent searching for products, this extension enhances productivity and allows store owners to focus on other essential aspects of their business.
    5. Intuitive user interface: The extension offers a user-friendly interface that requires no technical expertise, ensuring ease of use for store owners and administrators.

    How to Install:

    1. Download the extension from our website.
    2. Log in to your OpenCart 3.x admin panel.
    3. Navigate to the Extensions section and click on Extension Installer.
    4. Upload the extension file and proceed with the installation.
    5. Once installed, you will find the filtering options in the product management section of the admin panel.

    Note: Please take the backup first before installing any new extension.

  • Opencart 3.x Set currency based on user’s IP [Free Extension]

    If you are looking for an extension that helps your opencart 3.x to change the currency based on the user’s location. Then this extension is the perfect solution for your need.
    This extension will trace the user’s location based on his/her IP address and filter the country’s currency ISO code. If your store has that currency ISO then it set it if not then it set to default USD.
    It supports all the themes and the latest 3.x version of Open Cart.Please refer the below instruction for the proper installation guide:Step 1: Go to the extension -> installer. And click upload, After that select “ipbasedcurrencybyTejasRana.ocmod” zip file
    Step 2: Go to the Extension -> Verify that the extension is in the list.
    Make sure it is enabled. If not, then enable it.Step 3: Refresh the modifications. So, It re-generates all the files.Note: This module will fetch the user’s IP and then trace the location of the user’s ISP+. Due to this process, it might impact the little bit load to your opencart while loading the first time to new users (or if the currency is not set on user’s browsers). But don’t worry it will not be much it will be hardly between 100ms-500ms (Depend on your server’s load and network load of your hosting)
    PRIVACY CONCERN: If you are really concern about the privacy of your user. So, Please DO NOT use this extension. Because to fetch the IP location detail I need to pass the user’s IP to a 3rd Party API which returns the basic details such as ‘city’, ‘region’, ‘country_code’, ‘country_name’ etc. No other detail such as user’s actual lat long, device information, etc. all the detail which I get is the user’s ISP, not the user.

    This extension is completely free. There is no hidden plan/service you need to buy.

    But if you like to help me to provide this type of “MUST HAVE” extensions for OpenCart/WordPress/Magento with Free of Cost then you can donate me. For the donation, you can contact me.

    If you are facing any issue or need support to configure this extension then you can contact me. I will help you to configure this extension.

    [wpdm_package id=’3123′]

  • Anatomy of A Coronavirus-Proof Business[Infographic]

    Anatomy of A Coronavirus-Proof Business[Infographic]

    Ever since its onset last December, the coronavirus has soon gained momentum to affect all walks of life within months, taking a heavy toll on all industries and sectors worldwide. Does your company happen to be in the high-risk sector? Is your business struggling amid huge talent loss and office bills that still need to be paid? Regardless of sector or size, the covid-19 influence must have been felt everywhere around you.

    The Impact of Covid-19

    As suggested by the International Labour Organization, the covid-19 is arguably the greatest crisis faced by human beings ever since WWII. The world trade volume has been estimated to fall by 11%, and the oil price down by 42%. An estimated 1.5 billion children have been denied physical access to school. Industries like retail, manufacturing,education as well as shipments have taken the brunt.
    Image credit: economics.rabobank.com

    The Lockdown Generation

    More than that, as the Organization reveals, the Coronavirus outbreak has also cut down global working hours by 10.7% in the first quarter of 2020. 1 of 6 young people globally has stopped working. 94% of the global workforce is now under certain containment owing to government lockdown measures. The coronavirus outbreak is worryingly turning young workers into the “Lockdown Generation”.
    Image credit: GGTV
    With so many young people unable to work in the office, the first and most important question for businesses is: how to build up enough immunity to get through this difficult time?

    The Workstyle Reform

    True, governments have acted fast by initiating the workstyle reform, pushing businesses to adapt towards telecommuting against covid-19 impact, but are we fully ready to go virtual and remote? In another word, what it takes for us to benefit from telecommuting? In consideration of that, we’ve compiled a list of remote tools for businesses to go remote, covering areas from information security, project management, collaboration to individual mental health enhancement. Take a quick look!
    Image credit: CocoFax
    Needless to say, telecommuting is likely to continue for a longer term, even after the coronavirus pandemic. As research from FlexJobs and Global Workplace Analytics (GWA) shows, there has been an increase of 159% in remote work in the U.S.A since from 2005 to 2017. Furthermore, a study of 1001 by Amerisleep showed remote workers were 57% more likely than the average American to be satisfied with their jobs.
    Image credit: pairin.com
    The pandemic is likely to accelerate this workstyle transformation as people are focusing a lot more on work-life balance than ever before. An FlexJobs survey shows 84% of working parents in America identify work flexibility as the single most important factor in a job.
    Image credit: knowablemagazine.org
    Going virtual is especially beneficial to companies in the tech industry, saving office budget on renting office space as well as costs in retaining employees. Businesses need to weigh the pros and cons of telecommuting before going virtual though. Make sure you have a reliable tele-workforce, and employ the right online working tools!
  • Opencart 3 Social Login Extension [FREE]

    Opencart 3 Social Login Extension [FREE]

    This extension allows users to log in with the social platform just with one click. The users can easily log in with Facebook, Google Plus, Twitter, and Linked In.
    The minimum requirement is: Opencart 3+
    This is OCMOD supported module which means you can directly install it.
    It is well tested on Journal Theme 3 and Default theme and works fine. But still, if you find any issue you can comment on it I will try to reply to you ASAP.

    Please refer the below instruction for the proper installation guide:

    Step 1: Go to the extension -> installer. And click upload, After that select “socialloginbytejasrana.ocmod” zip file

    Step 2: Go to the Extension -> Modifications and click the refresh icon. Once you click you can see the module in the table.

    Step 3: Go to the Extension -> Extensions and filter “Modules”. And scroll down to “Social Login By Tejas Rana” and install it. Once you installed click on the edit icon.

    Step 4: Fill or set the configuration as per your need. For each social platform please refer to the developer guideline of the respective platform.

    This extension is completely free. There is no hidden plan/service you need to buy.

    But if you like to help me to provide this type of “MUST HAVE” extensions for OpenCart/WordPress/Magento with Free of Cost then you can donate me. For the donation, you can contact me.

    If you are facing any issue or need support to configure this extension then you can contact me. I will help you to configure this extension.

  • What is NGRX and Use of NGRX

    What is NGRX and Use of NGRX

    So, In the previous blog, we learn what is State management and the benefit of State in our App. I gave you a basic idea about the store in the previous blog. But in this blog post, I will give you more detail about the store of NGRS.

    Store, As the name we can assume that it is related to storing data. Yes, Store is an in-memory DB on the client-side. It is the main part of State management because whatever you want to keep state you need some kind of storage, State helps you in that. The state is immutable which means you can not change it directly. It can only be changed with the reducers by keeping it immutable.

    So, In short, we can say the state is only in-memory storage.

    Now, let’s move to its friends which are Action, Reducers, And Dispatcher.

    Action: AS we can assume with its name it defines which kind of Action we want to perform. Yes, the action is used to define the type of action/event such as ADD, UPDATE, DELETE, GET. But again we can not act directly on Store. So we need to take help from Reducers.

    Reducers: As we know the Store cannot be modified directly so the reducer handles the transition from one state to another state of Store.

    Dispatcher: Dispatcher is required to pass the action to Store.

    Here is the simple lifecycle which helps you to understand the flow of NGRX

    In the next blog, I will create a small app using NGRX so, till that stay tuned. Happy Coding…

  • What is State Management in Angular? How to improve Performance?

    Is your application is really big or made for enterprise-level? Is your application consuming the same APIs again and again to fetch the same data on each action?

    Then you are doing the wrong implementation, my dear friend.

    You should maintain the State of Application just like you heard in React.js using Redux.

    Yes, you can manage the state in Angular2+ application using NGRX.

    Now before heading forward to NGRX many of you don’t know about the state and why the state management is required.

    So, What is State Management?

    I can bet your current application also maintaining the state. But that is not the proper state management.

    Let me, explain to you about State Management. “State” term includes both the state of UI and the state of variables in your code. So any change in your application changes the state.

    Now each component has its state and a component has no idea about the other components’ states unless we make enable the data flow between components using service or Input/Output decorators which means whenever you left the Module or component that means the state of that component/module destroyed. So, When you again load that component then you need to recall the API or need to assign value to a variable so your application can render the data.

    Now let me give the nightmare situation about your application.

    Suppose you have an application that has a module called Customer List. and that list contains 140 Customers. Now imaging when the user comes to that module the first API trigger to fetch 50 Customers. Now you edit a customer. So, again you called an API to fetch the customer information. you saved the customer and come back to the customers’ list. so, again you call the API because you need updated data. right?

    So, in this basic workflow, your application called 3 GET APIs and 1 PUT API.

    Now think your application has hundreds of users. and have millions of records. So, can you imagine how many API transactions will happen and how much load server has to take? And also the application user has to wait until the API transaction gets completed each time.

    Now a very common question comes in mind is, How can I overcome this issue?

    The answer is very simple to store the data in Entity/Variable.

    Here our Hero comes in the picture which is ngrx/store.

    The store is some kind of database for the client-side. Store save the data as the “Single Source of Truth”.

    What exactly the Store do to resolve our problem?

    The store can not do anything on its own it also needs helping hands. And the helping hands are Action, Reducers, and Dispatcher.

    Now the truth is the thing which can not be modified after storing data that is why Store is the single source of truth. which means the Store is read-only or immutable.

    So, now you know better about the store and state management and why it should be required in all the Angular Application.

    In the next article, I will give brief information about Action, Reducers, and Dispatcher.

    I will also give you a few architectures about the application from simple to complex applications. And also a simple demo as well. Till that stay tuned.

    Don’t forget to subscribe to the notification of my blog so you will get quick notification whenever I post new articles.

  • Angular Typescript Geo Info Module

    An (AOT ready) Angular (4+) service for Geo coordination.

    Installation

    npm install ngx-geo-info-angular --save
    

     
    Add the cookie service to your app.module.ts as a provider:

    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { FormsModule } from '@angular/forms';
    import { HttpModule } from '@angular/http';
    import { AppComponent } from './app.component';
    import { NgxGeoCoordinatesInfoModule } from 'ngx-geo-info-angular';
    @NgModule({
      declarations: [ AppComponent ],
      imports: [ BrowserModule, FormsModule, HttpModule, NgxGeoCoordinatesInfoModule ],
      bootstrap: [ AppComponent ]
    })
    export class AppModule { }

    Then, import and inject it into a component:

    import { Component, OnInit } from '@angular/core';
    import { NgxGeoCoordinatesInfo } from 'ngx-geo-info-angular';
    @Component({
      selector: 'demo-root',
      templateUrl: './app.component.html',
      styleUrls: [ './app.component.scss' ]
    })
    export class AppComponent implements OnInit {
      constructor( private geoService: NgxGeoCoordinatesInfo ) { }
      ngOnInit(): void {
        this.geoService.getAll().then(value => {
          console.log(value);
        }, (err) => {
            console.log(value);
        });
        this.geoService.get('latitude').then(value => {
          console.log(value);
        }, (err) => {
            console.log(value);
        });
        this.geoService.get('longitude').then(value => {
          console.log(value);
        , (err) => {
            console.log(value);
        });
      }
    }
    

    That’s it!


    Methods

    get( name: string ): string;

    this.geoService.get('latitude').then(value => {
          console.log(value);
    }, (err) => {
          console.log(value);
    });

    getAll(): {};

    this.geoService.getAll().then(value => {
          console.log(value);
    }, (err) => {
          console.log(value);
    });
    

    Parameter

    {
      accuracy : <number>,
      altitude : <it work if your browser support>,
      altitudeAccuracy : <it work if your browser support>,
      heading : <it work if your browser support>,
      latitude : <double/float>,
      longitude : <double/float>,
      speed : <it work if your browser support>,
      timestamp : <number (TimeStamp) when you get the information>,
    }

    Error Response

    {
        status : error,
        message: 'Error Message',
        data:{
            accuracy : '',
            altitude : '',
            altitudeAccuracy : '',
            heading : '',
            latitude :'',
            longitude : '',
            speed : '',
            timestamp : '',
        }
    }

    Success Response

    {
        status : 'success',
        message: '',
        data: {
            accuracy : <number>,
            altitude : <it work if your browser support>,
            altitudeAccuracy : <it work if your browser support>,
            heading : <it work if your browser support>,
            latitude : <double/float>,
            longitude : <double/float>,
            speed : <it work if your browser support>,
            timestamp : <number (TimeStamp) when you get the information>,
        }
    }

    NPM URL: https://www.npmjs.com/package/ngx-geo-info-angular

  • Angular 6: Remove Object from Array of Object on Conditional Based

    Angular 6: Remove Object from Array of Object on Conditional Based

    Its very hard to remove specific conditional based object removal from Array of Objects.

    So, Here is my solutions.

    To do this we need to make the recursive function which calls and traverse all the child and find the specific data which match with our condition.

    In this example, I want to remove data which has blank BusinessID.

    So first I create a wrapper function or we can call it parent function.

    FilterData(Data: any[]) {
        let tempReturn: any;
        let childReturn: any;
        Data.forEach(data =&amp;amp;gt; {
          childReturn = []
          if (data['ChildAccounts'].length &amp;amp;gt; 0) {
            childReturn = this.hyrarchyData(data['ChildAccounts']);
          }
          if (data['BusinessID'] === '') {
            tempReturn = { 'AccountID': data.AccountID, 'AccountName': data.AccountName, 'BusinessID': data.BusinessID, 'ChildAccounts': childReturn };
          } else {
            tempReturn = this.simplyfyArrayToObject(childReturn);
          }
          if (tempReturn !== undefined &amp;amp;amp;&amp;amp;amp; tempReturn !== null) {
            this.FilteredData.push(tempReturn);
          }
        })
      }

    As we can see in this function first we are checking if the Array of Objects has child or not. If we have the child then we need to traverse the child first and then we add that child to parent object.

    For the child, I explain later. but first, let’s understand the parent functionality.

    After calling child function we check our condition. If it matches with our requirement then we create another object assign value to that object then push to our global variable.

    Now you can see that I have created another function called “simplyfyArrayToObject”. This function just check if we have Array of Array (Nested) which we don’t want but still it creates because We have It’scondition which might not match with Parent object but match with child so in that case, it create Array of Array.

    And at last we just check that if the variable exists then we simply push to Global variable.

    Now come to the process of child node.

    [code lang=”js”]hyrarchyData(Data: any[]) {
    let tempReturn: any;
    let childReturn: any;
    let returnObj = [];
    Data.forEach(data =&amp;amp;gt; {
    childReturn = [];
    if (data['ChildAccounts'].length &amp;amp;gt; 0) {
    childReturn = this.hyrarchyData(data['ChildAccounts']);
    }
    if (data['BusinessID'] === '') {
    tempReturn = { 'AccountID': data.AccountID, 'AccountName': data.AccountName, 'BusinessID': data.BusinessID, 'ChildAccounts': childReturn };
    } else {
    tempReturn = this.simplyfyArrayToObject(childReturn);
    }
    returnObj.push(tempReturn);
    });
    return returnObj;
    }[/code]

    This function is recursive and does the same which our parent function is doing. Only the differnce is that our parent function push the value to global but this push to local varibale and return that varibal.

  • Filter Builder

    Filter Builder


    Recently I have developed a Drag and drop dynamic filter which generates JSON. you can integrate into any Application no matter it is the iOS app, Android App or Web App.

    You just need to integrate this code into iFrame or Web view so that user will build his/her desire filter option using very easy drag and drop functionality. And at the end, you will get JSON which you need to pass to the server. And the server will parse this JSON and apply DB query based on JSON object. and the server will return the JSON string.

    So bye-bye to traditional fix filter. With my filter user have full flexibility to build his/her desire filter and very user-friendly.

    Soon I will release its downloadable version with proper documentation. As of now please play with this and let me know in the comment section what new feature you want to see in this to make it more user-friendly with more productive.

    Demo

  • AWS EC2 alternative

    AWS EC2 alternative

    Want to host websites? But don’t want to go with AWS and Shared Hosting? Here is the alternative of Shared hosting and AWS.

    The problem with AWS Cost, Yes, you read right AWS is costly even if you are using very minimal it will cost you minimum $8. Because they are charging multiple things such as EC2, Elastic IP, and bandwidth based on region wise and Inbound and Outbound data transfer.
    If you are going to use just for Hosting of your website then AWS is not the right choice.

    We know that AWS provides many services at single place. That is good if your application requires those service. But what if you don’t need those service? It will cost you too much.

    Problem with shared hosting, The problem with shared hosting is limited resources and shareable resources. Many hosting companies host 1000’s websites on the single server. Which slows down your site performance. Also, there are few hosting company which suspends your account if your website/application using too many resources. And if you are a developer and want to customize your server then on shared hosting you can’t do this. Because you don’t have root access.

    Go to Cloud Hosting

    After several of research, I found 2 organization which provides Cloud server with SSD which means 10x more performance compared to traditional storage devices. Laravel Hosting is one such example of better hosting.

    Linode & vultr is an organization which provides you 1 GB of RAM, 1CPU core and 1 TB bandwidth at just $5.

    Linode provides you 20 GB storage and but Vultr provide you 25GB storage but Vultr’s billing cycle is 28 Days based.

    Here is the pricing comparison:

    Linode Lightsail Vultr
    Memory 1GB 512MB 1024MB
    Processor 1 Core 1 Core 1 Core
    Storage 20GB SSD 20GB SSD 25GB SSD
    Transfer 1TB 1TB 1000GB
    Overage $0.02/GB $0.09/GB $0.02+/GB
    Network In 40Gbps ??? ???
    Network Out 1000Mbps ??? ???
    Price $5/month $5/month $5/month
    $0.0075/hour $0.007/hour $0.007/hour