xoops forums

sova

Not too shy to talk
Posted on: 2012/9/4 15:25
sova
sova (Show more)
Not too shy to talk
Posts: 149
Since: 2010/4/13
#1

adslight module

Hi
1 - in adslight module prices will show the decimal 0.00. For example, 3525.00 USD
in sql/english/mysql.sql
price decimal(20,2NOT NULL default '0.00',


I changed to
price decimal(20,0NOT NULL default '0',

But, did not change the show price.
Why?
Where do I was change?

2 - in adslight module prices stated With space. For example, 3525 USD ----> 3 525 USD.
How Change "space" to "," . For example, 3 525 USD ----> 3,525 USD.


I'm grateful to you for help in this area. (Very urgent I need this module)

Pakaj

Friend of XOOPS
Posted on: 2012/9/5 13:21
Pakaj
Pakaj (Show more)
Friend of XOOPS
Posts: 34
Since: 2004/5/5 6
#2

Re: adslight module

What you did, changes only how records are written in database. This is only affected to database, when you install the module. But I think, with this solution you might get some errors when module would try to save the record into database, because author had some different idea at module creation.

But you would probably like to change the outcome in screen. Therefore you have to search in templates of that module.You have to change only the output to the screen. There you can make changes which will satisfy your needs and will not mix with code.