• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 29, 2024, 08:49:51 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 - hasalem

1
Miscellaneous / Re: Stale products/ attributes behavior
November 11, 2008, 07:07:00 pm
Hi Ryan,

As I stated in my first post in this thread, this problem affects many actions.

The main problem now in the ShowCartItemsAction.
createTempOrder(kkAppEng, custId, items, ecf); throws NullPointerException because of

kkAppEng.getEng().createOrderWithOptions(sessionId, items, options,
                    kkAppEng.getLangId());


which suppress this exception.

then the same action throws the same exception at
                            for (int j = 0; j < b.getOpts().length; j++)
                            {
                                optNameArray[j] = b.getOpts()[j].getName() + " "
                                        + b.getOpts()[j].getValue();
                            }
                            item.setOptNameArray(optNameArray);

because b.getOpts()[j] returns null.

I've added these lines as a work around


                            for (int j = 0; j < b.getOpts().length; j++)
                            {
                            if(b.getOpts()[j]==null)
                            {
                            kkAppEng.getBasketMgr().removeFromBasket(b, /* refresh */true);
                            continue loop;
                            }
                                optNameArray[j] = b.getOpts()[j].getName() + " "
                                        + b.getOpts()[j].getValue();
                            }



This fixed the problem of  ShowCartItemsAction, while the problem is deeper in RepeatOrderAction, because it uses the engine repeat order method which throws null pointer exception.

I think we can make a dirty work around in the RepeatOrderAction, to handle this repeat manually, instead of using the Engine itself.
Do you think this is applied, or should I find another path?!

Best Regards
Hatem Salem
2
Miscellaneous / Re: Stale products/ attributes behavior
November 11, 2008, 02:30:56 pm
Thanks Julie for your reply.

QuoteOne thing you could do is to set the quantity to 0 rather than deleting the options.

How this will solve the problem? the option will be exposed for the user, and he can order it. Even if I changed the site to disable checkout of out of stock items. this will not solve the problem for current saved baskets. or reorder feature.

QuoteAnother thing you could do is to use the custom Admin Eng to customize the API call that deletes the options to delete all basket items containing the option.


I think this may solve the issue of the saved shopping basket, I will try to implement it. But this solution will not solve the issue of "repeat order". repeat order will create the temp order and add to the shopping basket. and I will face the same problem?!

Best Regards
Hatem salem
3
Miscellaneous / Re: Stale products/ attributes behavior
November 11, 2008, 09:23:49 am
Hi All,
I found the problem come from Konakart engine, the method of createOrderWithOptions.

This method throws NullPointerException if it can't find the options.

I think this bug is Ship Stopper, Because the KK users will be blocked if their shopping basket has any stale product/options.

Any suggestion to fix this problem ?!

Best Regards
Hatem Salem
4
Miscellaneous / Stale products/ attributes behavior
November 08, 2008, 11:08:46 pm
Hi All,

I'm asking about the behavior of konakart with stale products or options.

for example, if I have a Camera with the following attributes 2M/4M/8M memory.

and if a customer has an order or his/her current shopping basket has this product with this attribute "Camera with 2M"

now let's assume the camera with 2 M is obsolete, and the store owner has removed this attibute or option from the camera product.

so the camera now has option only 4/8 M memory.

Now if the customer tries to logon after this option has been removed, then he/she will not be able to see the shopping basket, because a Null Pointer exception is generated. This also applies if he wants to repeat an order with stale produce/option.

I thing there should be some service to recover the customer baskets from the stale products/options.

Any suggestion to solve the root cause of this problem, because I found that what I can do is catch this problem through the different actions. while I think it should be solved on the Engine level.





Best Regards
Hatem Salem
5
Miscellaneous / Re: Catalogs , Categories & CMS
October 25, 2008, 01:24:57 am
Quote

Your catalogs and invisible products can be just top level categories . At the JSP level you can decide what to show and not to show.



I think this way is not practical, normally in business, the Content editors are preparing the data. Let's say we are showing the winter products. and normally the content editors are preparing the spring products and the sale of winter products. then in a certain day, the CEs "content editors" needs to show the spring catalog and hide the winter catalog.

But your suggested way means that I need to change the invisible property of all products of a certain season" consider that we may have up to 8 seasons "Winter-Winter Sale-Spring-Spring sale...etc"

Also I need to move or make the curreng shown products to be invisible or to move them to the root. consider we have thousands or even hundreds of products.

Also I'm not sure if the searching will search in  invisible products also. If it does, it will be a big problem

Any other ideas will be highly appreciated.
I think introducing catalog concept to konakart will expand the business line of konakart. with considering all side effects like searching...etc.


Best regards.
Hatem Salem.
6
Miscellaneous / Catalogs , Categories & CMS
October 23, 2008, 04:47:15 pm
Hi all,
I'm not sure if I'm missing something in Konakart or not. But I need to perform the following
1- To define invisible category  to hold  some products, so this category is not shown in the tree. should I use custom fields, or there is another way for that
2- to define catalogs, i.e. Winter catalog, summer...etc. where each catalog has its categories.
3- how to use open cms or any other CMS to maintain the products data. also other data like categories, manufacturer. I mean using a CMS and its workflow to publish my data.

Best Regards
Hatem Salem
7
Miscellaneous / Konakart 2.2.6, Tag Groups issue
October 06, 2008, 06:15:24 am
Hi All,

