Jump to content
Latest News: (loading..)
NimaP

One Page Checkout Support

Recommended Posts

I have a problem with the Discount Coupon Codes Module. Don't know if I'm the only having this problem.

The 'Max Use' and 'Number Available' isn't working. It works when I disable One Page Checkout - but not when I enable it. If I set Max Use to 1 and I use the coupon unlimited.

 

I really appreciate if someone could check if I did something wrong - or is this a general problem?

 

Does anyone have a solution for this? So if someone have installed the Discount Coupon codes module please set the Max Use of Number Available to 1 and see if you can use it only once or unlimited... I think it's not working.

Edited by Frisser

Share this post


Link to post
Share on other sites

Thank you.

 

After the whole afternoon reviewing the forum and reading, I have the module installed.

it looks all is working but "Login button" when "already have an account"

 

This is the piece of code that includes this, but the login button does nothing.

 

 

 

<td class="main" valign="top" width="50%">

<div class="infobox_heading">Dirección de factura</div>

<div class="infobox_content"><table class="infoBoxContents" width="100%" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

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

</tr>

<tr>

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

<tbody><tr id="logInRow">

 

<td class="main">Already have an account? <a href="http://WWW.MIDOMAIN.COM/login.php" id="loginButton"><img src="includes/languages/espanol/images/buttons/button_login.gif" alt="Acceder" title=" Acceder " width="54" border="0" height="21"></a></td>

</tr>

</tbody></table><div id="billingAddress"><table width="100%" border="0" cellpadding="2" cellspacing="0">

<tbody><tr>

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

<tbody><tr>

<td class="main" width="50%">Nombre:</td>

<td class="main" width="50%">Apellidos:</td>

</tr>

 

<tr>

 

 

Hello.

I have been able to open the login box >_<

 

The question was I am using STS and I have found I need a <div> with the boxes.

OK, I see the login box.

 

But.... I always receive an "authorization failed".

 

My scenario is a development scenario with no SSL

Do you have some tips about what can be happening?

 

thank you.

Share this post


Link to post
Share on other sites

Hello again.

 

I am solving all the problems.

All is working but checkout_success.php

 

activated or not OPC, checkout_success.php is empty.

 

I am working with STS enabled, so sts placeholders are empty too.

 

This is the code I have in checkout_success.php

 

require('includes/application_top.php');

 

/* One Page Checkout - BEGIN */

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){

if (!tep_session_is_registered('onepage')){

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

}else{

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);

require_once('includes/functions/password_funcs.php');

require('includes/classes/onepage_checkout.php');

$onePageCheckout = new osC_onePageCheckout();

$onePageCheckout->createCustomerAccount();

}

}else{

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

}

/* One Page Checkout - END */

Share this post


Link to post
Share on other sites

Hello. I have just installed the One Page Checkout module and really like it. It works great! However, the automatic quantity update of the shopping cart is a real pain! When I want to type in "10" it always updates after typing "1", when I want to delete the number with "backspace" it doesn't work at all. Can I somehow set this to manual update without having to install an older version? Or fix this some other way? Thank you in advance for your help!!

Share this post


Link to post
Share on other sites

Hello. I have just installed the One Page Checkout module and really like it. It works great! However, the automatic quantity update of the shopping cart is a real pain! When I want to type in "10" it always updates after typing "1", when I want to delete the number with "backspace" it doesn't work at all. Can I somehow set this to manual update without having to install an older version? Or fix this some other way? Thank you in advance for your help!!

try the previous version includes/checkout/cart.php

 

Steve

Share this post


Link to post
Share on other sites

Hello again.

 

I am solving all the problems.

All is working but checkout_success.php

 

activated or not OPC, checkout_success.php is empty.

 

I am working with STS enabled, so sts placeholders are empty too.

 

This is the code I have in checkout_success.php

 

require('includes/application_top.php');

 

/* One Page Checkout - BEGIN */

