Canada Post shipping not showing up at checkout

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #74797

Hi,

I'm trying to get the Canada Post shipping plug-in working, and at the moment it's not showing up as a shipping option. I think I've set everything correctly according to other forum topics and the set-up at CP's end. I've set up a 'dummy' rate with the manual shipping plug-in and it's working. Note: we'll only be shipping to addresses in Canada.

I'd appreciate it if you could take a look at the attached screen shots to see if I've missed anything. Please let me know if you need any other info (more screen shots, backend access, etc.).

Many thanks.

Dave

test.cheese2go.ca/index.php/shop-main

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 11 months ago #74799

Hi Dave,

Can you try it with the "Maximum price" set to nothing ? :).

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #74805

Mohamed,

Thanks for the quick response!

I've tried with various combinations of min and max prices set to 0 or empty, with the same result: still not showing up.

Just to make sure: is it sufficient to just click on proceed to checkout again to see if such a change makes a difference, or would I have to log out (or other) to see that?

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 11 months ago #74950

Hi Dave,

Can you test it with the last version of the Canada post shipping method ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #75059

Hi Mohamed,

Current versions of Hikashop and CP plugin now installed. I tested again with different combinations of min and max prices, but it's still not showing up on at checkout. Otherwise nothing is different from the previous screenshots.

I also checked with CP and I'm pretty sure everything is set correctly at their end.

Thanks again for responding quickly.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 11 months ago #75068

Ok,

So can you give me a temporary access to your back-end by PM ?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 11 months ago #75258

Hi,

The problem was coming from the factthat you didn't set any dimension for your products.

When I set dimension to your Beemster Classic Gouda product :

Attachments:
Last edit: 11 years 11 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #75968

Hi Mohamed,

Thanks!

How does HikaShop use the product dimensions to determine the number of packages? Or is that something that CP returns? Can HikaShop submit a shipping request, or does it just get a cost estimate based on weight and size? Is it possible to save or view the XML data that HikaShop sends out?

Dave

PS. Great component. I hope to use it for other sites in the near future.

Please Log in or Create an account to join the conversation.

  • Posts: 82730
  • Thank you received: 13343
  • MODERATOR
11 years 11 months ago #76159

Hi,

There is an algorithm in the Canada Post plugin which can group the products into one package (until the restrictions imposed by Canada Post) and then the plugin sends the package size to Canada Post in order to get the shipping fee. Or you can have it ask the shipping fee for each product and them sum all of them into one price.
That is controlled by the "group packages" option of the plugin.
So it's not an estimate fee calculated by the plugin based on a shipping fee table that would be in the plugin.

There is no option to view the xml sent by HikaShop.

If you want to see it, you can add the line:
var_dump($xml);exit;
after the line:
curl_setopt($ch,CURLOPT_POSTFIELDS,$xml);
in the file plugins/hikashopshipping/canadapost/canadapost.php and that will display the xml on a blank page instead of your checkout.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #76192

Hi Mohamed,

I was asking about the packaging algorithm and XML because I'm trying to figure out a couple of things:

1. Not all shipping options show up for selection at checkout. For example, if I have Priority, Xpresspost and Expedited selected in the CP shipping method and all three enabled at CP end, I get only one or two of those options to select from. This also seems to depend on the shipping address zone because some zones always show Priority, while others never show it. In fact for those that never show it, if I de-select all but Priority in the CP options, I get the message about "no shipping method found". All shipping methods should be available regardless of zone. It''s difficult to test all the scenarios, but the one thing that seems certain is when I have only Xpresspost or Expedited selected at CP end, then that one shows at checkout for any zone I've tried. Ideally, I'd like to have all three appear and the customer be able select the best one for them.

2. I often get the shipment split into two packages (sometimes three!) when there's no physical reason for that. I've been testing this with different combinations of three relatively small items in the cart, and related to the above comment, some arrangements produce "no shipping method found".

Let me know what info I can provide to help sort this out.

Also if there are other HikaShop users in Canada who are working with the Canada Post shipping plugin, let's get in touch. Perhaps we can come up with some useful results/solutions.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #76211