I think There's a bug in tag groups. you can check it from the demo site, or on your installation.
Steps to generate the bug:
1- goto the live demo on
http://www.konakart.com/konakart/Welcome.do
2- click on Hardware category, then choose CDRom Drives,  you will not see any tag groups as expected
3- Now, goto DVD movies catgegory, and then choose Action category
4- As expected you will find the tag groups related to this category.
5- now go back to the hardware category, and then choose CDRom drives category. you will find the tag groups here also.

This bug comes only with empty category.
we can describe the bug as following " the tag groups of the last non empty viewed category will be shown for any empty category"

Does anyone have an idea how to fix this issue?!

Best Regards
Hatem Salem
8
Hi all,

I'm trying to use Checkout without registration feature, but I found a strange behavior.

Scenario:
1-User 1 registered himself, by using mail:x@x.com,  and password xyz
2- User 1 can login, and checkout and do all functions of the system
3- User 2 is shopping through the site, and wants to checkout without the registration
4- User 2 got the page of the checkout delivery, he entered all information with email:x@x.com
5- User 1 is trying now to login his account, but he got an invalid password message, beacuse the system reset his password when User 2 tried to checkout without registration with email of user 1.

I think this behavior is not right, or I misunderstand something ?!

Best Regards
Hatem Salem
9
Hi all,

I think I found the issue, the issue is related to ShowProductDetailsAction

in Konakart 2.2.2.0, this class was checking the following
            if (request.getParameter("redir") != null)
to check the SEO redirect

while in Konakart 2.2.6.0, this class is checking the following instead
            if (selectedProd != null && selectedCat != null && selectedProd.getId() == prodIdInt
                    && request.getParameter(Constants.seoName) != null)


I was localized these keys in Messages.properties
seo.product.category=category
seo.product.manufacturer=product
seo.product.name=name
seo.product.model=model

to use arabic values instead of english

where Constants.seoName is the value of seo.product.name

I think there's an issue in the encoding of the parameters.

I did a dirty fix, and I don't know what are its side effects. The dirty fix is
1- roll back the localization for the seo.* keys in Messages.properties.
2- in  ShowProductDetailsAction
   use the following structure to append the parameter values

unfortunately, the seo parameters are passed as question marks till now. I will be thankful if anyone could help in this topic.

Best Regards
Hatem Salem
10
Miscellaneous / Konakart 2.2.6, Internationalization
October 01, 2008, 10:46:07 pm
Hi,

I used Konakart 2.2.2.0 for arabic site. I localized it without any big issues.

Now when I tried to use 2.2.6.0, I found the following problem with arabic. "Really, I've tested with western languages like deutch, and I haven't this problem":

The application works fine for everything except when I try to use arabic names for categories tree, or localizing the key of "Category" in the properties file. I can't use the select product link

http://127.0.0.1:8780/konakart/SelectProd.do?prodId=29&manufacturer=Canon&category=,(F)&name=,(F)&model=,(F)


as you can see in the link , the category name is not the encoded UTF-8  URL of the arabic name, "It should be something like %A8...."

I've tried to play a little with ShowProductDetailsAction to encode the URL, but I haven't a lot of luck.

Also, I noticed that this action was not changed from Version 2.2.2.0. I think 2.2.6.0 has a problem in another place regarding the eastern language, or UTF-8.

Any help will be highly appreciated.

Best Regards
Hatem Salem
11
Hi Pete,

Really I was using this technique to solve the problem posted here
http://www.konakart.com/forum/index.php/topic,292.0.html

sometimes I was using 4 places for the attribute price.

I think this behavior is a little bit ambiguous, where it permits you to enter the percision that you want, but it also enables what is called "blind update". That means if I want to change any thing in the Product info, the attributes prices will be blindly update.

I wonder if there is a method to overcome this problem, and also to solve the problem in this post

http://www.konakart.com/forum/index.php/topic,292.0.html

Best Regards
Hatem Salem
12
Hi,

I've started to use konakart 2.2.6. But I have an issue regarding the attributes price.
In the previous version I could do the following:
attribute value: gm price: -28.971
attribute value: Kg  price: 0

it was working fine.

Now in 2.2.6, It works fine, but if I want to update the product for any reason, the values changed to

attribute value: gm price: -28.97
attribute value: Kg  price: 0

Should I edit the customValidation.properties. if so, which propertis should be edited?

Thanks for your in advance help

Best Regards
Hatem Salem
13
Miscellaneous / Re: Internationalization
January 29, 2008, 01:26:00 pm
Hi Ming,

I think the same purpose can be achievd through the countries functionality in the Admin page.

I haven't got yet a good vision for Konakart Architecture, but only I think that. What do u think?


Best regards
Hatem Salem
14
Miscellaneous / Re: Internationalization
January 29, 2008, 08:18:20 am
Hi Ming,

It's very interesting to work with great code and project like Konakart. Thanks for your effort.

Regarding Hardcoded strings,  I found also the countries names in the registration page. first I thought they will come  from the DB. but they are hardcoded in the page itself.

Again, thanks for this great S/W

Best Regards
Hatem Salem
15
Miscellaneous / Re: Internationalization
January 28, 2008, 10:21:25 pm
Hi Ming,
Many thanks for your invaluable information, really you helped me a lot. Also, excuse me, because it is my third day with Konakart.

I've finished most of L10N for Arabic. I've just started testing the whole site now, but I have some comments
I found some hard coded messages, really they are very rare like "Prev & Next" in ProductsBody.jsp
So I have modified this JSP.

I will try to send the L10N files as soon as I finish them, also I will send the URL of KonaKart in Arabic. I think I should send also the JSPs that I have modified for that. Do u have any suggestions?

Best Regards
Hatem Salem