• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 24, 2024, 08:18:37 am

Recent posts

Pages 1 2 3 4 ... 10
11
Programming of KonaKart / Re: Currencies.value field too...
Last post by kameraad759 - December 31, 2020, 02:06:08 am
Anyone? Somebody? Marco? Brian?

Just a simple answer. In wich class and method is the rounding of the value of the currency, before saving in database. The current rounding is 5 before and 5 after the decimal point. I am interested in the rounding after the decimal point. Where is it?
12
Programming of KonaKart / Re: Currencies.value field too...
Last post by kameraad759 - December 26, 2020, 08:20:39 am
Hello,

In which (konakartadmin) class is the format of the currency (eq. 15,6) defined. I changed the field for the currency value in the database from 15,6 to 15,10, but in the admin app , there is a rounding of 5 digits after the point.

Example: In the Admin APP Currencies. I give 1.123456789, but it is rounded to 1.12346. Still 5 digits (not even 6!). Where in a class is defined there is a rounding for 5 digits for the currencies?

Thanks in advance for helping or given me a hint.
Hans
13
Programming of KonaKart / Re: Change content in aboutus,...
Last post by kameraad759 - December 23, 2020, 05:25:54 am
I see and get it. Thanks
14
Programming of KonaKart / Re: Change content in aboutus,...
Last post by Brian - December 23, 2020, 05:15:19 am
Quoting from the link I sent you earlier:


Notice that the default build target compiles all the source files and creates the jars. It doesn't move the jars or create any wars.

If after building the jars you wish to move these to your webapp lib directories you should use the "copy_jars" target.
15
Programming of KonaKart / Re: Change content in aboutus,...
Last post by kameraad759 - December 23, 2020, 04:15:57 am
Wich cteated jars?
16
Programming of KonaKart / Re: Change content in aboutus,...
Last post by Brian - December 22, 2020, 08:47:07 am
Take a look at https://www.konakart.com/docs/CustomizableSourceCode.html

The ANT target copy_jars moves the created jars to the webapps.
17
Programming of KonaKart / Currencies.value field too sma...
Last post by kameraad759 - December 22, 2020, 01:56:16 am
Hello,

I use IDR as default currency. The currency is at the moment approx 17000 (1 Euro). If I set IDR as default and that currency field is 1, then I have to set the currency field for Euro on 0.0000588235 (1/17000). With the current setting in the Database (15,6), it is not possible to set the correct currency. I changed the field in 15,10. Thats working, the prices are displayed correctly in the Storefront. But when I edit the currency in the Admin.Currency tool, the give currency wil be stripped again to 6 digits after the decimal. Somewhere in a class or source (AdminCurrencyMgr) this happens.

How can I change it to put a currency like 0.9123456789? Better if Konakart use the default currency field as "per currency value". Let say the currency value would be 10000, and in my example the Euro currency would be 0.588235. So no DB change is needed.

a) Can you change in a class or source that there is no stripping for 6 digits after the decimal separator?

or

b) Can you change the default currency field ad "per currency value"?

For now I have to change the currencies directly in the Database. Not handy.

Thanks
18
Programming of KonaKart / Re: Change content in aboutus,...
Last post by kameraad759 - December 22, 2020, 01:42:42 am
Solved
19
Programming of KonaKart / Re: No result after building p...
Last post by kameraad759 - December 19, 2020, 09:40:26 am
Solved
20
Programming of KonaKart / No result after building proje...
Last post by kameraad759 - December 18, 2020, 07:35:59 am
Hello,

I changed C:\Konakart\webapps\konakart\WEB-INF\classes\Messages_en.properties, and also for the other languages. Added:
my.returns.page.message=This is the Return field

I changed C:\KonaKart\custom\appn\src\com\konakart\actions\ReturnsAction.java. Changed the line:
returnsContent = kkAppEng.getMsg("common.add.info");
in
returnsContent = kkAppEng.getMsg("my.returns.page.message");

I installed Eclipse, installed Tomcat 9,created kkeclipse within Konakart, imported kkeclipse.

when I run the project, I see the storefront, but no changes in the Returns or AboutUs fields.
Did a clean project and build project. Again no difference in AboutUs ir Returns.

How do I compile the new java sources in Eclips? I do not see the changed java scripts in the project. Where in Eclips should be the sources? so it build the right new storefront.

I only want the new compiled AbiutUsAction.java. I can inject it in the jar kobakart-custom9.4.0 jar.

what are the right steps?

Thanks

Pages 1 2 3 4 ... 10