Existing user unable to choose alternate shipping method

  • Posts: 8
  • Thank you received: 0
8 months 3 days ago #360527

-- url of the page with the problem -- : greenwoodtoolsupply.ca/my-cart/checkout/checkout/layout-show
-- HikaShop version -- : 5.0.4
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.1
-- Browser(s) name and version -- : FF 124.02

Hello:
We have 2 shopping methods:
Canada Post adv
Manual (free shipping)

New users who register via Hikashop can see/select either method.
Existing users only see the free shipping method - the Canada Post option is not displayed.
I tried ACL combinations of user groups etc. - nothing changes.
I confirmed that existing users have a Canadian address - a new user with the same address see both options.
Any ideas would be really helpful!
Regards,
Alan

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
8 months 2 days ago #360534

Hi,

The Canada Post shipping plugin requires the city name, the state, the post code and the country to be filled/selected in the address.
What you're describing probably means that the addresses of the old users are missing at least one of these.
For example, if the country field had been unpublished in the past, the users would have had addresses without a country selected.
If you published that field later on, then the new users would have the country properly selected.

I would recommend comparing the old addresses and the new addresses in the hikashop_address table in your database via PHPMyAdmin. It should allow you to find what's missing.

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

  • Posts: 8
  • Thank you received: 0
8 months 1 day ago #360569

That's the weird thing - 2 test users have identical addresses, but only one (Flopsy Cottontail) can see the Canada Post option.
From the hikashop_address table:
"2","5","shipping","Mr","Peter",NULL,"Rabbit",NULL,"31 Dunsmoor Road",,"N6K1T6","London","6125944495",NULL,NULL,"state_Ontario_862",NULL,"1",NULL,"1"

"34","23","shipping","Mrs","Flopsy",NULL,"Rabbit",NULL,"31 Dunsmoor Road",,"N6K1T6","London","6125944495",NULL,NULL,"state_Ontario_862",NULL,"1",NULL,"1"

The 'address_country" field is set to NULL for everyone and there seems to be no way to add it via the backend customer UI.

-Alan

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
8 months 1 day ago #360572

Hi,

Then, what if you enter the value country_Canada_38 for the address_country column of these entries in the hikashop_address table ?
Does it help ?
Also, if the country field is missing, it means that it has been disabled in the Display>Custom fields menu. So you could try activating it, and then editing the addresses and filling it with that field.
If nothing helps or if we can't move forward with all this, we would have to directly look at the situation with a backend access, a FTP access and a PHPMyAdmin access.

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

  • Posts: 8
  • Thank you received: 0
8 months 1 day ago #360587

I added the country_Canada_38 directly to the field and I enabled the country field for both front- and back-end.
Same result...

un/pw:
support2024
Support2024!

greenwoodtoolsupply.ca/administrator/

I can send you sftp/cPanel access via email.
Thank you!
-Alan

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

  • Posts: 8
  • Thank you received: 0
8 months 1 day ago #360588

What email address should I use?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
8 months 15 hours ago #360590

Hi,

Please go through our contact form and don't post credentials on a public forum:
www.hikashop.com/support/contact-us.html

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

  • Posts: 8
  • Thank you received: 0
8 months 8 hours ago #360610

Done!

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
8 months 4 hours ago #360617

Hi,

Thanks.
So, I looked into it, but I'm not able to reproduce the problem.
To me there is no difference regardless of user a new or previous user.
However, I did find a problem: i.imgur.com/sqmjXGj.png
This error message indicates that the dimensions sent to CanadaPost's API should have 0 or 1 digit:
www.canadapost-postescanada.ca/info/mc/b...getrates/default.jsf
But the shipping plugin is sending dimensions with 0 or 2 digits and in your case 2 digits. And because of this, CanadaPost can't return any rate.
I've made a patch in the plugin on your website and changed the code:

			<length>'.$package['x'].'</length>
			<width>'.$package['y'].'</width>
			<height>'.$package['z'].'</height>
to:
			<length>'.round($package['x'],1).'</length>
			<width>'.round($package['y'], 1).'</width>
			<height>'.round($package['z'],1).'</height>
in the file /plugins/hikashopshipping/canadapost_adv/canadapost_adv.php and it has fixed this error.
Then, I do get the shipping methods displayed: i.imgur.com/IuqZSgH.png
Even though I'm still using an old user account with the old address.
So I think that this decimals issue is your problem, not the addresses.
I'll send a report about this patch to the developer of this plugin so that the patch can be incorporated in the plugin.

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

  • Posts: 8
  • Thank you received: 0
6 months 3 weeks ago #361336

I apologize for the late response - thank you very much! All seems good now.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum