Jump to content

[REZOLVAT] Moneda implicita $, dar in front office as vrea sa fie RON-ul, cum ?


Recommended Posts

Buna ziua

 In Back office am setat ca moneda implicita $ , preturile la produse sunt in $ , dar as dori ca in front office cand cineva viziteaza site-ul , fara sa mai schimbe din MONEDA in RON, sa-i arate preturile direct in RON. NU o sa fac update la ratele de schimb  valutar.

  Cum as putea face acest lucru, sa-mi afiseze pretul direct in RON ? Se poate din interfata sau trebuie modificat un fisier ?

PrestaShop version 1.6.0.13

Va multumesc

Edited by HUHA (see edit history)
Link to comment
Share on other sites

 

 

Thank you.

 

I apply this changes and is seems that is working.

 

 

 

Hi,

For Prestashop 1.6.0.9 force currency in frontend.

 

/public_html/classes/tools.php

 

Replace line 431

$currency = Currency::getCurrencyInstance((int)$cookie->id_currency);

with

$currency = Currency::getCurrencyInstance((int)$cookie->id_currency=2);

 

Replace line 433

$currency = Currency::getCurrencyInstance(Configuration::get('PS_CURRENCY_DEFAULT'));

with

$currency = Currency::getCurrencyInstance(Configuration::get('id_currency'));

 

It works on my website.

 

Unde am facut 2 cu rosu mai sus, se inlocuieste cu cifra ID-ului care are RON-ul in

 

Localization

 

Currencies

 

Edited by HUHA (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...