Permalink
Browse files

Add support for dynamic checkout image buttons (for PayPal campaigns)…

…; Update API to 60.0; Allow 0.00/free shipping for Instant Update
  • Loading branch information...
1 parent 493909d commit 19b3af6fb2d6350dd62c71e0673ee463f63d7d9d @haraldpdl haraldpdl committed Mar 17, 2010
@@ -590,38 +590,28 @@
if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
if ($free_shipping == true) {
-// 57.0 does not accept 0.00 shipping rates in setExpressCheckout
-// $quotes_array[] = array('id' => 'free_free',
-// 'name' => FREE_SHIPPING_TITLE,
-// 'label' => FREE_SHIPPING_TITLE,
-// 'cost' => '0.00',
-// 'tax' => '0');
+ $quotes_array[] = array('id' => 'free_free',
+ 'name' => FREE_SHIPPING_TITLE,
+ 'label' => FREE_SHIPPING_TITLE,
+ 'cost' => '0.00',
+ 'tax' => '0');
} else {
// get all available shipping quotes
$quotes = $shipping_modules->quote();
foreach ($quotes as $quote) {
if (!isset($quote['error'])) {
foreach ($quote['methods'] as $rate) {
- if ($rate['cost'] > 0) { // 57.0 does not accept 0.00 shipping rates in setExpressCheckout
- $quotes_array[] = array('id' => $quote['id'] . '_' . $rate['id'],
- 'name' => $quote['module'],
- 'label' => $rate['title'],
- 'cost' => $rate['cost'],
- 'tax' => $quote['tax']);
- }
+ $quotes_array[] = array('id' => $quote['id'] . '_' . $rate['id'],
+ 'name' => $quote['module'],
+ 'label' => $rate['title'],
+ 'cost' => $rate['cost'],
+ 'tax' => $quote['tax']);
}
}
}
}
}
- } else {
-// 57.0 does not accept 0.00 shipping rates in setExpressCheckout
-// $quotes_array[] = array('id' => 'null',
-// 'name' => 'No Shipping',
-// 'label' => 'No Shipping',
-// 'cost' => '0',
-// 'tax' => '0');
}
$counter = 0;
Oops, something went wrong.

0 comments on commit 19b3af6

Please sign in to comment.