booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Adding custom links to app drawer #15

Closed Umairilyas11 closed 1 year ago

Umairilyas11 commented 1 year ago

Hi, I need to add a new link on the app drawer. I checked your documentation and tried to change. But it won't change and do we need to add the whole code again inside that hook file or edit that existing file? And I need to view it as webview. How do I do that?

Hassan6197 commented 1 year ago

Hello @Umairilyas11, First import this line import 'package:houzi_package/pages/app_settings_pages/web_page.dart'; go to Hooks.main file and look for getDrawerItems(), replace it with this piece of code, paste it and modify according to your need

static getDrawerItems() {
    DrawerHook drawerHook = (BuildContext context) {
      DrawerItem drawerItem = DrawerItem(
        sectionType: "hook",
        title: "title",              // Add your title name you want to show in drawer
        checkLogin: false,           // if you want to check login first then make it true
        enable: true,
        icon: Icons.language_outlined,   // You can choose any material icon
        onTap: () {                      // this is the example of on tap function if you want to open link in webview
          Navigator.push(
            context,
            MaterialPageRoute(
              builder: (context) => WebPage("https://www.google.com/","Google"), 
                 // pass the link and Webview appbar title in the first and second parameter respectively
            ),
          );
        },
        insertAt: 4,    // if you want to specify the index in drawer
      );

      List<dynamic> drawerItemList = [drawerItem];

      return drawerItemList;
    };
    return drawerHook;
  }
Umairilyas11 commented 1 year ago

I want to change this to Market Center. is there any way to change that WhatsApp Image 2022-12-12 at 18 41 28

AdilSoomro commented 1 year ago

Open config json file from here:

Project_HOME > assets > configurations > configurations.json

Find the agencies title and replace with your desired title.

Umairilyas11 commented 1 year ago

And I need to add agents, buyers, sellers to that login type aScreenshot_2022-12-12-17-28-20-801_com.vital.app.jpg

AdilSoomro commented 1 year ago

Its controlled from Houzez Theme Option. Navigate to Theme Options > Login & Register > User Roles to find all options related to user roles.

And enable the roles that you want to show on signup.

relaunch app after changing user role option.

Umairilyas11 commented 1 year ago

I added that global partners to the drawer. Now every time I open the app it duplicates WhatsApp Image 2022-12-19 at 21 41 10

AdilSoomro commented 1 year ago

Thanks for reporting this issue, here's the solution, open the following file:

houzi/packages/houzi_package/lib/widgets/home_screen_widgets/home_screen_drawer_widgets/home_screen_drawer_widget.dart

Goto methodinitState() and replace this line:

drawerConfigDataList = widget.drawerConfigDataList;

to this line:

drawerConfigDataList = List.from(widget.drawerConfigDataList);

You can also open this file by pressing shift key twice and enter home_screen_drawer_widget.

This will be fixed in upcoming release though.

Umairilyas11 commented 1 year ago

I need to change the pricing to another format. when user changed the language the pricing also need to change with that. can you explain how to do that?

WhatsApp Image 2022-12-22 at 12 28 26

AdilSoomro commented 1 year ago

Pricing comes from website, and you need to enable multi-currency on your Wordpress admin panel.

  1. Currencies
  2. Price & Currency
  3. Currency Switcher

The reason for enabling multi-currency is that the price need to be converted based on some currency exchange rate.

You also need to implement this on app as well, as app already doesn’t not support multi currencies. You can implement these as follow:

  1. You can provide your own design for item design in list via hooks. Custom Design for Property List
  2. you can also provide price design for property-details. Custom Design for Property Section

inside these hooks, get the selected language and provide your own currency and price to item design and property details price section.

Umairilyas11 commented 1 year ago

If you slide the encirled icons, you will see similar icons from Apartment til end of slide. and there's this issue. can you help me pls? WhatsApp Image 2022-12-22 at 12 22 33 WhatsApp Image 2022-12-22 at 12 23 56

AdilSoomro commented 1 year ago

When you create these terms on admin panel, you also create their slugs, provide icons against the slug of each item via hooks. Change term icons

wilmerayao commented 1 year ago

Hi! Under Projects Menu on the App, when i click back . It will automatically go back to Home. Can you help with this?

Also, if i use other email like wilmer@kwcambodia.com, the system does not allow to log in. What should we do to allow those kinds of company email? Thank yoy

AdilSoomro commented 1 year ago

You'll need to code for sliding the left menu programmatically.

Regarding email with custom domain, we don't restrict domains on the app side. Are you able to login on your website.

wilmerayao commented 1 year ago

Yes i am able to login to my website.

Kwcambodia2.stage-projects.com

Username: Wilmer Password: Wilmer.kwcambodi@!

On Mon, 26 Dec 2022, 9:46 pm Adil Soomro, @.***> wrote:

You'll need to code for sliding the left menu programmatically.

