News:

Support the VirtueMart project and become a member

Main Menu

Custom shipping calculater

Started by Master_gray, July 05, 2013, 11:44:45 AM

Previous topic - Next topic

Master_gray

Hi everyone,this is a bit long but please read.

I need to make a shipping plug-in for VM2 that will calculate shipping cost,

what i need it to do:

1.The calculator need to workout the the closes suppliers to the clients address
2.Calculate each product in cart as an individual shipment (will explane below)
3.The calculator need to subtract a percentage of our profit from the total shipping coast

Long explanation of the above steps:

1.In VM2 every client has a Zip/postal code in there account info,the shipping calculator need to use the clients address to determine the closest supplier to them
    (we have multiple suppliers for different products)
    Our couriers shipping rate are $100( $ is not the currency we use in south africa) up to 10kg,

Below elements:
supplier1
supplier2
one order with three products

2.example - if the client has three products in there cart and two of the products are from supplier1 and the other product is for supplier2.the two products from suppler1 is calculated as one shipment of a $100 if the two products volumetric weight or physical weight is below 10kg or = to 10kg,if the volumetric weight or physical weight is more then 10kg then the calculator needs to add an additional amount per kg.the same rules apply to the product from supplier two.

3.If the total shipping cost of the three products are $150 and we make a profit of $200 from the products itself then the calculator needs to deduct 50% of our
    profit which is $100 from the shipping cost of $150 which = to $50 difference the client needs to pay (the client only pay the difference)

In simple terms:

1.how do we workout the closest suppliers to out client from there zip/postal code?
2.flat rate for 10kg's and then add an additional amount per kg after 10kg's
3.deduct percentage value from the profit made on the products from the total shipping cost and the client only pays the difference.

Can this be done in php?and do you guys think that it will be hard to do?(i do not know allot about php)

Any help will be great,thanks everyone!!

Ross12


Hi

  Try looking at this plugin. I think it could solve most of your issues

http://virtuemartshipping.com/