Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVED]How to Use Data in External Table Option

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED]How to Use Data in External Table Option

More
7 years 8 months ago - 7 years 8 months ago #26343 by mshihan
Hello,

I need to create two extra fields, one for regions and one for subregions like states and cities.
First field is ad_regions (drop down single select)
Second field is ad_subregions (cascade child field)

There is two options I can use to enter region names , subregion names , values and parent values.
The first option "data stored in AdsManager" is very easy to understand.
But I am looking for the other option "data stored in external table", because I have to enter about 21 regions and more than 300 subregions.

To do this I know I have to create a table with columns in the database and enter data there by creating rows.
But could you please explain me how many tables I need to create.
Is it two tables ( one for regions with two columns and another one for subregions with three columns),
or do I need to create one table with three columns (a column for regions, a column for region value and a column for subregions)

Best Regards.
Last edit: 7 years 8 months ago by loic.
More
7 years 8 months ago #26352 by juloaadmin
Replied by juloaadmin on topic How to Use Data Stored in External Table Option
Hello, you need 2 tables

regions
id name

subregions
id name region_id

In the "children table" each line must be linked to a "parent" table.
More
7 years 8 months ago - 7 years 8 months ago #26438 by mshihan
I think I have understood.
Regions table two columns (ID colum and Regions_name column)
Subregions table three colums (ID colum , Subregions_name colum and Subregions_id colum),
and I have to link the the ID of regions table to the subregions table by implementing foreign key.
Am I right?
Last edit: 7 years 8 months ago by mshihan.
More
7 years 8 months ago #26445 by juloaadmin
Replied by juloaadmin on topic How to Use Data Stored in External Table Option
Subregions table three colums (ID colum , Subregions_name colum and regions_id colum),

==> region_id not subregion_id !!

Yes correct
More
7 years 8 months ago - 7 years 8 months ago #26514 by mshihan
I have created mysql tables and inserted data, and after filling required fields in "data store in external table" correctly, it works perfectly. Thank you so much for the help.
But I have small issue. The field details are not showing correct order in add mode (detail view)

Now it is showing like this.
Seller:
Subregion:
Phone:
Region:

How can I reorder fields like this on detail view.
Seller:
Phone:
Region:
Subregion:

Best Regards.
Last edit: 7 years 8 months ago by mshihan.
More
7 years 8 months ago #26520 by loic
Hello,

Did you try to drag'n'drop the fields in the correct order in the back end - Layout - details page ?

Best regards.
The following user(s) said Thank You: mshihan
Time to create page: 0.136 seconds
Powered by Kunena Forum