![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 153.99.38.100
|
|||
|
|||
|
Hi there ladies! , I have scoured the vast ocean of zen cart related posts and cannot find the answer to this relatively simple problem:
What I hope to achieve: Default/base currency: GBP (currency in which I buy from the supplier and base my pricing on) Displayed currency: Only EURO (customers only in euro zone) I dont want the customer to have the choice to select currencies, so I have gotten rid of the currency drop down. How do I get zen cart to always automatically display EURO when the a customer visits the store and not the default GBP. Seems simple enough, maybe I have been a bit of a noon and missed this one! Thanks in advanced |
|
#2
IP: 153.99.38.100
|
|||
|
|||
|
Well, you need to set the variable $_SESSION['currency'] to the right value.
So basically you need to have GBP and EURO enabled. THis would normally mean that the user could choose between the two. When they choose it sets $_SESSION['currency']. Instead of letting them choose you force that variable to be what you want. If that is all greek to you just add this line Code:
$_SESSION['currency'] = 'EUR'; And you need to check that you have euros enabled. |
|
#3
IP: 153.99.38.100
|
|||
|
|||
|
Just got to say niccol, you've saved me a lot of heartache. I was having big difficulties in getting different currencies to work with subdomains on a single template with the multi-site mod, the currency kept getting 'stuck' on the main domain. Your helpful tip was exactly what I needed. Wish I had found it sooner.
Thank you |
|
#4
IP: 153.99.38.100
|
|||
|
|||
|
Hi,
This thing actually work but if I implement this, it is restricting the user to change to any other currency even if it is available in currency drop down menu. It just refuse to change. Can anyone please suggest on how to manage non default currency on website but at the same time customers can still change if they want some other currency to show. Thanking you in advance. |
|
#5
IP: 153.99.38.100
|
|||
|
|||
|
Try changing this line:
Code:
// If no currency is set, use appropriate default if (!isset($_SESSION['currency']) && !isset($_GET['currency']) ) $_SESSION['currency'] = DEFAULT_CURRENCY; Code:
// If no currency is set, use appropriate default if (!isset($_SESSION['currency']) && !isset($_GET['currency']) ) $_SESSION['currency'] = 'EUR'; |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to display different currency in product info? | Kandiyohi | ZenCart | 1 | 2016-08-13 08:12 PM |
| How do I use my currency instead of US Dollars? | Karis | ZenCart | 0 | 2016-08-06 10:28 AM |
| How To Force Https On Your X-Cart Admin And X-Cart Provider Sections | Tenakee Springs | X-Cart | 0 | 2015-03-31 12:58 AM |
| Css实现完美垂直居中 | Iola | CSS, DIV, HTML | 0 | 2015-01-01 12:01 PM |
| Simple Steps to Change Your Table Prefix in WordPress | Abby | WordPress | 0 | 2014-04-14 03:40 PM |