Jump to content



Photo
- - - - -

One Page Checkout Support


  • Please log in to reply
2289 replies to this topic

#61   SpankyAndy

SpankyAndy
  • Members
  • 65 posts
  • Real Name:Andy

Posted 29 April 2009 - 20:30

Hi all,

This is a great contribution and one I definitely want to use, but unfortunately I too am receiving:

Fatal error: Call to a member function pre_confirmation_check() on a non-object in /home/htdocs/includes/classes/onepage_checkout.php on line 548

I notice lines 547 and 548 (below) of onepage_checkout.php start with $GLOBALS. I'm a complete novice here, but does this error have anything to do with register globals being switched off?

$GLOBALS[$_SESSION['payment']]->pre_confirmation_check();
$GLOBALS[$_SESSION['payment']]->confirmation();

If anyody can offer help on this one, I'm sure there's a lot of people who would appreciate it very much !

Cheers

Andy

Edited by SpankyAndy, 29 April 2009 - 20:34.


#62   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 29 April 2009 - 20:31

Thanks Greg, i did have an error in my database modifications...

Now I am getting the same error as a lot of other people here. it is this one:

Fatal error: Call to a member function on a non-object in http://...includes/c...ge_checkout.php on line 548

It does not appear that this question has been answered yet, or have I missed something. I really do appreciate the help everyone in this site offers.

Thanks,

Don

#63   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 29 April 2009 - 20:42

A little more detail about my situation

In a play store that does not have authorize.net AIM functional, the contribution works fine. In my live store, which had AIM installed and operational I get the error.

here is the detail from line 548

$GLOBALS[$_SESSION['payment']]->pre_confirmation_check();

So it appears that the contrib is trying to confirm a payment method and is breaking on the AIM module I use to process my credit cards in a secure fashion.

I wish I new more about programming, but I do not.

Any help or insight as to how to fix this would be greatly appreciated.

Thanks,

Don

#64   mrgreg

mrgreg
  • Members
  • 31 posts
  • Real Name:Greg
  • Gender:Male
  • Location:Ft Lauderdale, FL

Posted 30 April 2009 - 04:55

A little more detail about my situation

In a play store that does not have authorize.net AIM functional, the contribution works fine. In my live store, which had AIM installed and operational I get the error.

here is the detail from line 548

$GLOBALS[$_SESSION['payment']]->pre_confirmation_check();

So it appears that the contrib is trying to confirm a payment method and is breaking on the AIM module I use to process my credit cards in a secure fashion.

I wish I new more about programming, but I do not.

Any help or insight as to how to fix this would be greatly appreciated.

Thanks,

Don


Hi Don,
I am a noob myself- stumbling through the activities to get a site up for a friend...

Having acknowledged that, here is what I might do (offered with no understanding of your environment).

I can't re-create your issue and I use Authorize.net as well.

---> Assuming all is well and proper <--- , try this:

1. Make sure you are operating on the latest and greatest Authorize.net API. My particular flavor is here:
http://addons.oscommerce.com/info/6562
Also, Authorize.net will only work over a secure (SSL) connection I think.