if (ONEPAGE_CHECKOUT_ENABLED == 'True'){

if (!tep_session_is_registered('onepage')){

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

}else{

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);

require_once('includes/functions/password_funcs.php');

require('includes/classes/onepage_checkout.php');

$onePageCheckout = new osC_onePageCheckout();

$onePageCheckout->createCustomerAccount();

}

}else{

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

}

/* One Page Checkout - END */

if page is empty blank you have a php error, try looking in the error log if host has any error logs if not

after

 

 require('includes/application_top.php');

 

add

ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

 

now the error should be displayed in your web browser

 

Steve

Share this post


Link to post
Share on other sites

try the previous version includes/checkout/cart.php

 

Steve

 

Thanks for the quick reply! Well, it works when I press "enter", but there's no update button showing.

 

Another question that I had was how to add a "agree to terms and conditions" box to check.

Share this post


Link to post
Share on other sites

try the previous version includes/checkout/cart.php

 

Steve

 

Thanks again, Steve! I figured it out myself! All I had to do is use the old cart.php, as you suggested and the take this part here from the older "checkout.php":

 

 

<td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">

<tr>

<td class="main"><b>Update Cart:</b></td>

</tr>

<tr>

<td><?php echo tep_image_submit('button_update_cart.gif', IMAGE_UPDATE_CART, 'name="updateQuantities" id="updateCartButton"');?></td>

</tr>

</table></td>

 

 

and paste it into the new one, right after:

 

if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true'){

echo '<table cellpadding="2" cellspacing="0" border="0">

<tr>

<td class="main"><b>Have A Coupon?</b></td>

</tr>

<tr>

<td class="main">' . tep_draw_input_field('coupon', '') . '</td>

<td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeemCoupon"') . '</td>

</tr>

</table>';

}

//EOF KGT

?></td>

<td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">

</table></td>

 

 

So, that is fixed, thanks again! :-)

 

The new question I had, about the "must accept terms and conditions" still gives me a headache though. Is there no way around the MATC module and manually integrating it into this mod? It doesn't have to be too fancy...

Share this post


Link to post
Share on other sites

Thanks again, Steve! I figured it out myself! All I had to do is use the old cart.php, as you suggested and the take this part here from the older "checkout.php":

 

 

<td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">

<tr>

<td class="main"><b>Update Cart:</b></td>

</tr>

<tr>

<td><?php echo tep_image_submit('button_update_cart.gif', IMAGE_UPDATE_CART, 'name="updateQuantities" id="updateCartButton"');?></td>

</tr>

</table></td>

 

 

and paste it into the new one, right after:

 

if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true'){

echo '<table cellpadding="2" cellspacing="0" border="0">

<tr>

<td class="main"><b>Have A Coupon?</b></td>

</tr>

<tr>

<td class="main">' . tep_draw_input_field('coupon', '') . '</td>

<td class="main">' . tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'id="voucherRedeemCoupon"') . '</td>

</tr>

</table>';

}

//EOF KGT

?></td>

<td class="main" width="50%" align="right"><table cellpadding="2" cellspacing="0" border="0">

</table></td>

 

 

So, that is fixed, thanks again! :-)

 

The new question I had, about the "must accept terms and conditions" still gives me a headache though. Is there no way around the MATC module and manually integrating it into this mod? It doesn't have to be too fancy...

 

Hi

 

See this post http://forums.oscommerce.com/topic/333292-one-page-checkout-support/page__view__findpost__p__1464501

 

Steve

Share this post


Link to post
Share on other sites

If I have more than one type of payment activated, how do I make it autoselect the first payment automatically when customers reach the checkout page?

Share this post


Link to post
Share on other sites

Hi there,

 

is One Page Checkout working together with the Option Type v2 contribution (http://www.oscommerce.com/community/contributions,6818/category,all/search,option+type) ?

 

Would be nice to hear that it works...

Thanks!

It should do unless you add any code the the checkout pages, checkout_shipping.php, checkout_payment.php if so you would have to find the code in OPC and then add it

 

Steve

Edited by steve_s

Share this post


Link to post
Share on other sites

Hmm hi everyone,

 

I think the onecheckout contrib should have an uninstall SQL file

 

I would like to unistall the SQL generated by onecheckout installation, can anyone write:

 

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 wihtout account', 7575, 2, NULL, now(), NULL, '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', 'set.me.to.valid@email.address', '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\'),');

