Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] v3.14 Custom Internation Shipping



******    message to minivend-users from "Brent Worley" <brent@12ave.com>     ******

I am working on an internation shipping scheme for a few sites that we make.
However, I am very confused on how to get this to work (most of what I have
worked with is flat-rate, but our client's customers are expanding).

The first thing I did was start working on the shipping.asc database.  I
tried a variety of things, but these are the two I wanted to get to work
(these are snips of code from teh database):

upsg	Standard Shipping	weight	0	150	f [if value country =~ /^usa$?/i] 5.95
[else] 25.95 [/else][/if]

or:

upsg	Standard Shipping	weight	0	150	s ups_cost; [value country]

The subroutine was the same as the fedex example from the docs:

Sub <<EOF
sub fedex_cost{
  my($country) = @_;
  my $cost;
  if($country =~ /^usa?$/i){
    $cost = 5.95;
  }
  else {
    $cost = 24.95;
  }
  return $cost;
}
EOF

I placed this in the catalog.cfg file in the sub section (I believe this is
where it belongs, correct?)

However, all the options I've tried have returned a cost of $0.00 for
shipping.  Has anyone implemented something of similar nature and can give
assistance?  Any help would be appreciated.

Brent Worley

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: