Community Add-Ons
| Maintainers: | empo |
Alternative Purchase System v2.0
for osCommerce Online Merchant v2.2
Alternative Checkout System that able to change regular checkout process to something more easy and more short with this System your buyers will able to do purchase by couple clicks.
For test go:http://www.procreator.info and then Test Shop
ps:next generation of "fast buy" hack
The problem with the shiping is that the country and zone are not available to the shiping modules.
The only way i found to solve that is to divide the process in two steps.
first we give the need info for the account...
next we can select from the available shipiping methods...
There also no reason to check out if the cart is empty.
===============
near line 10
replace:
require('includes/application_top.php');
with:
require('includes/application_top.php');
$go_payment = 0;
if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
===============
near line 50
replace:
if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {
with:
if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process_adr')) {
===============
near line 290
replace:
//END DIFFERENT SHIPPING CODE
with:
//END DIFFERENT SHIPPING CODE
$go_payment = 1;
}
}elseif (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {
===============
near line 470
replace:
tep_draw_form('checkout', tep_href_link(FILENAME_CHECKOUT_ALTERNATIVE, '', 'SSL'), 'post','onSubmit="return check_form(checkout);"') . tep_draw_hidden_field('action', 'process' );
with:
tep_draw_form('checkout', tep_href_link(FILENAME_CHECKOUT_ALTERNATIVE, '', 'SSL'), 'post','onSubmit="return check_form(checkout);"') . tep_draw_hidden_field('action', ($go_payment == 1 ? 'process' : 'process_adr'));
===============
The changes above process the to steps...
no we must separate the page contents for the 2 steps.
===============
near line 660
replace:
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);
$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
with:
if($go_payment == 1) {
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);
$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
===============
near line 930
replace:
///*********************************** CUSTOMERS MODULE START**************************//////
with:
///*********************************** CUSTOMERS MODULE START**************************//////
} else {
===============
near line 1080
replace:
<table border="0" width="100%" cellspacing="0" cellpadding="2" valign="top">
<?php
if ($HTTP_REFERER) {
with:
<?php } // end_else !go_payment ?>
<table border="0" width="100%" cellspacing="0" cellpadding="2" valign="top">
<?php
if ($HTTP_REFERER) {
================
I think that may be more problems with this contrib, but i hadnt the time to fully debug it...
for exemple... using the $payment_modules->javascript_validation(); to validate the user input in the second step gives an error.
however i think that is the concept good so as soon as possible i try to test it
===============
no files uploaded
sergio inacio http://www.vfxira.net