Edited by Francys

Share this post


Link to post
Share on other sites

Also i have undone evertyhing but the option OnePage checkout still appears in admin

what is missing? is it because the SQL?!

thanks

Share this post


Link to post
Share on other sites

Also i have undone evertyhing but the option OnePage checkout still appears in admin

what is missing? is it because the SQL?!

thanks

if you just have the menu option in configuration drop down menu, then you will have to delete it from configuration_group table using phpmyadmin

 

Steve

Share this post


Link to post
Share on other sites

if you just have the menu option in configuration drop down menu, then you will have to delete it from configuration_group table using phpmyadmin

 

Steve

 

Thanks for replying Steve, SQL classes were nice though i have studied more but as i didn't implemented much in SQL i don't have it fresh, so i guess i can do it just browsing the table structure and delete the menu in configuration_group table with phpmyadmin.

 

If it would be possible someone post an SQL uninstall would be nice.

 

Anyway i have one more question: I am using in my shop the option / addon Only logged in customers can see prices, in this scenario would One Checkout be usable with any advantages?? (so i would keep the One Checkout installed in my web)

Replies would be highly appreciated.

 

Thanks in advance

Edited by Francys

Share this post


Link to post
Share on other sites

Thanks for replying Steve, SQL classes were nice though i have studied more but as i didn't implemented much in SQL i don't have it fresh, so i guess i can do it just browsing the table structure and delete the menu in configuration_group table with phpmyadmin.

 

If it would be possible someone post an SQL uninstall would be nice.

 

Anyway i have one more question: I am using in my shop the option / addon Only logged in customers can see prices, in this scenario would One Checkout be usable with any advantages?? (so i would keep the One Checkout installed in my web)

Replies would be highly appreciated.

 

Thanks in advance

Hi

 

I would suggest setting in admin for one page checkout customer must be loged in to true, as adding a product to cart and checking out without knowing the price till their logged in wont happen or you will get a lof of abandoned carts

 

Steve

Share this post


Link to post
Share on other sites

Hi

 

I would suggest setting in admin for one page checkout customer must be loged in to true, as adding a product to cart and checking out without knowing the price till their logged in wont happen or you will get a lof of abandoned carts

 

sql to uninstall OPC

DELETE FROM `configuration` WHERE `configuration_group_id` = 7575;
DELETE FROM `configuration_group` WHERE `configuration_group_id` = 7575;

 

Steve

Share this post


Link to post
Share on other sites

If I have more than one type of payment activated, how do I make it autoselect the first payment automatically when customers reach the checkout page?

 

 

nobody knows how to do this?

Share this post


Link to post
Share on other sites

nobody knows how to do this?

Hi

 

The old version, did do this, but they removed it and its to do with javascript i believe but i dont know javascript, best get a freelancer it wont cost much

 

Steve

Share this post


Link to post
Share on other sites

Need help.

 

I don't know why I cannot see the tax line.

 

I don't know neither if is a problem with one page checkout, but I cannot see tax line with OPC activated or OPC deactivated.

 

Can somebody address me in the right direction?

 

Thank you.

Share this post


Link to post
Share on other sites

Hi

 

The old version, did do this, but they removed it and its to do with javascript i believe but i dont know javascript, best get a freelancer it wont cost much

 

Steve

 

 

what version would that be? I might be able to use it.

Share this post


Link to post
Share on other sites

I have OPC 1.2 installed and there are few things which are not working on the site

 

1) The ajax popup as shown on ITwebexperts site are not at all there in the contribution. I am unable to see the popups. I am using SSL and authorize.net gateway

2) My shipping address gets blank when someone already registered login through checkout

 

Can anybody had similar problems? How can i fix those?

Please help!!

Share this post


Link to post
Share on other sites

what version would that be? I might be able to use it.

i think it was 1.0.8 has been awhile though

 

Steve

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×