Jump to content



- - - - -

One Page Checkout Support


  • Please log in to reply
2283 replies to this topic

#121   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 13 May 2009 - 09:44 AM

View PostAnja_R, on May 13 2009, 08:09 AM, said:

Hello osc-community,

first many thanks for this greatful contribution!!

I have two problems with it and i hope, somebody can help me:

1.) how can i translate the  buttoms from the pop-up-window to select/change the payment_adress and/or the shipping_adress to german
     (ave a look on the picture):
[img]http://www.anjas-hobbylaedchen.de/catalog/temp/opc_pic1.JPG[/img]

2.) i have install the following payment_methods:
   a. paypal
   b. secupay
   c. money order
   d. cash on delivery
   e. invoice (only for good customers)
   and
   f. cash on fetching

   and i have install the following shipping_methods:
   a. zones
   b. pickup

   With the contrib "ship2pay" i control, that only can choice the shipping_methods a. if one of the payment_methods a.-e. selected.
   If the customers selected the payment_method f., he can only choice the shipping_method b.

   In the "normal" checkout-way i have no problems with this relation between payment_method and shipping_method.
   If a customer select on the first page the shipping-method "zones" he see on the next page only the payment-methods a.-e.
   Selected the customer the shipping-method "pickup" he see and can only selected on the next page the payment-method "cash on fetching"

   With the contrib "one page checkout" the customers see all shipping-methods and payment-methods, but if he selected "zones" and "cash on fetching"
   he get an error-message like "There was an error setting payment method, please inform IT Web Experts about this error." Or the other way, the
   customer selected "pickup" and one of the payment-methods "paypal, secupay, money order, ...." he get the same error-message.

   What can i do???????????????????????????

   Sorry for my bad english, my german is better ;-))))))))))))))))))))))))))))))


You need to find out where the button names are defined, I suspect the checkout.php language file, but I dont have the files to hand so cant check for you right now.

The other issue I amnot sure about, best to contact IT Web experts.

Johnny
Getting better with mods but no programmer am I.

#122   Anja_R

Anja_R
  • Members
  • 17 posts
  • Real Name:Anja Ruetten

Posted 13 May 2009 - 10:12 AM

Hi Johnny,

thank you for your answer.

Quote

You need to find out where the button names are defined, I suspect the checkout.php language file, but I dont have the files to hand so cant check for you right now.

i search in all contrib-files, but i can´t find the location.....it`s exasperating  :'(

#123   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 13 May 2009 - 04:58 PM

View PostAnja_R, on May 13 2009, 11:12 AM, said:

Hi Johnny,

thank you for your answer.



i search in all contrib-files, but i can´t find the location.....it`s exasperating  :'(

I would look at the includes/languages/english/checkout.php file and copy it to your german directory and edit one of the address fields and see if it updates. as thats the only place where I can see new address and edit address being defined.

I would also check that  the change has worked by opening a new internet browser session.

Johnny
Getting better with mods but no programmer am I.

#124   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 13 May 2009 - 07:13 PM

Hi

has anyone managed to get the change address buttons to work in sts for this mod, as I am struggling like mad to get that to work, the rest appears to be fine.

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

#125   steve_s

steve_s
  • Members
  • 1,580 posts
  • Real Name:steve
  • Gender:Male
  • Location:London

Posted 13 May 2009 - 07:23 PM

View Postjohnnybebad, on May 13 2009, 08:13 PM, said:

Hi

has anyone managed to get the change address buttons to work in sts for this mod, as I am struggling like mad to get that to work, the rest appears to be fine.

Thanks
Johnny

Just wondering what if you copied includes/checkout into your template folder see what happens then

#126   jester420247sl

jester420247sl
  • Members
  • 45 posts
  • Real Name:Shawn

Posted 14 May 2009 - 02:26 AM

I don't have the paypal_standard.php file, can I just download it and add it to / drop it into my oscommerce-2.2ms2 files and have it work alright? Also I have "Discount Coupon Codes" installed will this be a problem?

#127   tokyoguy

tokyoguy
  • Members
  • 28 posts
  • Real Name:Mark McBennett

Posted 14 May 2009 - 05:50 AM

I'm ready to give this contrib a try, but similar to the last poster I don't have the paypal_standard.php file. I'm using paypal_ipn.php and it's working fine so I'd rather not switch to something else. Does anybody know if this contrib can work with PayPal IPN? If so, what changes are needed?

#128   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 14 May 2009 - 06:13 AM

View Poststeve_s, on May 13 2009, 08:23 PM, said:

