Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Purchase without account (PWA) with 2.2RC1?


newbuntu

Recommended Posts

I tested PWA July 3, 2006 and ran into two problems so far.

 

1. register_globals

 

2. credit card data on page checkout_confirmation.php was not posted up, because the input fields were not inside the <form></form> block.

 

I made issue 2 work so far(see http://www.oscommerce.com/forums/index.php?s=&...&p=1128284). However, I would like to hear some expert opinion on this one.

 

I assume issue 1 can be fixed by replacing HTTP_GET_VARS with _GET, or something like that.

 

Someone must have used PWA July 3, 2006, please share your story, I wonder if the credit card info was posted up correctly?

 

Any comments? Can I trust PWA with 2.2RC1?

 

 

Thx.

Link to comment
Share on other sites

PWA is working without any problems with 2.2RC1.

 

both of you error is not related to PWA contribution, they related to your other contributions which you probably incorrectly installed...

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

PWA is working without any problems with 2.2RC1.

 

both of you error is not related to PWA contribution, they related to your other contributions which you probably incorrectly installed...

 

Thank you for the reply.

 

I do not have any other installed contributions. It's a straight download of 2.2RC1, then I only applied PWA.

 

Just to make sure we are on the same page, I used PWA version of July 3, 2006. I have apache 2.2.4, PHP 5.2.3. Don't know if that makes any difference. Based on the PWA source code, the <input> fileds for credit cards are outside the <form></form> block. I only found it out by debugging the source.

 

I am getting even more curious now. Where is the catch?

 

Just for sanity check, I'm going to do a new install of 2.2R1, then re-apply PWA. (These are the only OSC files I have ever downloaded on my computer). I'll report back my findings.

 

I really need to get to the bottom of this. I don't want to hack my own fix, then cause more problems in the future.

Link to comment
Share on other sites

Well, I'm back again.

 

This is what I did:

 

1. I upgraded MySQL to 5.0 just to be sure it's not my old sql (4.1) was causing problem

2. I installed 2.2RC1, and tested it was working correctly.

3. I downloaded PWA 1.2.5a (slightly newer than the one I tested before)

 

Boo, here is what I got: "FATAL ERROR: register_globals is disabled in php.ini, please enable it!"

 

I went back and enabled register_globals, the site shows up correctly again!

 

 

I tested PWA, it worked fine if I use check payment. If I chose credit, this is what I got:

 

========================

1406 - Data too long for column 'last_page_url' at row 1

 

update whos_online set customer_id = '0', full_name = ' ', ip_address = '127.0.0.1', time_last_click = '1188416585', last_page_url = '/osc22rc1/catalog/checkout_payment.php?payment_error=cc&error=The+first+four+digits+of+the+number+entered+are%3A+%3Cbr%3EIf+that+number+is+correct%2C+we+do+not+accept+that+type+of+credit+card.%3Cbr%3EIf+it+is+wrong%2C+please+try+again.&cc_owner=&cc_expires_month=&cc_expires_year=&osCsid=tctc2sas7fut5lria0uqek91h5' where session_id = 'tctc2sas7fut5lria0uqek91h5'

 

[TEP STOP]

==============

 

 

In my previous test (PWA 1.2.4), DB was not blowing up, it just complained that credit card number was <br> (empty).

 

 

As you can see in the above error msg, all input fields are empty. I had to modify checkout_confirmation.php. Then the input fields were posted up at least, but with this newer install. I even start to get database error! (at least the PWA 1.2.4 worked after the modification), this is getting worse.

 

If someone actually tested it and it worked, please let me know.

 

 

 

The following source before the modification clearly shows that <input> fields are outside the <form> block, that's why the server got all the empty values. I don't know how that's going to work?

 

======================

 

<td class="main"><b>Payment Information</b></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" colspan="4"></td>

</tr>

<tr>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main">Credit Card Owner:</td>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main"><input type="text" name="cc_owner" value="foo bar"></td>

</tr>

<tr>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main">Credit Card Number:</td>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main"><input type="text" name="cc_number_nh-dns"></td>

</tr>

<tr>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main">Credit Card Expiry Date:</td>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td class="main"><select name="cc_expires_month">

 

....

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="right" class="main">

<form name="checkout_confirmation" action="http://localhost/osc22rc1/catalog/checkout_process.php?osCsid=tctc2sas7fut5lria0uqek91h5" method="post"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form>

 

===============

Link to comment
Share on other sites

had to modify checkout_confirmation.php. Then the input fields were posted up at least, but with this newer install. I even start to get database error! (at least the PWA 1.2.4 worked after the modification), this is getting worse.

 

I had to hack again to get past the DB error, I had to change a line in cc.php to

define('MODULE_PAYMENT_CC_TEXT_TITLE', 'Credit Card (Test only)');

 

now at least a minimum credit card test is working.

 

I start to gather a sense that they meant what they said "use at your own risk". I was expecting a bit more organized solution. I may still use osc, but I may need hack every step of the way. Make myself part of the chaos.

 

I would rather someone prove that I am wrong!

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I am also having problem with this Purchase Without Account addon for 2.2RC1.

When I enable SSL, I can add the product to the cart then when I clicked on purchase without account "checkout button" from shopping_cart.php page, this is where ssl url get's activated then I just see "You cart is empty" page.

Please help someone!!!

 

I really appreciate. I guess I am missing something on ssl variables.

 

Thank you,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...