Regarding email with custom domain, we don't restrict domains on the app side. Are you able to login on your website.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/15#issuecomment-1365200735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFTRJ4UKG5RIQNJ4MEAL63WPGOSRANCNFSM6AAAAAAS3YCL2U . You are receiving this because you commented.Message ID: @.***>

AdilSoomro commented 1 year ago

You don't have setup JWT Auth Plugin secret key. Please follow the secret key guide here: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#description

Follow this issue here for detailed discussion: https://github.com/booleanbites/houzi-support/issues/14

wilmerayao commented 1 year ago

Also, how do we syncronize the Registration page on website and CRM of Admin, Agents, Agency to the changes made in the , how to have same changes on the App?

What do you suggest to do?

On Mon, 26 Dec 2022, 9:52 pm Wilmer Ayao, @.***> wrote:

Yes i am able to login to my website.

Kwcambodia2.stage-projects.com

Username: Wilmer Password: Wilmer.kwcambodi@!

On Mon, 26 Dec 2022, 9:46 pm Adil Soomro, @.***> wrote:

You'll need to code for sliding the left menu programmatically.

Regarding email with custom domain, we don't restrict domains on the app side. Are you able to login on your website.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/15#issuecomment-1365200735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFTRJ4UKG5RIQNJ4MEAL63WPGOSRANCNFSM6AAAAAAS3YCL2U . You are receiving this because you commented.Message ID: @.***>

AdilSoomro commented 1 year ago

If you want to do custom role management on left menu items, you'll need to program it.

The existing role management is limited. For example, you can require login for a menu item. Any new menu item that you add via hooks will need you to require login yourself.

Signup page will sync with admin options like you can show hide fields of first-name, last-name, phone number. Anything beyond that will need you to do custom coding.

Customization in CRM will require you do custom coding, its UI is independent of website.

AdilSoomro commented 1 year ago

As we already spoke on fiverr, we don't do customization work at this moment.

AdilSoomro commented 1 year ago

Author was consulted on email/fiverr and given the solution of adding multiple item to drawer.

Consult Doc to Add item in drawer

Closing this ticket.

wilmerayao commented 1 year ago

Good evening! Can you help us guide with these questions:

  1. How do we put required field for Profile fields?

We made the changes you suggested by didn't seem to apply on the App.

  1. How do we change Whatsapp contact to Telegram on the App? Can you guide us please?

  2. How do we add Login requirements to Call and Whatsapp button on Profile

  3. The default photo of Map in Agent profile seem unable to change. How to change it with better photo? Or where can we comment it if we cannot change it.

  4. How to restrict users from Signing Up with only 1 email? Not allow from having Many roles.

It seem that some changes that we add on codes are not showing in the Simulator or App.. what is the best approach and which folder are we going to use if we want to edit or change sa words?

Thank you so much Houzi team!

Sincerely yours,

Houzi Subscriber

On Sat, 21 Jan 2023, 8:41 pm Adil Soomro, @.***> wrote:

Closed #15 https://github.com/booleanbites/houzi-support/issues/15 as completed.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/15#event-8327246294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFTRJ3TQO2DVDJBXFEDWILWTPKN3ANCNFSM6AAAAAAS3YCL2U . You are receiving this because you commented.Message ID: @.***>

wilmerayao commented 1 year ago

Houzi Team,

In our website portal (kwcambodiakh.com) after registration, agents will be seen in houzez real estate > agents and then in user, but in our Mobile App the registration only goes to user only.

Also in agency ID, it shows Agency name not Agency ID and Agent # should also show like what happens in the website. Like in this photo.

How do we fix it? Thank you!

Sincerely,

Wilmer Ayao

On Sat, 21 Jan 2023, 11:31 pm Wilmer Ayao, @.***> wrote:

Good evening! Can you help us guide with these questions:

  1. How do we put required field for Profile fields?

We made the changes you suggested by didn't seem to apply on the App.

  1. How do we change Whatsapp contact to Telegram on the App? Can you guide us please?

  2. How do we add Login requirements to Call and Whatsapp button on Profile

  3. The default photo of Map in Agent profile seem unable to change. How to change it with better photo? Or where can we comment it if we cannot change it.

  4. How to restrict users from Signing Up with only 1 email? Not allow from having Many roles.

It seem that some changes that we add on codes are not showing in the Simulator or App.. what is the best approach and which folder are we going to use if we want to edit or change sa words?

Thank you so much Houzi team!

Sincerely yours,

Houzi Subscriber

On Sat, 21 Jan 2023, 8:41 pm Adil Soomro, @.***> wrote:

Closed #15 https://github.com/booleanbites/houzi-support/issues/15 as completed.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/15#event-8327246294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFTRJ3TQO2DVDJBXFEDWILWTPKN3ANCNFSM6AAAAAAS3YCL2U . You are receiving this because you commented.Message ID: @.***>