Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting order details for external site


lalaloo

Recommended Posts

I'm stupid and i need help.

 

I want to be able to "extract" certain fields from an order so that i can get them to appear in an external site.

So when a client places an order, i'd like to be able to extract that info.

 

Say customer1 places an order and completes payment. I'd like to extract field1 from the order details in catalog/admin/orders.php to make it show in another website...Any suggestions?

 

Thank you.

Link to comment
Share on other sites

You have a twofold problem.

 

Extracting the data from the order on the osC site would be a relatively minor modification to the osC code.

 

Then, you'll have to set-up a program on the "other web site" to accept and process this extracted information.

 

I can't say how complicated that would or wouldn't be without knowing what you want done with the data there.

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hi there and thanks for wanting to help me.

 

Basically, what i sell is links. Customers come to my site to buy links from eachother. Say i sell links in 100 sites. Customer selects site he wants his link in and places an order. When a customer buys a link from my shopping site, I want to automate the placement of his link in the selected site.

 

So, i created a new field in the customer sign-in form called "field1".

field1 is the customer's URL.

 

What i want is to extract that "field1" (the customer's URL) and have it automatically appear in the selected site as soon as the payment procedure is completed.

 

Am i being clear? Do you need more info? Your help is appreciated.

Link to comment
Share on other sites

It's the "have it automatically appear in the selected site" that is the killer.

 

That all depends on how the other site is set up to handle/display the data.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I was hoping you could tell me that.

:lol:

 

I haven't a clue...

:blush:

 

Like i said... It all depends on how the "other web site" is setup to display the data.

 

Is it stored in a MYSQL data base, flat file, etc...????

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I wouldn't say "off"....

:lol:

 

I just don't think you realize what has to take place.

 

In order to get the data to show up on another web site, you'll have to set up a form on it to accept the data.

 

Then, after accepting it, it's got to do something with it.

 

I presume store it somewhere so it can be displayed at some point in time.

 

Just like on the osC site when people register.

 

They have to fill out their name, email addy, etc.

 

osC saves it for retrieval when needed.

 

The same kind of action needs to take place on your "other web site" with the data you send it from the order.

 

See what I mean?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Maybe someone else who reads this thread will have another idea.

 

But the way I see it, you'll need a "receiving program" on the "other web site" to do something with the data from the order.

 

I don't see how the "other web site" would be able to display the order data without the receiving program..

 

Who knows... I could be the one that's "off"....

:D

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...