KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: makjames on February 28, 2011, 03:42:12 pm

Title: Stay on the same page when change language
Post by: makjames on February 28, 2011, 03:42:12 pm
Hi,

I am a newbie to Konakart, i am trying to add a new language to the system, when i changed the language i found that it always go back to home page, how to make it stay on the same page ?

Thanks.

James
Title: Re: Stay on the same page when change language
Post by: trevor on February 28, 2011, 03:54:12 pm
Since our store-front is a Struts application, you just have to modify the struts-config.xml file to change the navigation.
Title: Re: Stay on the same page when change language
Post by: makjames on March 01, 2011, 11:00:36 am
Thanks for your prompt reply.

I'm try to modify struts-config.xml like this to test when changing currency

      <action path="/SelectCurrency" type="com.konakart.actions.SelectCurrencySubmitAction" name="SelectCurrencyForm" scope="request">
         <!-- forward name="MainPage" path="/Welcome.do"/-->
         <forward name="ShippingAndReturns" path="/CatalogShippingAndReturnsPage.do"/>
      </action>

After restart tomcat but it still go the homepage instead, am i doing the correct thing ? Would u mind give me some hints on that ?

Thanks a lot.

James
Title: Re: Stay on the same page when change language
Post by: trevor on March 01, 2011, 01:04:51 pm
Looks like you've modified the SelectCurrency action. I though that you were concerned with changing the language?
Title: Re: Stay on the same page when change language
Post by: makjames on March 01, 2011, 03:03:36 pm
actually i want to do it for both as changing currency and changing language will go to home page instead of staying at the same page.
Title: Re: Stay on the same page when change language
Post by: trevor on March 01, 2011, 03:11:01 pm
Unless you've changed the action class to return ShippingAndReturns instead of MainPage you should leave in MainPage in the config file.
Title: Re: Stay on the same page when change language
Post by: makjames on March 01, 2011, 03:50:12 pm
But user can change Currency and Language at any page not just ShippingandReturn, how to make it ?