Default Country Ignored

  • Posts: 58
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #218233

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : Doesn't really apply to our issue currently but...

Notice: Undefined index: inches in /home/torontos/public_html/administrator/components/com_hikashop/helpers/volume.php on line 45

Notice: Undefined index: inches in /home/torontos/public_html/administrator/components/com_hikashop/helpers/volume.php on line 45

Hiya,

It seems that since updating to v2.6.0 the default country setting is being ignored. We do have an overrided address_template which I reverted with no change (all it does is move the order around a bit).




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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #218235

Hi,

We have an single reference of "inches" in HikaShop ; so the error message is logical.
Please check that you did not import/set incorrect value in some of product configuration.

About the country issue ; I can't reproduce your issue in our demo website.
Can you please apply the patch given by Nicolas in that thread :
www.hikashop.com/forum/install-update/87...to-issue.html#217539
Because it affect the field class, I think it could also affect the country field.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 58
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #218537

Hi Jerome,

I made the suggested change and it didn't make a difference.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
9 years 1 month ago #218543

Hi,

Did you save the custom field with the new default value ?
If you just disabled the country that was by default before and don't save the new one, it might do that.

If that doesn't help, we would need a backend access in order to check your settings.

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

  • Posts: 58
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #218626

Thanks Nicolas. I PM'd login info.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #218820

Hi,

The issue is due to an entry present in your table #__hikashop_zone_link, but linking to a zone which is no more existing.
So I think that you had created a new zone "UnitedStatesofAmerica" and then deleted it.

Please go in your phpMyAdmin interface and delete the entry with the "zone_child_namekey" equal to "country_UnitedStatesofAmerica_151105809". We will add check in HikaShop to avoid this kind of issues.

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

  • Posts: 58
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #218846

Hi,

Thanks for all the help. I really appreciate it.

You are correct, I do recall at some point they added a zone and removed it. It's been so long ago I can't recall the specific reason but it was something like they deleted a state and tried to fix it but ended up reinstalling to fix.

I am a bit confused though with your instructions. When I run this query I get 0 results:

SELECT *
FROM `#__hikashop_zone_link`
WHERE `zone_child_namekey` LIKE 'country_UnitedStatesofAmerica_151105809'
LIMIT 0 , 30

But I do see entries with this query
SELECT *
FROM `#__hikashop_zone_link`
WHERE `zone_parent_namekey` LIKE 'country_UnitedStatesofAmerica_151105809'
LIMIT 0 , 30

The cPanel login is the same as the FTP login and can be accessed at domainname.com:2083

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #218847

Hi,

Yes you have to delete these entries, the ones from the zone_parent_namekey with this value.

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

  • Posts: 58
  • Thank you received: 2
  • Hikashop Business
9 years 4 weeks ago #218909

Thanks @all for the help. This indeed did work but before I dropped those rows I updated all of the existing orders that were using that old value.

The following user(s) said Thank You: Jerome

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

Time to create page: 0.081 seconds
Powered by Kunena Forum