• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 26, 2024, 07:40:15 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.

Topics - sdyck

1
Miscellaneous / setApplicableProducts - ok come on
August 31, 2009, 04:02:02 pm
Can someone please show me how to call this method of the Promotion class and make it work ?  I really need help and have followed what the Javadoc is telling me, but the promotion will not include my product(s)!!!
2
Miscellaneous / setApplicableProducts - PROMOTIONS
August 25, 2009, 07:09:32 pm
Greetings,

I'm trying to dynamically create a promotion and apply a coupon at the api level and have been having issues trying to add my product to it.

here is a snip of my code:

prom.setStartDate(start);
            prom.setName(promoName);
            // set promotion to last 7 days
            Calendar end = Calendar.getInstance();
            end.add(Calendar.DATE, +7);
            prom.setEndDate(end);
            prom.setActive(true);
            prom.setCumulative(false);
            prom.setRequiresCoupon(true);
            prom.setOrderTotalCode("ot_product_discount");

            // include = 1, exclude = -1, all = 0
            prom.setProductRule(1);

           AdminProduct prod = adminEng.getProduct(sessionId, productIds[0]);
              
           AdminOrderProduct aop = new AdminOrderProduct();
           aop.setProduct(prod);
           prom.setApplicableProducts(new AdminOrderProduct[]{aop});

I am able to get an AdminProduct ok and all seems well, but the product I want to assign to this promotion is not being added (double checked in konanarkadmin front end)

Any example how dynamically creating a promotion with a coupon (I've done this successfully), and then adding only a set of products to it (having troubles here) using the api?


Thanks,

~sdyck
3
Miscellaneous / order of pormotions
July 16, 2009, 04:54:44 pm
When I have 2 (or more) product promotions, both have 'Cumulative' set to false, which one will be applied?  I've ran a few tests and it seems that it will be the one with the highest discount.  Is this correct?
4
Miscellaneous / ShowCartItemsAction
July 09, 2009, 05:24:56 pm
I have set up a promotion, with a coupon, turned on showing of the coupon, set total discount module status to true, but I do not see the view updating the price based on the discount.
Below is what I currently see in the store front:

Sub-Total:   $1,888.00
   Shipping:   $0.00
   Total:   $1,888.00
   $1,000.00 Discount:   -$1,000.00

Also, if I complete the order I see the same results in the Invoice ...

Isn't the populateCheckoutOrderWithOrderTotals() method call in ShowCartItemsAction supposed to update this price if I have everything turned on to do so?

Please help!
5
Miscellaneous / forceRegisterCustomer
May 07, 2009, 03:35:40 pm
I have this unique use case where I do not require the user to login or register but their cart is saved for 30 days.  In our old implementation we stored a unique shopping cart sessionId in their cookie which stayed around for 30 days.

If I call forceRegisterCustomer the first time the user comes to the store, and say they leave before check-out...
How can I get back to their old cart?
Do I save the customerId returned from forceRegisterCustomer in their cookie and use getBasketItemsPerCustomer() passing in this customerId ?
Does the second call to forceRegisterCustomer, even with the same email, init a clean and empty basket?

I'm asking this because I know that the Basket of items are saved if the user IS registered.
6
Hello, I'm finding a hard time to find the source listed below.  Only the Jsp's came with the community edition.  Do I have to pay for an enterprise edition just to get the source to the 'open-source parts' of kk?


Only the customizable parts of KonaKart are open source. These include the Struts action classes and forms, the JSPs, the payment modules, order total modules, shipping modules and the GWT One Page Checkout code. They are shipped under the GNU Lesser General Public License.
7
So I've been making some good progress, but ran into a strange snag...

I've been modifying the InsertOrder.java and have noticed that I cant seem to create an order using a default / temp user.

I successfully call
eng.addToBasket(sessionId, eng.getTempCustomerId(), item);
Basket[] items = eng.getBasketItemsPerCustomer(sessionId, eng.getTempCustomerId(), DEFAULT_LANGUAGE);

but fails here:

Order order = eng.createOrder(sessionId, items, DEFAULT_LANGUAGE); // passing in null b/c I don't want to have to create a user.

Do I MUST create a customer and login first? or is there any way to create an order without being logged in?
8
KonaKart WebSite & Demonstrations / SOAP and admin
April 21, 2009, 09:09:52 pm
Hi, would anyone know why I always get null as my sessionID when calling KKWSAdminIf port.login(default,default)???  I was able to launch the Axis example fine but when I created a new test soap to insert a product into the db I keep getting this error:



faultDetail:
   {http://xml.apache.org/axis/}hostname:konakart.com

java.rmi.RemoteException: Exception Message = The String parameter called sessionId (value=null) must be given a value. It cannot be set to null or be left empty.; nested exception is:
   com.konakartadmin.app.KKAdminException: Exception Message = The String parameter called sessionId (value=null) must be given a value. It cannot be set to null or be left empty.
   at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
   at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
   at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at com.konakartadmin.ws.KKWSAdminSoapBindingStub.insertProduct(KKWSAdminSoapBindingStub.java:7124)
   at com.konakart.InsertProduct.main(InsertProduct.java:144)