Hi again,

I just wanted to let you know that for #1 of my previous post, I now think that Canada Post is not providing the more expensive options that have the same delivery time. So that's why Priority doesn't show up for some zones. I'll test this some more to verify... no need to spend time on that one.

Still getting those strange packaging breakdowns though.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #76283

Can the number of packages be forced to be one? Given that most of our products are quite small and will likely be ordered in small quantities, this would be a very good temporary fix.

Thanks again.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 82730
  • Thank you received: 13343
  • MODERATOR
11 years 11 months ago #76422

Hi,

Indeed, Canada Post only returns the shipping methods which are possible given all the information of the order (your shop address, the customer address, weight restrictions and volume restrictions). We can't do anything about that.

If you turn on the "group packages" option, the products will be grouped together as much as possible.
If you get two packages, where you only want one, you can reduce the weight/dimensions of your products.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #76443

Hi Nicolas,

So does that mean there's no way to force one package in every situation without changing the product dimensions? I can't change the weights because this will be the main factor that determines the shipping cost.

I'll try the small dimensions with a few products, but am reluctant to change all of them because I'm still curious as to why I would get anywhere between one and three packages for different combinations of three items, all of which are quite small (all around 10x10x5 cm or so).

Thanks, I really appreciate all the quick responses.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 11 months ago #76610

Hi,

I assume it's definitely not possible to force a package since the proposed packages directly come from the Canada Post API.
However, you may try without specifying dimensions for your products, the packages proposed will probably be different.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #76688

OK, thanks. But I must have something for the dimensions of products, that's where this thread began.

So far I seem to be having success with setting the dimensions of all 'small' products to 1x1x1 cm. Then if I set the 'large' products, which are to be shipped separately, to slightly larger than the maximum dimensions in the Canada Post shipping plugin, I get the 2 packages as required. I'll continue to test this over the next couple of days, and let you know if anything else comes up.

One more question though: I can register different box sizes at the Canada Post end, but what effect does the plugin box dimensions have on the information that is sent by HikaShop?

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 82730
  • Thank you received: 13343
  • MODERATOR
11 years 11 months ago #76869

The box dimensions in the plugin define the max size of one package of products. If the system cannot group the products into one such box, it will split the products in two boxes, etc.
So increasing these dimensions could allow you to have bigger packages, but then it also depends on the Canada Post maximum sizes.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #77761

Thanks again for all your help Nicolas.

I've got everything working reasonably well at the moment, but still have some strange behaviour related to the Canada Post module and selecting shipping addresses/shipping options.

1. At the first attempt to checkout after login and on the first step (Address), clicking on Next returns to the same step. This occurs with one address or multiple addresses, and when the highlighted address is used (no new selection is made).

2. In the case where, I go to checkout then select a shipping address different from the one already highlighted, I get "Error while sending XML to CANADA POST. Error code: -5000. Message: XML parsing error." I then have to reload the page (then 1. above applies) or click on a Proceed to Checkout link again (then Next works fine).

3. Selecting a shipping method by clicking on the radio button (even when there's only one available) automatically goes to the next page. In this case I would prefer that the customer be able to see that selection take effect, then make the Next selection themself.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #77912

Hi,

For the third point, there is an option for that in HikaShop > configuration > Checkout, disable "Auto submit shipping and payment methods selection".

You have maybe a JS error, can you see with your browser if you have this kind of problem. Can you give us a screenshot of your checkout configuration ?

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 4
11 years 11 months ago #77946

Hi Nicolas,

Please see the attached screenshot of my checkout configuration. I just disabled the "Auto submit shipping and payment methods selection", so previously that was enabled and this change does correct #3. Excellent!

With that change, #1 is still the same. #2 is still basically the same, but now the radio button is seen as changed, then the error message comes up after clicking on Next (this make sense with the change, but still doesn't help with the error).

In a number of runs through the checkout process with different accounts, addresses, shipping methods and carts, I received no JS errors.

Regards,

Dave

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum