Canada Post Module breaks site

(1/2) > >>

Curt:
In Virtuemart when I activate the Canada Post module and advance through the checkout screen to the choose a shipper screen, the site breaks like this:

The right hand menus slip into the content area, and bottom positions all shift hard left. The Canada Post module still works if you scroll down far enough to find it. Everything else on site continues to work so I’m thinking it may be a CSS issue?
 ??? ???

Discovered that the module cannot stand alone and needs the Standard shipping module published with at least one rate defined...who knew??

jbavington:
I've also been wondering why the CPC shipping module breaks my site and send out a big THANK YOU for this post.

btw, have you determined what part of the Standard Shipping module makes the page display correctly?  I don't want to display Standard Shipping output, as I want people to only choose a CPC method. 

Perhaps some code from the Standard module could be copied into the Canada Post one to make it stand on its own and function/display properly?

Any thoughts/ideas you have would be great.  Thanks.

Jason

Curt:
Jason...

I have not been able to figure what and or why we need to have the standard shipping module present. All I know so far is that it makes everything else work. I do know though that having the standard there, is a good thing, in that if the CP servers are down, the user can still choose a shipping option.

Keep me posted anyways!

Curt

jbavington:
Hi Curt,

Well, I'm happy to report that the Canada Post module is now co-existing quite nicely on my site.  Here's what I did:

1.  Using a Canpar shipping module as well, which I had custom developed (and now free for use for all) for two other clients.  You can grab it here:  http://forum.virtuemart.net/index.php?topic=70560.0

2a.  Created a new Shipper, in VM's Shipping section, and just gave it a name.  This is the only Shipper I have.

2b.  Created a new Shipping Rate, for this Shipper, with all Countries selected, a zip range of 00000 to 99999, weight of 0.001 to 100 and fees of 0.  This ensures that the Standard Shipping Module will get triggered, no matter the Shipping Address.  Also made sure that Standard Shipping was checked in VM's Admin > Config > Shipping section

3.  Modified /administrator/components/com_virtuemart/classes/shipping/standard_shipping.php and removed the html it generates (so no shipper, shipping rate, or radio button appear).  I kept the table structure, though.

4.  Modified /administrator/components/com_virtuemart/classes/shipping/canada_post.php to remove the table headings and also the descriptions that appear under the table.

5.  Set up a Merchant ID account with CPC, then went in to the CPC Shipping Profile website and chose shipping methods and set up boxes (which I understand is very important)

6.  Added Canpar and Canada Post logos.

7.  Went out and treated myself to some ice cream on this 40C day.

See the attached screen cap for how the shipping methods are displayed (chose a Canadian address and client is shipping from Canada).

Now the last thing is to figure out why CPC is returning an ETA of "Thursday January 01, 1970" for one of the Int'l shipping options...

Hope this info. is useful!

Jason

lori_oreo:
Thank you thank you thank you,  jbavington!!


Your reply solved my problem!

I wasn't able to take out the new shipper, as I couldn't figure out php if my life depended on it, but we wanted to offer local delivery and pickup anyway, so it worked out fine.

The only question I have now, is how did you add the logos? Is that in the PHP somewhere?  How do I know where to put them?

Thanks!

Navigation

[0] Message Index

[#] Next page