[ic] shipping method

Peter peter at pajamian.dhs.org
Tue Aug 12 00:35:07 UTC 2008


On 08/09/2008 07:24 PM, Darnell Hudson wrote:
> On checkout.html for the shipping method it says not enough information.
> what do I need set to fix this. An yes it is on the demo site too.

Try this patch:

Index: dist/standard/include/checkout/initialization
===================================================================
RCS file: 
/var/cvs/interchange/dist/standard/include/checkout/initialization,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 initialization
--- dist/standard/include/checkout/initialization       25 Apr 2004 
17:07:49 -0000      1.1.1.1
+++ dist/standard/include/checkout/initialization       12 Aug 2008 
00:30:51 -0000
@@ -11,11 +11,23 @@
         return $Scratch->{old_browser} ? 'Not a DHTML browser' : 'DHTML 
browser';
  [/calc] -->

-[perl tables="products"]
+[perl tables="products country"]

         ## This section sets the shipping, handling, taxing, and payment
         ## initializations, as well as browser check

+
+       # Initialize country:
+       $Values->{country} ||= $Variable->{SHIP_DEFAULT_COUNTRY};
+
+       # Initialize shipmode:
+       if ($Values->{mv_shipmode} eq 'default') {
+               my $shipmode = $Tag->data('country', 'shipmodes', 
$Values->{country});
+               $shipmode =~ s/^\s+//;
+               $shipmode =~ s/\s.*//;
+               $Values->{mv_shipmode} = $shipmode;
+       }
+
         ## Start with payment mode if none there
         $Values->{mv_order_profile} ||= $Variable->{DEFAULT_PAYMENT_MODE}
 
||'credit_card';




More information about the interchange-users mailing list