Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Skip Payments Page - Support Page


Recommended Posts

Welcome to osCommerce Skip Payments Page.

 

There are various reasons you might want to skip the payments page.

 

This add-on is written to skip the payments page if the basket total is zero.

 

Your first payment method will be "selected" for the order and be shown on the checkout confirmation page but you can add code to hide that if you wish.

 

You can see this in action at www.theukwaltons.co.uk by adding items in the how to section to your basket and checking out.

 

Only 1 edit to implement this feature.

 

Add on is available at:-

 

http://addons.oscommerce.com/info/8741

Edited by geoffreywalton

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Another related add-on to skip the shipping page is at http://addons.oscommerce.com/info/8742

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

  • 2 weeks later...

hi!

thank you for your contribution but I have a little problem with it.

 

If I insert a free product (price = 0,00 €), checkout_payment.php page reporto this error:

 

Fatal error: Call to a member function selection() on a non-object in /web/htdocs/www.dinamo-italia.it/home/checkout_payment.php on line 74

 

where line 74 is:

$payment_select = $payment_modules->selection();

 

do you know why and I can solve it?

thank you very much

riccardo

Link to comment
Share on other sites

@@rikic

 

You could put a test in there to not request a payment method if there is no charge.

 

if (cart total > 0) {

$payment_select = $payment_modules->selection();

}

 

If you search the forum for allow zero value order you should get the exact code.

 

Tips on how to search the forum are in the useful threads link below.

 

HTH

 

G

Edited by geoffreywalton

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

HI Geoffrey,

thank you for your answer.

I've tried to insert the code you pasted but it seems doesn't work (I've changed cart total to $cart_total, I don't if it's right but I'm quite dummy...) and it doesn't work.

I've also tried to search in the forum for allow zero value order wwithout finding a good answer (by the way, your guide is really helpful!).

any idea?

thank you a lot.

riccardo

Link to comment
Share on other sites

  • 2 months later...

Hi Geoffrey,

 

I'm looking to skip the payments page (since there is only 1 option).

 

I would like the payment errors to be shown on checkout confirmation though.

 

I don't think your addon would work for this would it?

 

Also the total would never be 0 when getting to the payment page.

Link to comment
Share on other sites

Robert

 

I am sure it could be altered to do what you want but what payment errors are you expecting on the payment confirmatio page?

 

Cheers

 

G

 

@@sackling

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

@@geoffreywalton I ended up making the changes myself in the payment module, the redirect url was simply the payment page. Changed it to the confirmation page.

 

I am actually trying to add the comments box to the checkout_confirmation page now with no success. (since it is skipped on the payment page).

 

basically I have:

 

if (!tep_session_is_registered('comments')) tep_session_register('comments');
if (isset($_POST['comments']) && tep_not_null($_POST['comments'])) {
$comments = tep_db_prepare_input($_POST['comments']);

}

 

In the header

 

and then in the form:

 

<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments, 'style="width:99%;"'); ?>

 

 

I'm not sure where else to look. Any ideas?

 

 

EDIT: done by changing comments in checkout_process to

'comments' => stripslashes($_POST['comments']));

Edited by sackling
Link to comment
Share on other sites

  • 6 years later...

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