• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 14, 2024, 09:37:32 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.

Topics - anujbatra2788

1
Hi,

I have downloaded the community edition of konakart. The import and export scripts are missing in the package.
Could anyone please provide some scripts
2
Programming of KonaKart / Getting details from Database
October 28, 2012, 07:45:42 pm
Hi,

I am trying to fetch details of a manufacturer from Database but I am getting an error

java.lang.ClassCastException: com.konakart.om.Manufacturers cannot be cast to com.workingdogs.village.Record

My code is

                KKCriteria manufacturerCriteria = new KKCriteria(Torque.getDefaultDB());
      manufacturerCriteria.add(ManufacturersPeer.CUSTOM3, manufacturer.getManufacturerCode());
      List<Record> manufacturers = ManufacturersPeer.doSelect(manufacturerCriteria);
      
      if(manufacturers.size() > 0) {
         Record manufacture = manufacturers.get(0); Getting error at this line.
         manufacturerCriteria.clear();
         return manufacture.getValue(ManufacturersPeer.MANUFACTURERS_ID).asInt();
      } else {
         manufacturerCriteria.clear();
         return -1;
      }

Can you please help me out
3
Hi,

I am trying to create different properties file to configure different values for different environments.
like dev, test and prod will have different database url's

I have been successful for modifying it for e-commerce app but not for admin app.

In e-comerce app i am setting the environment at JVM args of app server and loading the struts config.xml like struts-config-${environment}.xml
but I am unable to find such a thing for admin app. Can you please advice how can I do so for admin app.

2. Also is it possible that I can place orders through admin app(built in) or I have to develop this custom functionality on my own ?