Author Topic: How to force base currency to be used at checkout  (Read 282 times)

Offline SarahB

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to force base currency to be used at checkout
« on: May 19, 2017, 12:27:46 PM »
Hi, I've seen posts from people with a similar problem but no solutions seemed to have so far been offered.
The base currency of my site is euros and the product prices can be displayed in euros or pounds.
What I want to do is force the base currency (euros) to be used at the checkout.
Does anyone know how to do this?
Thanks or your help.
Sarah.

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
  • Karma: +85/-1
    • View Profile
Re: How to force base currency to be used at checkout
« Reply #1 on: May 26, 2017, 02:52:41 PM »
If you see similar posts, you can post on of them rather than creating duplicate posts.

Anyways, if you are looking to display prices in multiple currency with switcher, this is currently possible.
If you want to force "Add to Cart" add product with fixed currency, it is not possible without code change.

You can add override for $session['currency'] in cart controller
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/checkout/cart.php

Just need to find appropriate place to do this.


“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

 

Cheap Prom dresses 2018