• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 29, 2024, 04:47:03 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 - trevor

31
You save the customers selection in the session or a cookie or a customer tag (EE only) and do the multiplication yourself before displaying.
32
QuoteI think you mean SelectCurrencyAction.java and not SetLocaleAction.java

Yes, sorry, slip on my part.

Quoteit seems im having issues initializing KKAppEng, im trying to do so from a JSF managed bean, and im not using struts in my application, will that cause any issue?

You don't need to use Struts. In this case it may be easier to directly call the server engine APIs and not use KKAppEng. Here's an example of a JSF application using KK : https://raceforlife.cancerresearchuk.org/rfl/forms/shop/shop.jsf . If you don't use KKAppEng you will have to perform the currency multiplication on the array of products received from the KK server engine.
33
We do the multiplication for you.
34
The KK store-front already has a drop down menu to select currency.

If you want to know how it works you should look at the code in the struts action class. The form calls SetLocale.action which runs the code in SetLocaleAction.java .

The conversion rate is defined in the value of the currency object. The default currency has a value of 1 and any other defined currency has a value which is used as a multiplier to apply the conversion.
35
You just need to modify the velocity template OrderDetails_xx.vm .  Add mailto in the href:

          <td class="main"><b>E-Mail Address:</b></td>
          <td class="main"><a href="mailto:$order.getCustomerEmail()"><u>$order.getCustomerEmail()</u></a></td>
36
Try:

public ZoneIf[] getZonesPerCountry(int countryId) throws KKException;
37
What AdminDataDescriptor and AdminProductSearch classes are you using? Aren't they the ones we ship in konakartadmin.jar?
38
If you are using our SOAP engine it should be as easy as doing:

            AdminProductSearch search = new AdminProductSearch();
            search.setSku(sku);
            search.setSkuRule(KKConstants.SEARCH_EXACT);

without having to set anything else. All other attributes will take default values.
39
Programming of KonaKart / Re: Get CurrentCustomer
November 03, 2011, 12:00:13 pm
When you install the EE version of KK, in the KonaKart\java_api_examples\src\com\konakart\apiexamples directory there is a file called MySecurityMgr.java which includes an example of how you can use SSO with KK.

Normally you would pass an identifier or token to the KK portlet inside the login() method. The KK portlet should be able to get the token (which could even be the user id) from LR by calling LR APIs. The specialised SecurityMgr of the KK portlet within the login() method, should use the token to communicate back to Liferay to determine whether the user is logged into LR before completing the KK login and generating a KK session id.
40
Actually a more robust way for your requirements would be not to use eMail at all but to get the Order Integration Mgr to put the orders on different Apache MQ queues which can be read by the various business units. In this way no orders will ever be lost.
41
Why don't you add the functionality to the order integration mgr? It gets called every time an order is saved or changes state, so from there you can figure out the business unit and send it on.
42
QuoteThis seems like functionality that  everbody can profit from.


Nobody has ever asked us for this and you haven't explained your use case. i.e. Why do you need to change the recipients every time an order comes through.

QuoteIf I look at the admin app and then the email options I see the field 'Send Extra Emails To'. Is this what you mean by predefined set of email addresses?


Yes

QuoteHow can I access these predefined addresses via the API?


They are kept in a config variable so you just need to change the value of the config variable called 'SEND_EXTRA_EMAILS_TO' . Note that these eMail addresses will apply globally for the engine.
43
You can blind copy to a list of pre-defined addresses.

What type of algorithm do you use to determine who to send the Mails to? I suppose it wouldn't be too difficult for us to add an array of eMail addresses to the EmailOptions object to allow you to do this. Alternatively I suppose you could define rules in an eMail server to do the forwarding.
44
You can configure this in the admin app. The section to look at is Configuration >> Maximum Values, and the variable to set is labelled "Search Results" which defaults to 20.
45
You need to install the Digital Download shipping module