• Welcome to KonaKart Community Forum. Please login or sign up.
 
November 07, 2025, 06:34:12 am

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 - ryan

226
I don't think that the Admin App API supports this yet. Through the App API, a customer can manage all of his addresses.
227
Hi,

If it's a payment gateway that could interest others, maybe you could post it in the contributions section ?

Thx.
228
It should work for both HTTP and HTTPS . url.openConnection() returns a UrlConnection object. HttpUrlConnection is a subclass of that and HttpsUrlConnection is a subclass of HttpUrlConnection so although you just see  HttpUrlConnection in the code, it could actually be a HttpsUrlConnection if the url is https:// etc. etc.
229
Hi,

You have the source of postData in BaseGatewayAction.java so you can just edit it to send the data as an XML packet.
230
Hi Steve,

I did try it out before posting and it worked for me. Try making some other obvious change in the JSP just to be sure that it is picking up the modified one.
231
Hi Steve,

Have you tried editing the RegisterCustomerBody.jsp ?

<td >
   <html:select name="RegisterCustomerForm" property="state">
      <html:option key="register.customer.body.invalid.zone" value="-1"></html:option>
      <html:options collection="zoneArray" property="zoneName"  labelProperty="zoneName"></html:options>
   </html:select>
</td>   

The red line is the one to add because it will create a first entry to the list, asking the user to choose a state / county. BTW, you may want to change the actual label since I've picked one that already exists in the message catalog for demonstration purposes. If the user just goes ahead without selecting a state, it will continue giving him an error.

Let me know if this works for you.      
232
Configuration of KonaKart / Double-Byte characters
March 07, 2008, 06:33:51 am
Hi,

Could someone post a link to a KonaKart web site developed using a double-byte character set (i.e. Chinese) ?

Thanks,

Ryan
233
Quote
I'm trying to get a list of products filtered by price, manufacturer and categories. What I do is:
- Populate the fields of a ProductSearchIf (priceFrom, priceTo, manufacturer and one category).
- Pass the object to a ProductMgr and do the search. (searchForProducts)
- Filter the other categories with filterCurrentProdsByCategory(int categoryId)


I don't understand what you are trying to do by the last API call Filter the other categories with filterCurrentProdsByCategory(int categoryId) ? Normally that is used in the application when you search for products based on a manufacturer and then want to narrow them down based on a category. i.e. You search for all Sony products and then narrow down your search by choosing one of the categories applicable for Sony. i.e. TVs.

Quote
I want also to get all the categories of a product but all i have using the getCategoryId it's the Id of one of the categories not all of them. (I.e. I have the categories "dress", "girl", "Laura", "Dark trend" and I only get "dress").

The application API doesn't return an array of categories for a product. I'm curious to know why you need that functionality since normally you get to a product from one of its categories rather than the other way around ? If you need this functionality you must use the Admin API. There is a method called public AdminProduct getProduct(int productId) which will return a product with an array of AdminCategories.

-Ryan
234
Hi,

Try the method of the application API : public CategoryIf[] getCategoryTree(int languageId, boolean getNumProducts) throws KKException;

Javadoc:

/**
     * Returns a category tree structure consisting of an array of top level categories, each of
     * which may contain an array of child categories.
     * <p>
     * The name of the category is language dependent and will be returned in the language defined
     * by the <code>languageId</code> parameter.
     * <p>
     * Each Category class contains a <code>numberOfProducts</code> field that describes how many
     * products exist for that category. It is only calculated if the <code>getNumProducts</code>
     * input parameter is set to true. For performance reasons this parameter should be set to false
     * if <code>numberOfProducts</code> is not required.
     *
     * @param languageId
     *            The id for the language that will be used to determine the Category name. Value of
     *            -1 selects the default language.
     * @param getNumProducts
     *            A boolean that specifies whether the Category objects should have the
     *            numberOfProducts attribute set.
     * @return Array of Category objects
     * @throws KKException
     */
235
The deletes I gave you in my post are all done in a single transaction which will obviously make it a lot slower but should guarantee not to leave your DB in a strange state. I'm sure that your script is fine during development.

Thanks for pointing out the missing products_to_products table. We'll add that to the next release.
236
Feature Requests / Re: buty 1 get 1 free kind of facility
February 05, 2008, 01:46:19 pm
Quote
purchase more than $100 and receive a free 1 year Advantage Renewal


Yes, with a custom OrderTotal module.

Quote
purchase a silver ID and receive free FedEx shipping


Yes. You could add this logic within your FedEx shipping module.
237
Hi,

If I've understood the question correctly, it is relatively easy to implement this type of logic in a custom shipping module. In the method getQuote() of the shipping module, the order is passed in as a parameter. What you need to do is to go through the OrderProducts (an order has an array of order products) and figure out whether there are two items worth $50 or more. If so, you return a value of zero for shipping.

Hope that helps.

Ryan
238
Hi,

If you delete a category and choose to delete all of the products within the category, it will delete the category and for each product it will delete, in a transaction :

  • Data from the product table

  • Data from the product description table

  • Data from the product to categories table

  • Data from the product attributes table

  • Data from the product quantities table

  • Any reviews the product may have

  • The product from any baskets that it may be in



If you have thousands of products, this will take a while. However, this shouldn't be something that you do on a daily basis and it isn't a performance issue for your customers and so shouldn't really be a big issue for you ?

If you'd like to investigate further you should really start by looking at the resources (CPU, memory) used by your database compared to the ones used by the Java virtual machine in order to decide who is using up the most resources.

-Ryan
239
Hi,

The "out of date" error is to do with the GWT code. Maybe there has been a problem during the copy or there is some configuration problem. My advice would be to create a WAR using the make_wars ant target (http://www.konakart.com/customizationfaq.php#How_do_I_build_the_customisable_java) and try installing that. Maybe you should try installing the war locally first to ensure that it works correctly.

For SSL configuration I'm no dailyrazor expert so I'm not sure what is going on. All I can suggest is to test that SSL works locally by:

  • Enabling SSL through the admin app under Configuration>>HTTP/HTTPS . This should switch the application to use SSL whenever you are logged in.

  • Change the url of the admin app from http://localhost:8780/konakartadmin/ to https://localhost:8443/konakartadmin and you should see that it works perfectly with the certificate we supply (although you get a browser warning about the certificate etc.)



Once you have it working locally, you should follow the same steps on the dailyrazor installation maybe changing the port numbers through the Admin App under Configuration>>HTTP/HTTPS and installing a valid certificate. If you get unexpected problems with dailyrazor, you should then explain the steps you have taken to their tech support and they should be able to help you.

Ryan
240
Hi,

Try clearing the temporary files from your browser and with a new browser instance. Also ensure that you've copied all files including the html files under webapps\konakart.

For SSL read this http://www.konakart.com/configurationfaq.php#SSL

Ryan