Jump to content



Latest News: (loading..)

* * * * * 5 votes

Simple Checkout - for 2.3.1 (official support thread)


  • Please log in to reply
346 replies to this topic

#341   nobodyfamous

nobodyfamous
  • Members
  • 83 posts
  • Real Name:Chad Meyers

Posted 16 May 2013 - 03:21 PM

I may have found a bug;

1. Create new account - enter bad info requiring a "please fix this" prompt, like an address/password that is too short, or bad email.
2. Fix the bad info, and click continue
3. On the checkout page, the shipping and billing address' are blank (see screen shot)
4. If you click continue you get this error "Fatal error: Cannot redeclare class payment in /**site root**/includes/classes/payment.php on line 13"

Is anyone else having this issue? (this is a stock osC)

Attached Files


Edited by nobodyfamous, 16 May 2013 - 03:22 PM.


#342   nobodyfamous

nobodyfamous
  • Members
  • 83 posts
  • Real Name:Chad Meyers

Posted 16 May 2013 - 04:55 PM

View Postnobodyfamous, on 16 May 2013 - 03:21 PM, said:

4. If you click continue you get this error "Fatal error: Cannot redeclare class payment in /**site root**/includes/classes/payment.php on line 13"

This is unrelated, it was a payment module causing this error. . .I think.

#343   bowsera

bowsera
  • Members
  • 12 posts
  • Real Name:Aaron

Posted 16 May 2013 - 07:13 PM

@nobodyfamous @nobodyfamousYeah, at first glance i thought also the same or that I am missing a closing bracket somewhere...i have cleared the browser cache and reloaded the page a few times with no success

#344   samicon

samicon
  • Members
  • 2 posts
  • Real Name:sam gao

Posted 20 May 2013 - 11:03 PM

Hi,
Thanks a lot for this add-on, it is really useful. Now we want to add guest check out (customer could check out without login)  to our site, any suggestions?

Best,
Sam

#345   nobodyfamous

nobodyfamous
  • Members
  • 83 posts
  • Real Name:Chad Meyers

Posted 21 May 2013 - 12:25 AM

@samicon look in the compatability section, a guest checkout is already listed - add that one

#346   nobodyfamous

nobodyfamous
  • Members
  • 83 posts
  • Real Name:Chad Meyers

Posted 21 May 2013 - 02:57 PM

so I came up with a total hack to temporaray fix my issue.  Is no one else having the same issue with addresses not poulating?

All I can figure is happening is after you "create a new account" the $customer_id is being populated with a number, but $sendto and $billto are remaining empty, but are required for the lines; tep_address_label($customer_id, $sendto, true, ' ', '<br />'); and tep_address_label($customer_id, $billto, true, ' ', '<br />');

So my hack was to insert  this around line 530 before the template_top.php is included.
if(isset($customer_id) && !isset($sendto)) echo '<meta http-equiv="refresh" content="0">'; // hack to fix missing addresses


This sucks, but works for now.  I feel the error is that the address handeling code is being skipped, or loaded too soon.

I do not understand and have not looked at the functions yet for tep_session_is_registered(), & tep_session_register()

Any Ideas?

#347   samicon

samicon
  • Members
  • 2 posts
  • Real Name:sam gao

Posted 22 May 2013 - 06:54 PM

View Postnobodyfamous, on 21 May 2013 - 12:25 AM, said:

@samicon look in the compatability section, a guest checkout is already listed - add that one
Thanks. I just added that, that still needs user to enter account details first in a pop up for guest check out. Is it possible to waive this step to make user enter those account info in the checkout page? e.g. for guest, they can enter their account details, set shipping address, etc in a from in the check out page. Thats what our client requires.

Is there a simple way to do that? any suggestions?

Best,
Sam