• Welcome to KonaKart Community Forum. Please login or sign up.
 
March 28, 2024, 05:30:25 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 - 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 / Re: setApplicableProducts - PROMOTIONS
August 25, 2009, 09:14:28 pm
Bump .... I'm sure someone knows how to setApplicableProducts for a promotion using the api ... come on guys, HELP
3
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
4
Miscellaneous / Re: order of pormotions
July 17, 2009, 01:39:58 pm
I figured it out ... I just edited the ordertotal module to my liking
5
Miscellaneous / Re: order of pormotions
July 16, 2009, 06:15:17 pm
Ok, that is good news... but is there any way in stopping a product promotion and an order total promotion from running on the same order?  What I'd like is if there is a product promotion available, do not apply the order total promotion.  Any ideas where I should be editing to achieve this?
6
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?
7
Miscellaneous / Re: ShowCartItemsAction
July 10, 2009, 04:07:53 pm
Wow ... ok that worked thanks!
8
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!
9
Miscellaneous / Re: forceRegisterCustomer
May 07, 2009, 04:05:27 pm
What if I did the same thing that you guys are planning?  I'd have to do the following I think:

if(cookie == null){
  if(customer != null){
    delete customer // don't want to see Basket items > 30 days old
  }
  int id = forceRegisterCustomer()
  saveIdToCookie(id)
}

your thoughts?
10
Miscellaneous / Re: forceRegisterCustomer
May 07, 2009, 03:52:44 pm
This sounds like exactly what I want.  Is this change going to be in the storefront application?  If yes, how can I ensure I get this change without having to re-work what I have customized?  If not, then I'm assuming there will just be new API calls I could invoke.  Do you have an ETA on the new release?
11
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.
12
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.
13
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?
14
Found it ... I was using the default url that is generated from the wsdl, changed it to use my local and all's good

;D
15
err .. btw I am passing sessionId to the int prodId = port.insertProduct(sessionId, prod); call