PDA

View Full Version : Simple Checkout for 2.3.1 v1.0



michael_s
02-10-2012, 10:19 AM
Compatibility Instructions

Simple Checkout for 2.3.1 v1.3
http://addons.oscommerce.com/info/8338

with

USPS Rate V4 Intl Rate V2 - v.1.6
http://addons.oscommerce.com/info/8327

ALL CHANGES ARE BEING MADE TO CHECKOUT.PHP

1.

Find:

echo ' ' . $quotes[$i]['methods'][$j]['title'] . '
';

Replace with:

// USPS START
// echo ' ' . $quotes[$i]['methods'][$j]['title'] . '
';
echo ' ' . $quotes[$i]['methods'][$j]['title'] . (isset($quotes[$i]['methods'][$j]['shownString']) ? $quotes[$i]['methods'][$j]['shownString'] : '') . '
';
// USPS END


2.

Find:

shippingSet: function()
{
var el = $(this);
$.ajax(
{
data: 'action=shippingSet&shipping=' + $(this).val(),
success: function(data)
{
el.parent().parent().siblings().removeClass('modul eRowSelected');
el.parent().parent().addClass('moduleRowSelected') ;
checkout.totalsRefresh();
}
});
},

Replace with:

shippingSet: function()
{
var el = $(this);
$.ajax(
{
data: 'action=shippingSet&shipping=' + $(this).val(),
success: function(data)
{
el.parent().parent().siblings().removeClass('modul eRowSelected');
el.parent().parent().addClass('moduleRowSelected') ;
checkout.totalsRefresh();
// USPS START
$('#shownString, #shownStringHide, #shownStringInfo,', el.parent().parent().parent()).hide();
$('#shownString, #shownStringShow', el.parent().parent()).show();
// USPS END
}
});
},

More... (http://addons.oscommerce.com/info/8338)