News:

Looking for documentation? Take a look on our wiki

Main Menu

BTP Pro Shipping Plugin

Started by PRO, April 02, 2012, 17:06:08 PM

Previous topic - Next topic

John2400

Hi,

just to say I downloaded (shipping plugin )your software tonight. Installed in about two seconds and works beautifully.

Thank you for sharing.

addixtnc

i uploaded and installed plugin but not able to have it appear in virtue mart what ami doing wrong?

John2400

If the plugin is not working

look in plugins and enable it.

Then go to shipment methods and you will see it as one of the drop down options.

mowgs

Huge improvement on standard VM shipping by weight, country etc.

Cheers!   :D

mbit

Has anyone tested this plugin with VM 1.1.9?

PRO

Quote from: mbit on June 07, 2012, 16:54:02 PM
Has anyone tested this plugin with VM 1.1.9?

mbit, this plugin will NOT work with 1.1

1.1 did not use plugins for payment and shipping

stuart.prevos

Hi
Nice plugin, thanks for sharing, I want to modify it so that instead of having cost per weight, the cost relates to cart price, so if the price is between $1 - $10 it is $5 plus 20%, $11-$20 it is $5 plus 15% etc.
I am guessing the code to modify is somewhere here
=============
function getCosts(VirtueMartCart $cart, $method, $cart_prices) {
   $orderPrice = $this->getOrderPrice($cart, $method->?????????);
   $nbproducts = $this->_nbproductsCond($cart, $method);
   
   if ($orderWeight >= $method->weight_min1 && $orderWeight <=$method->weight_max1){
   return $orderWeight * $method->rate1;
}
   elseif ($orderWeight >= $method->weight_min2 && $orderWeight <=$method->weight_max2){
   return $orderWeight * $method->rate2;
}
   elseif ($orderWeight >= $method->weight_min3 && $orderWeight <=$method->weight_max3){
   return $orderWeight * $method->rate3;
}
   elseif ($orderWeight >= $method->weight_min4 && $orderWeight <=$method->weight_max4){
   return $orderWeight * $method->rate4;
}
elseif ($orderWeight >= $method->weight_min5 && $orderWeight <=$method->weight_max5){
   return $orderWeight * $method->rate5;
}
elseif ($orderWeight >= $method->weight_min6 && $orderWeight <=$method->weight_max6){
   return $method->rate6 * $orderWeight;
}
   else{
       return $method->elsecost;
   }
   
    }
===============
Any advice would be appreciated
Thanks

PRO

$cart_prices['salesPrice']   is what you use


stuart.prevos


dsrpmedia

thanks for this plugin - one question - is it possible to have multiple versions of the plugin run?

(I ship to Canada & the USA & need to have different shipping prices for the 2)

PRO

Quote from: dsrpmedia on June 20, 2012, 03:33:19 AM
thanks for this plugin - one question - is it possible to have multiple versions of the plugin run?

(I ship to Canada & the USA & need to have different shipping prices for the 2)


have you tried it?

dsrpmedia

I`m not sure how I would
- would I have to unzip the package, rename the plugin somewhere & then zip again  before installing? (ie pro ship uas, etc)

PRO

Quote from: dsrpmedia on June 20, 2012, 17:56:47 PM
I`m not sure how I would
- would I have to unzip the package, rename the plugin somewhere & then zip again  before installing? (ie pro ship uas, etc)

have you tried to click "new" when in shippinig methods?
and choose the same plugin

thats teh way teh weight countries worked, and it was also a plugin

dsrpmedia

OMG - I`ve been trying to get a vm2 site working since December -  this is literally the very first thing I `ve tried that has just worked without having to be hacked/fixed/worked around.

Thank you soooo much!

PRO

Quote from: dsrpmedia on June 20, 2012, 19:38:47 PM
OMG - I`ve been trying to get a vm2 site working since December -  this is literally the very first thing I `ve tried that has just worked without having to be hacked/fixed/worked around.

Thank you soooo much!


that feature was exactly why I created the plugin

the weight_countries plugin would have to be done for EACH rate you wanted.

BUT, I wanted it all on 1