Address gets deleted when made default

  • Posts: 27
  • Thank you received: 4
9 years 9 months ago #218677

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 38.0.5

I noticed a strange flow when selecting a new default (billing) address.

Steps
1) User logs in (user has multiple addresses)
2) User goes to control panel for Addresses (URL is /user-addresses/address)
3) At the top there is a default address. User clicks on an existing address to make as default
4) The page refreshes but with none of the addresses selected as default

I investigated the Address class and saw that if you try to make an existing, published address that has already been used in an order, into a default address, the save function will unpublish it and clone the address.

What is the reasoning behind this logic? I want to know if it's something I should work around or have to change the core class file.

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
9 years 9 months ago #218713

Hi,

That's something we fixed in HikaShop 2.6.0
Updating should fix the problem.
Also, you should update your Joomla as there is an important security issue with it.

The following user(s) said Thank You: fengel

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

Time to create page: 0.055 seconds
Powered by Kunena Forum