Author Topic: Canada Post Virtuemart 3 Plugin  (Read 3052 times)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Canada Post Virtuemart 3 Plugin
« on: April 22, 2016, 15:10:42 pm »
The Virtuemart 3 Canada Post Shipping Plugin

This is the VirtueMart 3 Canada Post Shipping Plugin that returns live rates from Canada Post based on postcodes and weight.

Installs as native Joomla 3 Plugin.

You can download it here - The Virtuemart 3 Canada Post Shipping Plugin


Download our Virtuemart 3 Canada Post Shipping Plugin Instruction PDF to see everything you need to know about it.

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ddrapeau

  • Beginner
  • *
  • Posts: 8
Re: Canada Post Virtuemart 3 Plugin
« Reply #1 on: May 21, 2016, 02:26:29 am »
After years of jerry-rigging shipping rules, finally a Canada post shipping module!  I've tried this shipping module out and it works great. The instructions were pretty easy to understand. (Only error was that you need a Canada post business account for the module, and that was not specified.) Otherwise everything has been excellent. GJC Web Design even pro-actively offered me a free re-download when they updated the module to display estimated arrival time.

julash

  • Beginner
  • *
  • Posts: 12
Re: Canada Post Virtuemart 3 Plugin
« Reply #2 on: July 17, 2016, 15:30:10 pm »
Is there any demo site?

Thanks
Julash

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Canada Post Virtuemart 3 Plugin
« Reply #3 on: July 20, 2016, 16:18:52 pm »
sent you an email
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Macs_Upcycling

  • Beginner
  • *
  • Posts: 10
  • Open Cart, J2 Store & MijoShop Survivor
    • Mac's Upcycling
  • VirtueMart Version: 3.0.18
Re: Canada Post Virtuemart 3 Plugin
« Reply #4 on: August 14, 2016, 14:02:39 pm »
Re: Canada Post plugin for VM3. Canada Post uses the following criteria when calculating shipping prices:

Sizes and Weights

Maximum size

• No one dimension may exceed 2 m (78.7 in.)
• Maximum length plus girth = 3 m (118 in.)

Oversize

• A surcharge applies if the length, width or height exceeds one metre

Minimum size
• 100 mm x 70 mm x 1 mm (3.9 in. x 2.7 in. x 0.039 in.)

Minimum dimensions for mailing tubes:

• 100 mm x 23 mm x 23 mm (3.9 in. x 0.8 in. x 0.8 in.)

Maximum weight

• 30 kg (66 lb.)

Does this CP plugin use the above criteria? I ask this as I can't seem to see a 'volumetric' option (weight, length, width, height inputs) to comply with their system.

Can you please confirm that weight and dimension calcs are included in the code.

Thanks!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Canada Post Virtuemart 3 Plugin
« Reply #5 on: August 14, 2016, 19:03:50 pm »
At the moment I am only sending the weight.

There is a check for over 30kg (the std. limit of the method) or if the "Allow overweight orders" is chosen then the excess is calc. by a "factor" on a by kilo basis based on the returned price for 30Kg.

there is an over length check for the 2 meters