Just wondering what if you copied includes/checkout into your template folder see what happens then


I have tried alsorts, its an issue with the java somewhere, as if I take out parts of the code associated with it it gives me the non java standard checkout shipping pages.

worth a try let you know how it goes.


As for paypal ipn, try it and see you can always uninstall it if it doesn't work and theres not many changes needed with this mod at all, make back up files of the ones you are going to change so you can just swap it all back.

Make a backup of the database before installing that and it will take you about 20 minutes to install try it and unistall again back to how it was before.

Johnny
Getting better with mods but no programmer am I.

#129   tokyoguy

tokyoguy
  • Members
  • 28 posts
  • Real Name:Mark McBennett

Posted 14 May 2009 - 07:09 AM

I saw one post that said this works with PayPal IPN, so I just ignored the change to the PayPal Standard file and did everything else.

The page loads as it should and has the correct cart details. A good start. But at the bottom of the page, instead of a "Continue" button I get an "Update" button. If I click that, I get the error mentioned early on in this thread:
  Call to a member function pre_confirmation_check() on a non-object in /usr/www/users/tokyoguy/catalog/includes/classes/onepage_checkout.php on line 550

This line is the same as the previous poster:
  $GLOBALS[$_SESSION['payment']]->pre_confirmation_check();

Some possible solutions were offered but I don't think there was definite answer as to what needs to be changed. Anybody?

Does something actually need to be changed in the paypal_ipn.php file?

#130   tokyoguy

tokyoguy
  • Members
  • 28 posts
  • Real Name:Mark McBennett

Posted 14 May 2009 - 07:32 AM

Actually I'm getting the same "Call to a member..." error if I click the "Update" button near the top of the page to update any changes to the cart section, too.

#131   Anja_R

Anja_R
  • Members
  • 17 posts
  • Real Name:Anja Ruetten

Posted 14 May 2009 - 10:33 AM

Hi Johnny,

Quote

I would look at the includes/languages/english/checkout.php file and copy it to your german directory and edit one of the address fields and see if it updates. as thats the only place where I can see new address and edit address being defined.