2. checkout_confirmation.php uses this:
if (is_array($payment_modules->modules)) {
$payment_modules->pre_confirmation_check();

You might try replacing the corresponding OnePage code with this just for a test.
(onepage_checkout.php, lines 547, 548 I think)

3. Perhaps it is a $'GLOBALS' issue?
http://addons.oscommerce.com/info/2097
See post by CMOTD dated 25 Sep 2007

4. In the future be aware of add-ons that are locked (no community input), buggy out of the box, and ultimately would require money to get them working.

I have disabled the mod until I have time to iron out the wrinkles myself... At such time I will post those ironed wrinkles here. I do like the check-out presentation it offers.

Regards,
Greg

#65   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 30 April 2009 - 13:57

Thanks Greg,

I will try those things. I was unaware that members were not allowed to support members on community given contributions. Or are addons different from contriubtions?

I do appreciate your help, but if this is the case, why is there a forum for support. Please accept my apology that I do not better understand the inner workings of how the oscommerce open source system works.

Thanks again Greg, you are great!

Don

#66   Sardonic76

Sardonic76
  • Members
  • 98 posts
  • Real Name:D. Tsamadou
  • Gender:Female
  • Location:Athens, Greece

Posted 30 April 2009 - 14:56

Great contribution!!!

However...
I messed up! /blush.gif' class='bbc_emoticon' alt=':blush:' />

I installed the Set up fee contribution and then I installed the One Page checkout.
The problem now is that the setup fee is not showing up in the cart.
The text for the set up fee shows up, but the amount is not added to the cart.

Any clues what I need to do??? /huh.gif' class='bbc_emoticon' alt=':huh:' />
Pleeeeeease please help!

#67   Sardonic76

Sardonic76
  • Members
  • 98 posts
  • Real Name:D. Tsamadou
  • Gender:Female
  • Location:Athens, Greece

Posted 30 April 2009 - 15:18

Great contribution!!!

However...
I messed up! /blush.gif' class='bbc_emoticon' alt=':blush:' />

I installed the Set up fee contribution and then I installed the One Page checkout.
The problem now is that the setup fee is not showing up in the cart.
The text for the set up fee shows up, but the amount is not added to the cart.

Any clues what I need to do??? /huh.gif' class='bbc_emoticon' alt=':huh:' />
Pleeeeeease please help!


actually....
the problemos this:

If you change the quantity in the cart and hit "update", the setup fee does not get added.

Example:
(100 invitations x 1$) + 60$ setup fee = 160$
Then if you make chages once you go to the cart to 50 invitations, you get a total:
50 invitations x 1$ = 50$
Whereas it should be:
(50 invitations x 1$) +60$ setup fee = 110$
The setup fee is nowhere to be seen.

#68   stukk

stukk
  • Members
  • 8 posts
  • Real Name:James Wood

Posted 30 April 2009 - 19:38

Hey,

Fantastic contribution, having some problems with existing users goign to the checkout, the shipping address appears as a comma and now customer name is s saved with the order.

If anyone has any ideas it would be really appreciated!

Screenshot of the problem

Thanks! James.

#69   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 30 April 2009 - 20:49

Greg,

I understand your message now. I will see if I can figure out how to tell if an addon is locked or not. To me an addon is useless if members can not give other members support on the problem. They might as well have never posted it in the first place.

Don

#70   coorsd

coorsd
  • Members
  • 28 posts
  • Real Name:Donald S. Coors

Posted 30 April 2009 - 20:57

Greg, I now see where the locked thing is. I appreciate your help.

Don

#71   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 30 April 2009 - 21:34

In catalog/checkout.php:

***FIND:

<?php
/*
  $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $

***CHANGE TO:
<?php header("Content-Type: text/html; charset=UTF-8\n");
/*
  $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $

Not pretty, but does this work?

I have not tried charset=UTF-8. I fixed my € issue using charset=ISO_8859-1.



Hi to confirm,
<?php header("Content-Type: text/html; charset=ISO_8859-1");
/*
  $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $


should be in the checkout.php file and everything else remains unaffected. for using the £ as entered normally on the keyboard.

Thanks
Johnny
Getting better with mods but no programmer am I.

#72   jonw118

jonw118
  • Members
  • 123 posts
  • Real Name:Jon

Posted 30 April 2009 - 21:37

Wow. This has been terribly frustrating to get working. I'm close...

BUT- every time I click Submit it takes me to login.php. Has anyone else experienced this???

#73   stukk

stukk
  • Members
  • 8 posts
  • Real Name:James Wood

Posted 30 April 2009 - 23:20

Just fixed my problem with the commas, re uploaded all the original classes files and all working again :-)

#74   foodawgmi

foodawgmi
  • Members
  • 9 posts
  • Real Name:Wladimir

Posted 02 May 2009 - 19:53

steve_s/it Web"experts" since you're the "provider" of this script I have a question for you which I'll post here since I have never received a response from your website:

Is the $350 script posted on your website the exact same script you posted as the "One Page Checkout" contribution? And is it cleaned up (all the unused variables and references to your "renter" script)? I'm asking because if I purchase it, I would not want to have to spend more time on cleaning it up and getting it to work.

Any answers would be greatly appreciated.

Edited by foodawgmi, 02 May 2009 - 19:55.


#75   mondeo79

mondeo79
  • Members
  • 100 posts
  • Real Name:Jay

Posted 03 May 2009 - 10:48

Wow. This has been terribly frustrating to get working. I'm close...

BUT- every time I click Submit it takes me to login.php. Has anyone else experienced this???


I can get it work work fine for cheque/postal order and Paypal IF the user is logged in but for new users unless I enter a password I get redirected to login so there is some sort of validation in checkout.php which is looking for an entry in password and if it is blank its redirecting to login.php

Also when it works for not logged in customers (i.e. they enter a password) it creates the customer twice - the order is only placed once but I end up with two customers added to my customer list.

Edited by mondeo79, 03 May 2009 - 10:52.


#76   oldschoo

oldschoo
  • Members
  • 163 posts
  • Real Name:beth marquardt

Posted 04 May 2009 - 02:21

Will this contribution work with Totalb2b Discount contribution located here:
http://addons.oscomm.../info/3613/v,22

Edited by oldschoo, 04 May 2009 - 02:21.


#77   li_osc

li_osc
  • Members
  • 18 posts
  • Real Name:Lisa
  • Gender:Not Telling

Posted 04 May 2009 - 14:08

This contribution seems to mess up the header, only for the checkout page, any suggestions as to why?
thanks

#78   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 04 May 2009 - 16:39

Okay think I may have the solution for the order details in admin, such a small omission in the original file.

In catalog/includes/classes/onePageCheckout.php

Find this line(around line 60) :-
$order->customer = $_SESSION['onepage']['billing'];


replace to read:-

if (tep_not_null($_SESSION['onepage']['billing']['firstname'])){
				  $order->customer = $_SESSION['onepage']['billing'];
			  }

Given it a test on my system and it appears to work just want to double check before making it an official fix.

Let us know if you have any problems with this one thanks, appears towork both on sts template and normal osc site
Getting better with mods but no programmer am I.

#79   Argus

Argus
  • Members
  • 22 posts
  • Real Name:Ajaton

Posted 04 May 2009 - 17:11

Is there something what i missed totally?

When i go to checkout page i have all prices without VAT? Why? anybody else this problem?

#80   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 04 May 2009 - 18:04

Is there something what i missed totally?

When i go to checkout page i have all prices without VAT? Why? anybody else this problem?


Have you checked that all your store settings in admin are set to display tax.

Configuration mystore, modules order total, tax zones, and your product is set to vat or taxable products whichever it is you use.

The tax displays fine on the standard install as far as i can tell.

Johnny
Getting better with mods but no programmer am I.