PDA

View Full Version : JavaScript help


highman
10-08-2001, 10:58/10:58AM
Can anyone help with a JScript problem?

I have a shopping cart which uses client side JScript (I know, I know but its all i got) I kinda like it because all the products are flat html files (SE friendly), problem is this:

It uses worldpay as our clearing house, so the JSCript passes the value of the order to worldpay (but only the total amount), the order can be made up of 6 or so products, the result is we get a total from worldpay but no breakdown of the order.

To retrieve the order breakdown I have to look through the logs to find the cookies (which contain the order breakdown), while I do look through the logs quite a bit anyway, this situation is less than ideal.

Can anyone help me get these orders written to a file on the server perhaps? or any other solutions out there?


TIA

Mike

ihelpyou
10-08-2001, 11:07/11:07AM
Sounds like a question for BigDugan or JuniorHarris. JH is on vacation until next week though.

Anyone else have a good answer?

highman
10-08-2001, 11:09/11:09AM
>JH is on vacation until next week though.

Doug, I cant believe you gave him the time off..... the man needs his work ;)

ihelpyou
10-08-2001, 11:12/11:12AM
Well, he started whining and threatened me with a drive over to Charleston, so I decided to let him go. With pay also. :D

highman
10-08-2001, 11:17/11:17AM
I dont know the US, but is Charleston that bad?

ihelpyou
10-08-2001, 11:22/11:22AM
oh no, real nice, livin right on the Atlantic Ocean. But he was going to drive over to duke it out with me. About a 5 hour drive or so. ;)

highman
10-08-2001, 11:30/11:30AM
duke it out with me? sorry im on the other side of the water.... things have different meanings... lol

ihelpyou
10-08-2001, 11:42/11:42AM
lol.... punch me. :)

highman
10-08-2001, 12:09/12:09PM
phew....:o:

jimi_l
13-08-2001, 05:47/05:47AM
Try having a look around here>>>
http://www.JROUNDUP.COM
It looks like a great place to learn/troubleshoot all about JS
jimi_i

Mel
13-08-2001, 06:38/06:38AM
Hey Highman

Can you give me a bit more information on how you access Worldpay?

They are normally supposed to give you an email with full details of all transactions if you set it up on your admin account and there are also some scripts to pass info back to you.

I have access to a WorldPay tech a phone call away if its any help.

Correction -- This may work only if you are using their shopping cart, but I do have a couple of Worldpay "Select" scripts which pass the transaction info back to WP. Can you configure your S/C to pass the transaction info to WP so they can pass it back to you?

highman
13-08-2001, 07:30/07:30AM
WorldPay only take the toal amount from your order form and not the full break down of the order, you are correct we get e-mails with the order details but not a breakdown of the order iteslf, thats left for the site owner to work out :(

Mel
13-08-2001, 07:38/07:38AM
Highman:

I use Worldpay and get full details of all my transactions from them in the email.

highman
13-08-2001, 09:24/09:24AM
Mel, what accunt do you have with WPay? do the e-mails you get show:

product1 £#.##
product2 £#.##
product3 £#.##
product4 £#.##
product5 £#.##
product6 £#.##

and the total?

Mel
13-08-2001, 10:27/10:27AM
Highman:

I run a ClickandBuild server, and actually the bulk of the emails go to my customers, I just get those which purchase from my own site and they give me a breakdown that: so and so has purchased such and such at some price and requests shipping as follows with a transaction number.

I then have the option to look up the transaction on the CNB admin system (the customer can do this as well)

I am an Accredited WorldPay Hosting Partner and so may be getting some special perks, but this also give me access to some very good technical help, so if I can help you there give me an email and I can pursue it.

highman
13-08-2001, 10:55/10:55AM
Thanks for your kind offer Mel :)

I have spoken to WPay about this and they have said they only accept order totals, it sounds like you have a different set up with them, we only have credit card clearence with WPay and nothing else.

I have heard it is possible to get the info from cookies written to a text file?

highman
13-08-2001, 10:56/10:56AM
one more post for the second 100 of the day :)

JuniorHarris
21-08-2001, 11:10/11:10AM
Wow, I got time off with pay!~ I suppose that means I'll have extra post-cards in the mail!~ ;)

Charleston is a great place to be, the beaches are great and so are the restaurants. Though I'm particular to the Isle of Palms area, where it tends to (used to) be more quiet. A very nice town (city) indeed!~ :thebomb:

highman have you found a solution? It sounds as if WPay does not provide an option for you, so are you now attempting to figure a way to match cookies? (I'm not sure I like that task!).

highman
21-08-2001, 11:20/11:20AM
long time no post my friend ~ trust you had a good break from the search engines.

No I havnt got an answer yet, I was kinda waiting for you or Big Duncan to 'pop in' for suggestions. The problem is a real b*tch, as I said its Client Side JScript using cookies and I have heard it may be poss to write to file from the cookied order?

As you know we have in hose programmers but its kinda sensitive to mention this site ;) so any help would be mucho appriciated, I think you know the URL. Anyway settle yourself in and if you get time / ideas......

Nice to se ya back :hi: