Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Importing orders from X-Cart

Featured Replies

I'm new to the board and have been using FileMaker Pro for a little bit.

I'm looking for any suggestions on creating a database so that you can import orders from X-Cart.

For those who do not know what X-Cart is, it's a internet shopping cart that exports the orders similiar to this:

OrderNo | CustomerName | Product Sku | Product Price | Shipping

1 John Smith 2345 32.32 5.5

1 John Smith 5465 46.23 5.5

1 John Smith 1342 12.32 5.5

1 John Smith 7842 87.54 5.5

2 Jane Doe 2534 17.54 8.5

3 Chris Can 3534 57.54 3.5

3 Chris Can 9534 17.54 3.5

So in this example, there are 3 orders, John Smith ordered 4 items, Jan Doe ordered 1 and Chris Can ordered 2 items.

Have 2 FM files, one that imports the raw orders (7 records), and the other would use a portal to get the information to create 1 record per customer. The problem that I have is, how would I have the orders imported once per customer?

I hope this makes sense.

Any suggestion, or a different way of doing this would be appreciated!

Have you provided all the information here? What about the customer information like mailing address etc.?

I would import into the raw orders file the order number and the item information fields. Then run a script that creates related records in the Customer Info file. You can do this by setting up a relationship to the customer info file using the order number as the key field for your relationship and checking the allow "creation of related records" box. Then your script need only loop through the records and perform a step like:

Set Field(CustomerInfo::SomeDummyField, "1")

That will create a single Customer Info record per order no matter how many items there are for that order.

Finally, do an import from the original data file into the Customer Info file using the Update Existing Records only option, importing only the customer info fields.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.