If I change address during checkout, Receive error

  • Posts: 60
  • Thank you received: 3
11 years 2 months ago #120884

Please see screen shots. If I click "Proceed to checkout" in the Cart, everything seems to go smoothly. However, if I change a billing/shipping address, I receive the error in the attached screen shot. If I refresh the page the errors go away. If I change addresses again they come right back. Anyone else had this issue?

Thanks in advance!

-- HikaShop version -- : 2.2.1
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.14
-- Browser(s) name and version -- : All browsers

Attachments:

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

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

I think that you'll just have to edit the file "Your Website\components\com_hikashop\controllers\checkout.php", and change this line :

if(in_array($m->shipping_id.'@'.$key, $shipping_ids) && in_array($m->shipping_type.'@'.$key, $shipping_methods)) {
By :
if(is_array($shipping_ids) && is_array($shipping_methods) && in_array($m->shipping_id.'@'.$key, $shipping_ids) && in_array($m->shipping_type.'@'.$key, $shipping_methods)) {

Last edit: 11 years 2 months ago by Mohamed Thelji.
The following user(s) said Thank You: blueagle1829

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

  • Posts: 60
  • Thank you received: 3
11 years 2 months ago #120916

Worked like a charm. Mohamed and nicolas- you guys are awesome!

I assume this will be changed for the next release?

Thanks!

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

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

Hi,

Yes it will be changed for the next release.

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

  • Posts: 2
  • Thank you received: 2
11 years 2 weeks ago #131389

Thank you for posting this fix. I needed it too and it worked great! Hikashop is working great for me. Nice component. I will post a great review on the Joomla Extension Dierctory!

The following user(s) said Thank You: Xavier, Mohamed Thelji

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

Time to create page: 0.100 seconds
Powered by Kunena Forum