-- HikaShop version -- : 4.7.4
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.1.21
-- Browser(s) name and version -- : Chrome - 114.0.5735.248
Problem
We use Sagepay which requires a delivery address for each transaction. There is a way for a user to have billing address but no shipping address when in checkout, which causes a problem.
Configuration - checkout workflow - Address
1. Type = both (billing and shipping address)
2. Show 'same address' checkbox = Yes
3. Same address checkbox pre-checked = yes
How to replicate
1. User creates a new account outside of checkout.(at this point it does not ask for a billing or shipping address)
2. User adds a product, of type "electronic goods & service" to the basket.
3.User goes to check out, which asks for a billing address (does not ask for a shipping address or show the checkbox for "show 'same address' checkbox")
4. User will now have a billing address but the shipping address is not updated at the same time.
5. User selects payment, which transfers to Sagepay, but this then causes an error as there is no shipping address which is required.
Please note
1. This does not happen when the user creates an account from inside checkout, as the shipping address fills in with the same info, as the billing address, when account is created this way.
2. It also does not happen when the user purchases hardware, which then shows the "show same address checkbox", which is ticked automatically.
Let me know if you need anything from me,
Thanks for the help.