Akopia Akopia Services

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

[mv] Calculating Shipping Cost



******    message to minivend-users from "Pawel Opala" <pawel@12ave.com>     ******


In my setup, minivend is performing UPS lookup (thanks to this list and some
helpful
tips I was able to get it going -- thank you).  However, my client asked me,
to
add a handling charge, which would equal 20% of UPS fee.
I have tried numerous approaches, searched through the faq and tried to
understand
the documentation, but I was not able to get it going.
Here is what I tried in the shipping.asc:

upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
0.00 round ups_cost;@@COST@@
upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
0.00+ups_cost;@@COST@@
upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
ups_cost;@@COST@@

upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
0.00 round ups_cost(@@COST@@)
upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
0.00 ups_cost(@@COST@@)
upsg    UPS Ground      weight  0       150     u Ground [default zip 72137]
ups_cost(@@COST@@)

here's the 'ups_cost' sub from catalog.cfg:

Sub <<EOF
sub ups_cost{
my($cost) = @_;
return ($cost * 1.2);
}
EOF

I have tried many similar configurations, but none of it worked.
On the checkout page I also tried the following:

[currency][calc][shipping]*1.2[/calc][/currency]

The returned values were bizzare.
So, I ran out of ideas and do not know where to start next.  I would very
much appreciate
any help pointers and ideas.  Thank you in advance.

Pawel Opala

-
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: