• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 06, 2024, 10:37:03 am

Recent posts

Pages 1 2 3 4 5 6 ... 10
31
Programming of KonaKart / Re: Change content in aboutus,...
Last post by marco - December 08, 2020, 11:06:56 am
Hello Hans,

as pointed out answering your other post, content management through the Admin app is an Enterprise feature ( I'm guessing you are on a Community installation ). And, personally, I don't think tinkering with the database is a good idea.

With the community edition you can choose to change the text in the Return page using messages. Have a look at C:\KonaKart\custom\appn\src\com\konakart\actions\ReturnsAction.java:

returnsContent = kkAppEng.getMsg("common.add.info");

You'll just have to add a proper message in the relevant Messages.properties file, for example:

my.returns.page.message = This is the returns policy

and then refer to that in the action, changing the above row into:

returnsContent = kkAppEng.getMsg("my.returns.page.message");

Or you may just modify the JSP code at your will.



Regards,
marco

32
Programming of KonaKart / Re: Using API (how)
Last post by marco - December 08, 2020, 10:32:29 am
Hi Hans,

if you are on Community edition you'll have to modify the code in order to change KonaKart storefront appearance, because content management editing is an Enterprise feature.

You should go through Chapter 24 in the user manual for detailed instructions on how to do that. You'll need some Java, JSP and Struts knowledge and, clearly some HTML, JS and CSS knowledge too.

In any case, if you're interested in understanding how Content works, have a look at the JSP and the related Java action class behind AboutUs page. In a standard installation, you should find these files at:

  • C:\KonaKart\webapps\konakart\WEB-INF\jsp\AboutUsBody.jsp
  • C:\KonaKart\custom\appn\src\com\konakart\actions\AboutUsAction.java

Regards,
marco
33
Programming of KonaKart / Re: Want to change phonenumber
Last post by marco - December 08, 2020, 07:57:09 am

Hello Hans,

in order to change the phone number you could just change the file Footer.jsp, which, in a standard Windows installation should be located at:

C:\KonaKart\webapps\konakart\WEB-INF\jsp\Footer.jsp

Anyway, that really isn't the way to proceed for making customizations to KonaKart. As you already guessed, you should use the provided ANT script and build the Eclipse project. The Eclipse project will provide you a proper environment to work on KonaKart code.

You should refer to the manual for that, in particular "Chapter 24. Programming Guide", section "Customizable Source Code". You'll find there also step by step instructions on the ANT build process.

Anyway, I think you will need to get a much better grasp of how a Java Struts webapp works before you can really start to work profitably on the source code.

Regards,
marco
34
Programming of KonaKart / Change content in aboutus, Ret...
Last post by kameraad759 - December 08, 2020, 04:19:47 am
How do I change the content text for for instance AboutUs or Returns? I can change it in the AboutUsBody.jsp, but thats not likely the idea of content management. I change some text fields in the database (text) in Content id23, but when I startup the Konakart client and I click on About Us or Returns, I do not see the text in AboutUs field or in Returns field.

So how can I change this text in the database, and see the result in the Konakart client?

Thanks
Hans
35
Programming of KonaKart / Using API (how)
Last post by kameraad759 - December 06, 2020, 09:20:20 am
In chapter 10 from the user manual, section text content, the following line is written:

"Once the content text is defined you can access it from the storefront using the KonaKart APIs and selecting the required content by specifying its Content Id which is automatically assigned when the content is created."

I do not understand this. "Access from the storefront using the APIs and selecting the content".

Can someone please give me an example step by step how to do this? I am not familiar with this.

Thanks
Hans
36
Programming of KonaKart / Want to change phonenumber
Last post by kameraad759 - December 05, 2020, 01:16:43 am
Hello,

New at Konakart. Know to write a little in HTML and CSS. When I start up the Konakart UI client, I see in the footer the Konakart email and phonenumber. I only find by search in "Footer_jsp.java" the phonenumber. Many other things I find in these *.java scripts, such as "SelectProd.action", showing banners on the homepage. But all these files are *.java.

I suppose I have to build the files in one way to get a new jsp or whatever. Can someone help me out a little bit, how I change the phonenumber and/or how I build new files, so I can see the changes in the client? Something to do with build.xml and the command ANT? Never done this, so please explain and teach me a little.

Thanks
Hans

I use Windows 10 and XAMPP (for tomcat) and Konkart version 9.4 (latest).
37
Programming of KonaKart / Re: New classes not being reco...
Last post by Brian - October 17, 2020, 12:28:56 am
Just a word of caution...

When modifying the build.xml ANT file to define which class files go into which jars be very careful to ensure that classes only end up in one jar and not more than one.

The default build.xml ANT file ensures this is the case.
38
Programming of KonaKart / Re: New classes not being reco...
Last post by Jaziro - October 16, 2020, 05:35:08 pm
Quote from: Jaziro on October 16, 2020, 05:32:48 pm
Quote from: mvittiglio on July 10, 2020, 08:18:28 pmBrian,
Thanks for your patience through this. I figured it out and you were correct. I had to find the place where the JAR was being created and explicitly point it to the class files. Issue resolved. The build.xml's target "make_jar_custom" needed to have the following added: `<include name="com/konakart/**/*.class" />`

Thank you for posting a solution, I had a similar issue and was trying to figure it out for a while in my house in Larnaca here and now I know how I can fix it.

Will try it this weekend
39
Programming of KonaKart / Re: New classes not being reco...
Last post by Jaziro - October 16, 2020, 05:32:48 pm
Quote from: mvittiglio on July 10, 2020, 08:18:28 pmBrian,
Thanks for your patience through this. I figured it out and you were correct. I had to find the place where the JAR was being created and explicitly point it to the class files. Issue resolved. The build.xml's target "make_jar_custom" needed to have the following added: `<include name="com/konakart/**/*.class" />`

Thank you for posting a solution, I had a similar issue and was trying to figure it out for a while in my house in Larnaca and now I know how I can fix it.
40
Programming of KonaKart / Re: New classes not being reco...
Last post by mvittiglio - July 10, 2020, 08:18:28 pm
Brian,
Thanks for your patience through this. I figured it out and you were correct. I had to find the place where the JAR was being created and explicitly point it to the class files. Issue resolved. The build.xml's target "make_jar_custom" needed to have the following added: `<include name="com/konakart/**/*.class" />`
Pages 1 2 3 4 5 6 ... 10