i see, cost i see on the code and session, that total weight of the item is already counted...
and i think it would become more better if i could use the total weight to charge the customer the shipping cost...
but then i should modify the database structure then..^^
and i think it would become more better if i could use the total weight to charge the customer the shipping cost...
but then i should modify the database structure then..^^
I already did this mod on a site I set up for a company. Its not hard to do. Unfortantly my access to the site has been removed otherwise I would have posted the code.
You need to create a field that will hold the costs.
You need to create a field that will hold the costs.
Code: Select all
<?php
$rates = '20:2.85,50:5.00';
$data = explode(',', $rates);
$cost = 0;
foreach ($data as $value) {
$array = explode(':', $value);
if ($cart->weight <= $array[0]) {
$cost = $array[1];
break;
}
}
?>
OpenCart®
Project Owner & Developer.
This would be very interesting to know. Can you post the module or is it included in the latest?
Who is online
Users browsing this forum: No registered users and 25 guests