Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Page Checkout Support


Guest

Recommended Posts

Ok I have sorted this by adding $order_total_modules; to the globals of function before_process() { and adding the paypal fixes supplied in paypal_standard.

 

I am currently batteling to get mailed gift vouchers to work. I can see "to be used from Gift Vouchers" in the payment options in checkout.php, but it doesnt seem to be doing anything.

Hi

 

You might have to add code to includes/modules/payment/paypal_ipn.php or in the one it sends success to in ext folder, do a file compare with checkout_process.php

 

Steve

Link to comment
Share on other sites

Problem is with the confirmation() in the payment module.

 

in includes/checkout/payment_method.php I changed this

 

 

 

to this

Hi Frisser,

 

Thanks that worked for me :)

 

Anyone else having problems with password keep saying too short?

 

Steve

Link to comment
Share on other sites

Hi Maria, sorry use this block other one had some bits missing as i removed the custom right column

 

Use phpmyadmin i found a bug in the sql so use the one below

   DELETE FROM configuration WHERE configuration_group_id=7575;
DELETE FROM configuration_group WHERE configuration_group_id=7575;
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (7575, 'One Page Checkout', 'Settings for one page checkout', 16, 1);
ALTER TABLE configuration CHANGE configuration_value configuration_value TEXT NOT NULL;
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Enable One Page Checkout', 'ONEPAGE_CHECKOUT_ENABLED', 'True', 'Enable one page checkout?', 7575, 1, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Default Address Country', 'ONEPAGE_DEFAULT_COUNTRY', '223', 'Default country for new address and for checking out without account', 7575, 2, NULL, now(), 'tep_get_country_name', 'tep_cfg_pull_down_country_list(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES(NULL, 'Account Creation', 'ONEPAGE_ACCOUNT_CREATE', 'create', '<b>required</b> - Password is required<br><b>optional</b> - Password is optional, no account created if empty<br><b>create</b> - Password is optional, account created with random password', 7575, 3, '2009-08-27 18:27:14', '2009-04-09 16:00:09', NULL, 'tep_cfg_select_option(array(\'required\', \'optional\', \'create\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Custom Right Column', 'ONEPAGE_SHOW_CUSTOM_COLUMN', 'true', 'Show custom right column', 7575, 4, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\',\'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Require Login', 'ONEPAGE_LOGIN_REQUIRED', 'false', 'Require customer to be logged in to proceed through checkout', 7575, 5, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Oscommerce Columns', 'ONEPAGE_SHOW_OSC_COLUMNS', 'true', 'Show default oscommerce left and right columns', 7575, 6, NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\',\'false\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #1 Heading', 'ONEPAGE_BOX_ONE_HEADING', '100% Private Secure SSL Transaction', 'Custom Colum Box #1 Heading', 7575, 15, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #1 Content', 'ONEPAGE_BOX_ONE_CONTENT', 'Your shopping cart transaction is taking place on an encrypted SSL webpage, meaning it is secure and safe. We respect all of your private information and none of it will be shared with anyone in anyway.', 'Custom Colum Box #1 Content', 7575, 16, NULL, now(), NULL, 'tep_cfg_textarea(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #2 Heading', 'ONEPAGE_BOX_TWO_HEADING', 'Ordering Information', 'Custom Colum Box #2 Heading', 7575, 17, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Custom Colum Box #2 Content', 'ONEPAGE_BOX_TWO_CONTENT', '<b>Processing Time</b><br>We will process your order as quickly as possible. Typical processing time for orders shipped ground is 1  2 days. For expedited shipping (2 day or overnight) we make every effort to ship the order the same day if ordered before 2pm.<br><br><b>Order Tracking</b><br>After your order is placed, you can login anytime 24/7 to view the status of your order. When your order is shipped, you will receive a shipment notification with a tracking number.', 'Custom Colum Box #2 Content', 7575, 18, NULL, now(), NULL, 'tep_cfg_textarea(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Send Debug Emails To:', 'ONEPAGE_DEBUG_EMAIL_ADDRESS', '[email protected]', 'This will send the debug emails to the specified email address these emails are used for debugging', 7575, 19, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Show Address in input Fields', 'ONEPAGE_CHECKOUT_SHOW_ADDRESS_INPUT_FIELDS', 'False', 'Show address for logged in customers in input fields instead of just showing text?', 7575, 20, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Make loader message popup', 'ONEPAGE_CHECKOUT_LOADER_POPUP', 'True', 'Make loader message popup?', 7575, 21, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Auto-show billing/shipping modules', 'ONEPAGE_AUTO_SHOW_BILLING_SHIPPING', 'True', 'Auto-show billing/shipping modules?', 7575, 33, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Auto-show billing/shipping Default Country', 'ONEPAGE_AUTO_SHOW_DEFAULT_COUNTRY', '223', 'Default Country for auto-show billing/shipping address', 7575, 34, NULL, now(), 'tep_get_country_name', 'tep_cfg_pull_down_country_list(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Auto-show billing/shipping Default State', 'ONEPAGE_AUTO_SHOW_DEFAULT_STATE', '12', 'Default State for auto-show billing/shipping address', 7575, 35, NULL, now(), 'tep_cfg_get_zone_name', 'tep_cfg_pull_down_zone_list_one_page(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Auto-show billing/shipping Default zip code', 'ONEPAGE_AUTO_SHOW_DEFAULT_ZIP', '93401', 'Default zip code for auto-show billing/shipping address', 7575, 36, NULL, now(), NULL, NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Telephone Required', 'ONEPAGE_TELEPHONE', 'False', 'Telephone will be a required field?', 7575, 37, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Move zip/post code input boxes below state', 'ONEPAGE_ZIP_BELOW', 'False', 'Move zip/post code input boxes below state?', 7575, 38, NULL, now(), NULL, 'tep_cfg_select_option(array(\'False\',\'True\'),');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Dont show shipping and handling address checkbox or ship methods if weight of products = 0', 'ONEPAGE_CHECKOUT_HIDE_SHIPPING', 'false', '', '7575', '100', NULL, now(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Addresses Layout', 'ONEPAGE_ADDR_LAYOUT', 'vertical', '', '7575', '1000', NULL, now(), NULL, 'tep_cfg_select_option(array(''vertical'', ''horizontal''), ');   

 

Steve

Link to comment
Share on other sites

It's work for me:)

 

 

Maria, just use sql from newest version in php my admin - it's should work

 

Hi, Torquemada,

 

I tried to update my sql version with my hosting supplier, and they told me the version available to their users now is recent and users can't update at anytime. I use cPanel, which gives me access to phpMySql and other programs. So I think I'll have to try and change the old entries like you said, but I really don't know how to do it.

 

I'll try to do it with the help of a programmer, I hope I can put it to work soon.

 

Many thanks for your tips!

 

Maria

Link to comment
Share on other sites

Hi, Torquemada,

 

I tried to update my sql version with my hosting supplier, and they told me the version available to their users now is recent and users can't update at anytime. I use cPanel, which gives me access to phpMySql and other programs. So I think I'll have to try and change the old entries like you said, but I really don't know how to do it.

 

I'll try to do it with the help of a programmer, I hope I can put it to work soon.

 

Many thanks for your tips!

 

Maria

Hi Maria

 

use cpanel, click on phpmyadmin, click on the stores database now click on the sql tab copy and paste the sql above your post, that i posted click on go and your all done

 

Steve

Edited by steve_s
Link to comment
Share on other sites

if you dont like the cart update feature on key up

 

in includes/checkout/cart.php find

echo tep_draw_input_field('qty[' . $order->products[$i]['id'] . ']', $order->products[$i]['qty'], 'size="3" onkeyup="$(\'input[name^=qty]\').attr(\'readonly\', true); $(\'#updateCartButton\').trigger(\'click\')"');

 

change it to

echo tep_draw_input_field('qty[' . $order->products[$i]['id'] . ']', $order->products[$i]['qty'], 'size="3" onBlur="$(\'input[name^=qty]\').attr(\'readonly\', true); $(\'#updateCartButton\').trigger(\'click\')"');

 

now it will update when they click any where outside the text box

 

Steve

Link to comment
Share on other sites

Hi Maria

 

use cpanel, click on phpmyadmin, click on the stores database now click on the sql tab copy and paste the sql above your post, that i posted click on go and your all done

 

Steve

 

Thanks Steve! I didn't see your reply.

 

I'll try that and I'll give you feedback.

 

You're great!

 

Maria

Link to comment
Share on other sites

Hi Steve

dont know how to search the topic in this post so don't know if someone else already worked this out.

I would like to force the customer's country to be only US.

I know there is a contribution that would do that, but I dont know if it is compatible with one page checkout and I am wondering if someone already accomplished it by working on the customer form code.

Please let me know. Thank you.

Link to comment
Share on other sites

Just installed this contribution. I have 2.2 RC2a. Just tried and all seems to be working okay except of a couple of little bugs...

1: Under "Have a Coupon" is the open coupon box and next to it it says "IMAGE_REDEEM_VOUCHER". It should be a button or image instead of the text. I don't know how to fix that...I'm sure it's simple for someone out there.

 

2: Just below that are 2 address fields all filled out. I'm assuming because I'm the site owner that it they are the billing address and the shipping address but to the customer it's confusing because they are not labeled as such. Can that be fixed?

 

Thanks.

Rob

Link to comment
Share on other sites

Hi Steve

dont know how to search the topic in this post so don't know if someone else already worked this out.

I would like to force the customer's country to be only US.

I know there is a contribution that would do that, but I dont know if it is compatible with one page checkout and I am wondering if someone already accomplished it by working on the customer form code.

Please let me know. Thank you.

Hi

 

You can select the county to be default in one page checkout admin, or you can change the default county in the language file catalog/includes/languages/english.php

 

simply amend the define for the default country to

define ('DEFAULT_COUNTRY', STORE_COUNTRY);

 

this will now use the country that you set your store to in admin>configuartion>my store

 

Steve

Link to comment
Share on other sites

Just installed this contribution. I have 2.2 RC2a. Just tried and all seems to be working okay except of a couple of little bugs...

1: Under "Have a Coupon" is the open coupon box and next to it it says "IMAGE_REDEEM_VOUCHER". It should be a button or image instead of the text. I don't know how to fix that...I'm sure it's simple for someone out there.

 

2: Just below that are 2 address fields all filled out. I'm assuming because I'm the site owner that it they are the billing address and the shipping address but to the customer it's confusing because they are not labeled as such. Can that be fixed?

 

Thanks.

Rob

Hi Rob,

 

Make sure you upload the language file, that should fix both of the problems, catalog/includes/languages/english/checkout.php

 

Steve

Link to comment
Share on other sites

Hi Maria

 

use cpanel, click on phpmyadmin, click on the stores database now click on the sql tab copy and paste the sql above your post, that i posted click on go and your all done

 

Steve

 

 

Hi Steve,

 

It worked great!

Thank you!

 

Maria

Link to comment
Share on other sites

Hi Rob,

 

Make sure you upload the language file, that should fix both of the problems, catalog/includes/languages/english/checkout.php

 

Steve

 

Hi Steve,

Thanks for the quick response but I do have that file installed. There is no reference to Discount Coupons within that file. Do I need to modify it?

Rob

Edited by custompilotshirts
Link to comment
Share on other sites

In the installation instructions for the file catalog/includes/modules/payment/paypal_standard.php it says

AFTER

 

global $cart

 

ADD

 

/* One Page Checkout - BEGIN */

global $onePageCheckout;

/* One Page Checkout - END */

 

There are 3 instances of the code "global $cart" within that file. Which one is the proper one to add the code after? The 1st, 2nd, or 3rd location of "global $cart"?

I don't use Paypal with my site but may in the future. Thanks.

Rob

Link to comment
Share on other sites

Hi Steve,

Thanks for the quick response but I do have that file installed. There is no reference to Discount Coupons within that file. Do I need to modify it?

Rob

Hi Rob,

 

Maybe its something that gets added to a language file, when you add CCGV

 

Steve

Link to comment
Share on other sites

Hi Steve

I already had the US as default in the admin of one page checkout...I understand what you mean...but I would like to have US as the only country available (no drop down menu with other countries list) and then leave the US states as drop down menu...

There is a contribution that does that but I dont know if it is compatible with yours

is there a way to do it tweaking the registration form code?

 

Hi

 

You can select the county to be default in one page checkout admin, or you can change the default county in the language file catalog/includes/languages/english.php

 

simply amend the define for the default country to

define ('DEFAULT_COUNTRY', STORE_COUNTRY);

 

this will now use the country that you set your store to in admin>configuartion>my store

 

Steve

Link to comment
Share on other sites

In the installation instructions for the file catalog/includes/modules/payment/paypal_standard.php it says

AFTER

 

global $cart

 

ADD

 

/* One Page Checkout - BEGIN */

global $onePageCheckout;

/* One Page Checkout - END */

 

There are 3 instances of the code "global $cart" within that file. Which one is the proper one to add the code after? The 1st, 2nd, or 3rd location of "global $cart"?

I don't use Paypal with my site but may in the future. Thanks.

Rob

Hi Rob,

 

Just use the paypal_standard.php that comes with one page checkout look in modules/payment folder for it

 

Steve

Link to comment
Share on other sites

Hi Steve

I already had the US as default in the admin of one page checkout...I understand what you mean...but I would like to have US as the only country available (no drop down menu with other countries list) and then leave the US states as drop down menu...

There is a contribution that does that but I dont know if it is compatible with yours

is there a way to do it tweaking the registration form code?

Hi

 

You will have to delete the other countries using phpmyadmin on the countries table

 

Steve

Link to comment
Share on other sites

Only active and inactive and sort order.

 

I have the same problem with our credit card module.

Dose it even select the payment module when you click on it, ie it refreshes the payment mod ot it just keeps saying loading?

 

Steve

Link to comment
Share on other sites

Not making much progress here at all, am I missing something here? I am trying to use gift vouchers. In OPC there is a checkbox where it says "to be used from Gift Vouchers" when the customer has a voucher on his account. But that does nothing and the amount goes to paypal without any reduction and no reduction appears on checkout.php either.

 

For discount coupons however, when I coupon code is entered it reduces the value in both checkout.php and in paypal Any ideas?

Link to comment
Share on other sites

Not making much progress here at all, am I missing something here? I am trying to use gift vouchers. In OPC there is a checkbox where it says "to be used from Gift Vouchers" when the customer has a voucher on his account. But that does nothing and the amount goes to paypal without any reduction and no reduction appears on checkout.php either.

 

For discount coupons however, when I coupon code is entered it reduces the value in both checkout.php and in paypal Any ideas?

Hi

 

It is meant to work with gift vouchers, maybe its the testing of its enabled is a problem

 

in checkout.php and check for the other files find any Radeos and replace with radios ie see example of code below

 

function clearRadeos(){
document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;
for (counter = 0; counter < document.checkout.payment.length; counter++) {
  // If a radio button has been selected it will return true
  // (If not it will return false)
  if (document.checkout.cot_gv.checked){
	document.checkout.payment[counter].checked = false;
	document.checkout.payment[counter].disabled=true;
  } else {
	document.checkout.payment[counter].disabled=false;
  }
}
 }
<?php
} else {
 $coversAll=false;?>

 function clearRadeos(){
document.checkout.cot_gv.checked=!document.checkout.cot_gv.checked;

 

Steve

Edited by steve_s
Link to comment
Share on other sites

Just made another discovery....

In the instructions under catalog/checkout_process.php is says:

REPLACE

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

 

WITH

/* One Page Checkout - BEGIN */

// tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

/* One Page Checkout - END */

 

In my catalog/checkout_process.php file there are 2 places where it has

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

 

First it's around line 32 and next it's around line 44

 

So...do I REPLACE both of them or just one of them with the REPLACE WITH code? If just one...which one?

Thanks!!!

Rob

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...