Jump to content


Corporate Sponsors


Latest News: (loading..)

ssnb

Member Since 18 Apr 2008
Offline Last Active Aug 24 2011, 06:04
-----

Posts I've Made

In Topic: osCommerce 3... production-ready... supported?

11 August 2011, 03:26

Hello Harold, congrats on all the improvements.
I hope OSC3 can become the king of carts once again :-)
I'm sure it's been a tough road for you.

In Topic: osCommerce 3... production-ready... supported?

10 August 2011, 22:47

Interested to know what your opinion is now ?

OSC3 ready for production use ?

I'm still using V2 but looking at upgrading.

In Topic: [Contribution] Discount Coupon Codes

10 August 2011, 11:46

One final thing to work on - how to display a success message once the coupon has been added.... that would be sweet!

If anyone already has a method, please share, otherwise I'll look into it.

In Topic: [Contribution] Discount Coupon Codes

10 August 2011, 09:25

Right well, after a few more beers, I've managed to sort it...

I just added in checkout_payment.php - in the upper part of the code, right after the payment classes are declared, a default payment.

// load all enabled payment modules
  if ($order->info['total'] <= 0) {
 	$payment = 'freeofcharge';
	if (!tep_session_is_registered('payment')) tep_session_register('payment');
	tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
	}


Took me all day to figure this out, but now I'm happy :-)

Let me know if you want the instructions...

In Topic: [Contribution] Discount Coupon Codes

10 August 2011, 06:48

Updated:

I've made significant progress!

1) Moved discount coupon code on the checkout_shipping.php page as it makes more sense there (after choose shipping method and before notes)
2) Added free of charge payment method - as trying to bypass the payment page seems impossible

It works fine now EXCEPT:
I can't seem to display JUST the free of charge payment method when the order total is zero -
I've tried using the old trick of disabling payment methods if the order total is zero, but this seems to either end up in a browser loop error or tell me to select a payment method!

I've discovered that in the DB all the payment modules are listed as sort order 0 - I don't know if this is a bug or an error specific to me, but it seems when you disable 1 payment method, they all go !

Will keep trucking on and see how I get on.

If anyone wants the code info on what to do to achieve what I have doen, let me know.