Jump to content

[ASK] masalah currency


Recommended Posts

Halo,

 

Para mastah prestashop, saya ada beberapa masalah setting prestashop 1.4.8.3 sebagai berikut :

- Bagaimana caranya agar harga produk hanya memiliki 2 digit angka dibelakang koma

bukan 6 digit seperti terlihat pada screenshoot berikut :

 

6digit.jpg

 

- Trus yang kedua, bagaimana caranya setting block layered navigation agar lambang currency-nya (Rp.) hilang atau diletakkan didepan harga.

 

layeredharga.jpg

 

Trims

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

1. itu karena tipe data yang digunakan, kalo pengen cuman 2 digit, modif AdminProducts di folder admin\tabs cari baris 2550 ada kode sbb

 

htmlentities($this->getFieldValue($obj, 'price'), ENT_COMPAT, 'UTF-8')

 

ubah misal jadi

 

htmlentities(round($this->getFieldValue($obj, 'price'),2), ENT_COMPAT, 'UTF-8')

Link to comment
Share on other sites

  • 2 weeks later...

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...