Charge Delivery cost based on Currency not Shipping Address

  • Posts: 70
  • Thank you received: 3
  • Hikashop Business
2 years 7 months ago #340440

-- url of the page with the problem -- : deborahblyth.com/
-- HikaShop version -- : 4.5
-- Joomla version -- : 3.10.6

Hi, my deliver charge is based on the Billing address currency. Some people who have their delivery charged are paying the Europe fee just because they are paying in EURO. How do I make the delivery cost to be based on the country address? Thanks


Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340442

Hi,

In HikaShop there is no link between the currency and the addresses.
The "currency" restriction of your shipping methods is based on the currency of the order, regardless of the location of the billing or shipping address.
So what I understand is that you actually want the shipping method selected to be based on the zone of the billing address, regardless of the currency the user is using.
That would mean you would only set the "zone" setting, not the "currency" setting of the restrictions area.
However, the "zone" setting there is based off of the shipping address (because we're talking about shipping methods here), not the billing address.
To change that, you would have to edit the file administrator/components/com_hikashop/classes/shipping.php and change the line:

$zones = $zoneClass->getOrderZones($order);
to:
$zones = $zoneClass->getOrderZones($order, 'shipping_address');
We'll actually change it to:
$zones = $zoneClass->getOrderZones($order, $config->get('shipping_methods_zone_address_type','shipping_address'));
for the next version of HikaShop. That way, you'll be able to change that behavior to your needs by adding an entry with the namekey shipping_methods_zone_address_type and the value billing_address in the hikashop_config table via your PHPMyAdmin so that you won't have to reapply your change after each update HikaShop.

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

  • Posts: 70
  • Thank you received: 3
  • Hikashop Business
2 years 7 months ago #340516

Hi, so I just want to check we are on the same page. We sometimes have people in the UK who have their shipping address as the UK but billing address as EU. So this way they pay in EUROS, but I want them just to pay the UK shipping costs, because we are shipping to the UK.

The way the system is currently configured, is that they end up paying the Europe delivery, even though we are delivering to the UK.

I would like the system to base the delivery charge on the delivery address. Does this mean we need a EURO price for delivery to the UK? Or how could I make this work.

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340518

Hi,

Your new message completely contradicts what you said in your previous one.

HikaShop already bases itself on the Shipping address to provide the shipping fee.

If I check your screenshots on your first message, I can see that a 17.99€ shipping fee is added to the cart. However, the shipping address is in the UK and the shipping methods for the UK should have a fee of 7.75£ not 17.99€, which is for the Europe zone.
If that it your problem, then it means that you have an issue with the way you configured the zones in the System>Zones menu.
I suppose that the UK country must have been added to the Europe zone.

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

  • Posts: 70
  • Thank you received: 3
  • Hikashop Business
2 years 7 months ago #340625

Hi sorry, yes my fault for not being clear. So I tried your suggestions and removed the United Kingdom out of the Europe Shipping Zone but then when I am in say spain and want to get my order delivered to the UK, it now says 'No shipping methods available for your location'.

Any ideas of how I can resolve that. Thx

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340648

Hi,

I don't see why that change of removing the UK from the Europe Shipping Zone would change anything for users with their shipping address in Spain, unless Spain has been added as a sub zone of the UK and not a sub zone of the Europe Shipping zone.
Or are you talking about what happens before they enter their shipping address ?
I'm not able to reproduce the problem on your website.
Could you provide precise instructions to reproduce the problem so that we can better understand the situation ?

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

Time to create page: 0.088 seconds
Powered by Kunena Forum