• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 24, 2024, 06:38:39 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Sony George

16
This happens because either robots or a direct hit to the following URL

http://www.konakart.com/konakart/ForgotPassword.do

the ForgotPassword.do does not have action class, instead tiles are used......
so the BaseAction's getKKAppEng() method is never called
and "konakartKey" is never stored in the session

a simple work around is just create a simple action class
and edit the struts-config.xml file

ForgotPasswordAction.java is attached

and instead of config in struts-config.xml

<action path="/ForgotPassword" forward="/CatalogForgotPasswordPage.do">
<forward name="Login" path="/LogIn.do"/>
</action>



use this


                <action path="/ForgotPassword" type="com.konakart.actions.ForgotPasswordAction">
<forward name="Login" path="/CatalogForgotPasswordPage.do"/>
</action>




17
Dear KonaKart Team,

Do i have any hope regarding this ??

regards

Sony
18
Dear All,

in AdvancedSearchSubmitAction.java, is the following code

            /*
             * Get the current dataDescriptor from the productMgr and add a constraint on a custom
             * field if the field has been set. Then set the dataDescriptor.
             */
            DataDescriptorIf dd = kkAppEng.getProductMgr().getDataDesc();
            if (spf.getCustom1() != null && spf.getCustom1().length() > 0)
            {
                dd.setCustom1(spf.getCustom1());
            } else
            {
                dd.setCustom1(null);
            }
            kkAppEng.getProductMgr().setDataDesc(dd);


I added the following code just before setting the data desc object
dataDescriptor.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);

dataDescriptor.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);
            kkAppEng.getProductMgr().setDataDesc(dd);


but do not see any change, always konakart search order by price only,
how can i set my order by constraint ??

Regards

Sony George
19
Programming of KonaKart / Re: Netbeans Setup
May 22, 2010, 05:25:36 pm
1) select free form project
2) select location = (D:\konakart)
3) select build script = (D:\konakart\custom\build.xml)
4) now project name is auto filled by netbeans by reading build.xml, no need to change
5) project folder =(D:\konakart)

next screen build run action, nothing to do, auto filled, click next

Web source screen
6) web pages folder = D:\konakart\webapps\konakart
7) WEB-INF content = D:\konakart\webapps\konakart\WEB-INF
8) context path = no need if you are running the tomcat that came with konakart installation

source folders
pre filled by neatbeans by looking the src folder name, u can add or remove folders from the custom folder (D:\konakart\custom)

java source classpath
here add all the jar files that are in D:\konakart\webapps\konakart\WEB-INF\lib folder and D:\konakart\webapps\konakartadmin\WEB-INF\lib

now you have almost done, you can now clcik the finish button,

note that netbeans do not make any change in D:\konakart\custom\build.xml shipped with konakart
instead it make a folder named nbprojects under D:\konakart and write its files there
if you want to start over just delete the nbproject folder created by netbeans and
do the steps again till you are happy with u r netbeans integration



20
Hello,

I need to show only the categories that have at least one product under it,
i know that i can make a category invisible using admin app,
but i need to do this at run time, i did this in CategoriesTile1.jsp by adding an
if condition if(cat.getNumberOfProducts() > 0)

but how to achieve this in the category drop down at advanced search screen

thanks and regards

Sony George
21
Programming of KonaKart / Re: Netbeans Setup
May 22, 2010, 07:47:54 am
Simple,

choose project --> java project --> web free form application
select the build.xml that is available in custom folder
add jar files in WEB-INF\lib to java source classpath area,
add folders in custom folder to java sources area

finished
22
Dear Greg,

Please note that Import is also having the same problem, ie: if we try to import a Unicode data then, Unicode char are lost and illegal char are saved as product details

regards

Sony George
23
Programming of KonaKart / Re: BirtViewer Issue
April 23, 2010, 07:09:22 am

did u copy birt folder from default installation of konakart to your app server ???

if yes then go to the file <your_appserver_path>webapps\birtviewer\reports\lib\konakart.rptlibrary

in that file you should see a the following value
var dbPropsFile = "C:/Program Files/KonaKart/webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties";

change the konakartadmin.properties file dbPropsFile value to suite your current path of the app

regards

24

you can achieve this modifying the custom\appn\src\com\konakart\bl\LoginIntegrationMgr.java

25
Dear Konakart,

When we export the data using ExportFromKKUsingEng.bat a new file is created named exportedDataEng.txt
the problem is that the export/import utility is writing this file in ASCII format,
so if there is UNICODE data like product description is lost and turned to ? ? ? ? ?
because of this , the exported file cannot be imported to database..

is there any way to write the file as unicode ??
the following is the mysql url i use
torque.dsfactory.store1.connection.url      = jdbc:mysql://localhost:3306/konakartdb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

i tried the following options,
first i created a file named exportedDataEng.txt  and made it UTF-8 encoding file, then tried the export, still the data was in ASCII,
i think the file i created in UTF-8 encoding was first deleted by kkimporter/exported and created a new ASCII file....


Please Advice

Regards
26
Hello,

I would like to search products that's name starts with "a" or "A", how can i achieve this ???

regards

Sony
27
Dear Friends,

konakart send mails, using vm templates, in that mails there are some styles (css) written
in the <head> part, but this styles are totally ignored by gmail,
but in yahoo, or hotmail, or any other desktop email client, all styles inside the .vm files are displayed correctly,

in gmail, mail is displayed as text, no styles written in the head part is applied,

does any one have solution for this problem,

regards
Sony
28
Quote from: trevor on January 15, 2010, 01:45:59 pm
The subject should be on the first line of the Velocity template.


;D i deleted all that first lines from my template
will put it back now...

regards

Sony
29
Hello,

there is no subject for the mails send by konakart, like welcome email, order Confirmation etc

i use smtp.gmail.com and using my gmail account for sending mail.

any solutions ???

regards

Sony
30
Quote from: Sony George on December 15, 2009, 04:49:10 am
Quote from: lrkwz on December 14, 2009, 10:10:23 pm
Got it!

In webapps/konakart/WEB-INF/jsp/NewProductsWithDetail.jsp


39             <div class="tile-content">
40                 <table class="tile-content" width="98%">
41                     <% int i=0; %>
42                     <tr>
43                         <logic:iterate id="prod" name="prodArray" length="maxRows" type="com.konakart.appif.ProductIf">
44                             <%prod = kkEng.getEng().getProductWithOptions(kkEng.getSessionId(),prod.getId(),-1, kkEng.getFetchProdOptions());%>


Remove line 44 which overwrites prod with default language contents.



replace the line 44 with this

44                             <%prod = kkEng.getEng().getProductWithOptions(kkEng.getSessionId(),prod.getId(),kkAppEng.getLangId(), kkEng.getFetchProdOptions());%>

when -1 is passed, the default language set in the admin app is used to get the content
kkAppEng.getLangId() gives the current language in the logged in user session




Sorry for the mistake, it is not kkAppEng.getLangId() it is kkEng.getLangId()

44                             <%prod = kkEng.getEng().getProductWithOptions(kkEng.getSessionId(),prod.getId(),kkEng.getLangId(), kkEng.getFetchProdOptions());%>