i do it, but nothing change.
It´s correct, that "New Address" and "Edit Address" define in /languages/LANG/checkout.php (but not "Cancel)
The vars are TABLE_HEADING_NEW_ADDRESS and TABLE_HEADING_EDIT_ADDRESS; this vars are use in includes\checkout\new_address.php and includes\checkout\edit_address.php.

A translation to german non-effective to the buttoms.  :(

#132   magicandmischief182

magicandmischief182
  • Members
  • 181 posts
  • Real Name:Jeffrey Rosen.

Posted 14 May 2009 - 01:09 PM

View Posttokyoguy, on May 14 2009, 01:50 AM, said:

I'm ready to give this contrib a try, but similar to the last poster I don't have the paypal_standard.php file. I'm using paypal_ipn.php and it's working fine so I'd rather not switch to something else. Does anybody know if this contrib can work with PayPal IPN? If so, what changes are needed?
I have the discount coupon codes and another paypal module that doesn't have the paypal_standard.php and everything worked fine.

#133   Argus

Argus
  • Members
  • 22 posts
  • Real Name:Ajaton

Posted 14 May 2009 - 02:48 PM

[img]http://img90.imageshack.us/img90/48/vat.jpg[/img]

It seems i still have that VAT problem? Any idea? Why that is that way? Without that OPC contribution everything work great. Every where else VAT is included but checkout.php page show price without VAT

#134   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 14 May 2009 - 04:16 PM

View PostArgus, on May 14 2009, 03:48 PM, said:

[img]http://img90.imageshack.us/img90/48/vat.jpg[/img]

It seems i still have that VAT problem? Any idea? Why that is that way? Without that OPC contribution everything work great. Every where else VAT is included but checkout.php page show price without VAT


Okay, if you have checked all your settings in admin including the default country is 222 in single page checkout and your products are correctly set up with tax zones etc.

Other than that I am at a loss.

Johnny
Getting better with mods but no programmer am I.

#135   johnnybebad

johnnybebad
  • Members
  • 672 posts
  • Real Name:Johnny

Posted 14 May 2009 - 04:42 PM

View Posttokyoguy, on May 14 2009, 08:32 AM, said:

Actually I'm getting the same "Call to a member..." error if I click the "Update" button near the top of the page to update any changes to the cart section, too.

hold on, ths may seem strange, but try deleting the blank lines in the contribution files, and re upload your files.

Do this starting with the catalog/checkout.php file this may help.

Johnny
Getting better with mods but no programmer am I.

#136   diksergio

diksergio
  • Members
  • 2 posts
  • Real Name:sergio

Posted 14 May 2009 - 06:15 PM

after install Onepage Checkout, I get this error when I pay for my product, that solution is?





1054 - Unknown column 'c.guest_account' in 'field list'

select c.guest_account, c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_email_address, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, co.countries_id, co.countries_name, co.countries_iso_code_2, co.countries_iso_code_3, co.address_format_id, ab.entry_state from customers c, address_book ab left join zones z on (ab.entry_zone_id = z.zone_id) left join countries co on (ab.entry_country_id = co.countries_id) where c.customers_id = '0' and ab.customers_id = '0' and c.customers_default_address_id = ab.address_book_id

[TEP STOP]



please need help !!!!!

#137   steve_s

steve_s
  • Members
  • 1,580 posts
  • Real Name:steve
  • Gender:Male
  • Location:London

Posted 14 May 2009 - 07:48 PM

View Postdiksergio, on May 14 2009, 07:15 PM, said:

after install Onepage Checkout, I get this error when I pay for my product, that solution is?





1054 - Unknown column 'c.guest_account' in 'field list'

select c.guest_account, c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_email_address, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, co.countries_id, co.countries_name, co.countries_iso_code_2, co.countries_iso_code_3, co.address_format_id, ab.entry_state from customers c, address_book ab left join zones z on (ab.entry_zone_id = z.zone_id) left join countries co on (ab.entry_country_id = co.countries_id) where c.customers_id = '0' and ab.customers_id = '0' and c.customers_default_address_id = ab.address_book_id

[TEP STOP]



please need help !!!!!

What contribution have you added that allows guests to checkout, cause guest_account is no where to be found in one page checkout files

Edited by steve_s, 14 May 2009 - 07:49 PM.


#138   sw45859

sw45859
  • Members
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 15 May 2009 - 02:32 AM

A new version of this contribution is on the way, we have already fixed the following issues:
#1: Taxes in pricing
#2: Added the defines for the address book window buttons
#3: removed the ability to remember the customers entered information for one page checkout
#4: done some cleanup in the source for the full js functions vs ones that require php
#5: fixed an issue with the password entry where it was being double encrypted resulting in not being able to log in
#6: fixed an issue where the charset's didn't match up, now the checkout file and it's ajax requests are UTF-8

Answers to problems:
#1: if you see an update button, then you do not have javascript enabled in your browser, this contribution is JS only right now but later will support non-js browsing
#2: if you're getting the error about a call to  on a non-object, then see #1. if that's not the problem then make sure you have a payment method selected
#3: for the sts buttons, the JS in this contribution relies either on a class name or an id assigned to the button, make sure your buttons have the same attributes as the ones in the default setup.
#4: the paypal standard is there because it's in osc 2.2ms2, it's mainly there so that you can see that any payment module that sends an email within itself needs to have those changes made, otherwise you will end up with no address in the emails.

Thank you all for the feedback on this contribution, we're working to make it 100% usable but please understand that it can take time to get to fixing or adding anything to it when there's work on the board that must take priority.

Stephen

#139   tokyoguy

tokyoguy
  • Members
  • 28 posts
  • Real Name:Mark McBennett

Posted 15 May 2009 - 03:54 AM

View Postjohnnybebad, on May 15 2009, 01:42 AM, said:

hold on, ths may seem strange, but try deleting the blank lines in the contribution files, and re upload your files.

Do this starting with the catalog/checkout.php file this may help.

Johnny

Thanks for the suggestion Johnny. I'll try it out later today when I get the time.

And thanks also to sw45859 for at least reassuring myself and I'm sure others that this contrib is still being worked on and improved. I'll check through your tips to see if any relate to my problem (javascript is definitely enabled on my browsers).

#140   tokyoguy

tokyoguy
  • Members
  • 28 posts
  • Real Name:Mark McBennett

Posted 15 May 2009 - 04:40 AM

View Postjohnnybebad, on May 15 2009, 01:42 AM, said:

hold on, ths may seem strange, but try deleting the blank lines in the contribution files, and re upload your files.

Do this starting with the catalog/checkout.php file this may help.

Johnny

The checkout.php file did have one blank line (after the final ?>) but removing it doesn't seem to have solved the problem. I'll need to look into the JS side of things a bit more. I seem to remember another mod installation (a couple of years ago) where I had to sort out an issue with the JS call. I think it related to STS, too.