News:

Looking for documentation? Take a look on our wiki

Main Menu

Always calculate fixed operation costs

Started by krobbers, February 16, 2016, 15:26:29 PM

Previous topic - Next topic

krobbers

The desire is like the shipping lapsed spending x amount which is configured to always keep transaction costs.

I have this operation costs now entered as packaging costs but also lapse if the shipment is free.

Is there a possibility to still have the operation cost which is exactly the same at each order is to prop up, if needed in a different way.

GJC Web Design

no versions or info on what your using for shipping but guess its the std weights and that the fixed fee isn't charged if free shipping is triggered?

Would need a small change in the code to still charge the fixed fee even though shipping is free

in  plugins\vmshipment\weight_countries\weight_countries.php ~ line 198

replace


function getCosts (VirtueMartCart $cart, $method, $cart_prices) {

if ($method->free_shipment && $cart_prices['salesPrice'] >= $method->free_shipment) {
return 0.0;
} else {
return $method->shipment_cost + $method->package_fee;
}
}


with


function getCosts (VirtueMartCart $cart, $method, $cart_prices) {

if ($method->free_shipment && $cart_prices['salesPrice'] >= $method->free_shipment) {
return $method->package_fee;
} else {
return $method->shipment_cost + $method->package_fee;
}
}

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

krobbers

This is indeed what I mean.

I've used it and it just works fine!

Thanks for thinking