Code: [Select]
   private function _lengthCond($cart, $method) {
$too_long = 1;
foreach ($cart->products as $product) {
   //Check lengths
if($product->product_length > 200){//if any length is greater than 200cm
$too_long = 0;

}

but only individually on each items length

Volumetric calc is extremely complex as it depends how multiple items are packed etc etc.. 

as for individual non complying items.. too long, too small etc - it really depends on how automated you want to get..

I mean just set a min weight for example for too smalls so that the method is excluded .. if it is in a mixed cart then it doesn't matter
too longs add a weight above the max

Some extra code could be added but this would need to be charged for

Cheers
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Macs_Upcycling

  • Beginner
  • *
  • Posts: 10
  • Open Cart, J2 Store & MijoShop Survivor
    • Mac's Upcycling
  • VirtueMart Version: 3.0.18
Re: Canada Post Virtuemart 3 Plugin
« Reply #6 on: August 17, 2016, 13:05:03 pm »
Thank you very much for your detailed explanation, GJC!

"Volumetric calc is extremely complex as it depends how multiple items are packed etc etc."

For my shop, it would be a very rare occurrence for shipping multiple purchases, in which case I would have the customer contact us first for a precise shipping quote and discount.

Can you please PM me for extra code costings that will automagically calculate the necessary volumetric-based shipping costs for our clients.

Cheers, GJC!

Mac

 

Aamirault

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Canada Post Virtuemart 3 Plugin
« Reply #7 on: December 29, 2016, 05:42:22 am »
It is a great plugin, agreed!
Any options to add a custom shipping option ?, I was told Canada post would ship a flat item like a brochure ( under 500g and less than 3/4 inch thick ) letter mail, typically cost about 5.00 CDN.
The plugin starts at cheapest parcel rate by the looks of things?

I am thinking of setting up a by weight additional shippingmethod  that sets the weight max and limit and using that for brochures if this plugin doesn't yet support it, but would be great to know if it can.

Thanks again


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Canada Post Virtuemart 3 Plugin
« Reply #8 on: December 29, 2016, 11:29:03 am »
Hi,

these are according to CanPosts docs the only other supported domestic options that I hadn't included

https://www.canadapost.ca/cpo/mc/business/productsservices/developers/services/rating/getrates/default.jsf

Code    Description
DOM.XP.CERT    Xpresspost Certified
DOM.LIB    Library Materials

But for Library Materials there is the assumption that u are a library

https://www.canadapost.ca/common/tools/pg/manual/PGlibrary-e.asp

there is no "Letter Post" available thru their api as I read it

I guess setup a normal weight method  and add a thickness limit to it ..  or if you can supply more complete info I can add a "static" letter method to the canpost that would just return a fixed amount if the weight was < Xkg and thickness < Xmm

But is this a flat rate Canada wide?

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Macs_Upcycling

  • Beginner
  • *
  • Posts: 10
  • Open Cart, J2 Store & MijoShop Survivor
    • Mac's Upcycling
  • VirtueMart Version: 3.0.18
Re: Canada Post Virtuemart 3 Plugin
« Reply #9 on: February 17, 2017, 18:50:14 pm »
Hi GJC!

I have been testing the CanPost plugin in sandbox mode and have been making steady progress, often referring to your installation PDF and my own tinkering. I think the tinkering bit has gone south as I'm getting the following error code at the top of the page:

Warning
Canada Post : Canada and USA are not valid as International country codes. Use the dedicated structure for these.
Canada Post : /rs/ship/price: cvc-simple-type 1: element {http://www.canadapost.ca/ws/ship/rate-v3}postal-code value 'XXX' is not a valid instance of type {http://www.canadapost.ca/ws/ship/rate-v3}PostalCodeType

I guess this is a common issue and that my configuration settings are interfering with this?

What do I need to amend in the VM CP settings in order to annihilate this error message?

Joomla 3.6.5
VM 3.0.18
Virtuemart 3.0 Shipping via canadapost.ca v.3.0.6

Cheers!

Mac

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Canada Post Virtuemart 3 Plugin
« Reply #10 on: February 17, 2017, 21:09:38 pm »
Hi Mac,

can we move to email on this one as this forum isn't really for support

Thanks

John

webmaster at gjcwebdesign.com
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Macs_Upcycling

  • Beginner
  • *
  • Posts: 10
  • Open Cart, J2 Store & MijoShop Survivor
    • Mac's Upcycling
  • VirtueMart Version: 3.0.18
Re: Canada Post Virtuemart 3 Plugin
« Reply #11 on: February 17, 2017, 21:45:57 pm »
I've just got it working! For some reason, selecting "Cheapest rate always" under the drop-down list, Choose the required shipping method, it didn't like that so I changed to individual shipping options and bingo.

I'm satisfied that I can now start testing for the countries I'll be shipping to.

Cheers fella,

Mac

Macs_Upcycling

  • Beginner
  • *
  • Posts: 10
  • Open Cart, J2 Store & MijoShop Survivor
    • Mac's Upcycling
  • VirtueMart Version: 3.0.18
Re: Canada Post Virtuemart 3 Plugin
« Reply #12 on: May 04, 2017, 14:36:38 pm »
Hi John!


I've sent you an email with detailed test results for several addresses. The variances are very significant between in-store prices given and prices shown in the cart. If you need Super Admin credentials, please let me know. We're launching our store mid-June, so we're very keen to get these price variations resolved.


Cheers!


Mac

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7530
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Canada Post Virtuemart 3 Plugin
« Reply #13 on: May 04, 2017, 18:43:01 pm »
Plugin updated to use dimensions -- you must use centimeters
Tax handling added as well.
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation