I've checked to make sure the module is installed and created a promotion that requires a coupon. It is at http://www.oneplanegolfswing.com:8780/konakart/Welcome.do
When you add the coupon code "golfsmart" nothing happens, although it should take 15% off the price. The date is active.
Does it work in the checkout screen ?
Do you get anything in the log ?
Have you set up a default customer so that it can estimate the shipping costs when someone isn't logged in. http://www.konakart.com/configurationfaq.php#What_is_a_default_customer_
The default customer trick fixed it, sorry!
That's OK. In the Order Totals section of the Admin App you should make the sort order of the "Total" order total, greater than that of the "discount" order total otherwise the discount won't get subtracted.
Ok, I changed the sort order of total to 99, the product discount is 22, order total discount is 20. After changing it, now the discount doesn't show up at all. Before I changed the total to 99 it showed up, but didn't give the discount once transferred to PayPal.
Also now when I use the coupon code "softlaunch" on the order confirmation page, nothing happens at all.
http://www.oneplanegolfswing.com:8780/konakart
QuoteOk, I changed the sort order of total to 99, the product discount is 22, order total discount is 20. After changing it, now the discount doesn't show up at all. Before I changed the total to 99 it showed up, but didn't give the discount once transferred to PayPal.
Are you sure that you only changed the sort order ? Take a look at our online demo (which works). The ordering we use is :
Order Total Discount : 20
Product Discount : 22
Total : 40
Yes, but either way, I changed the numbers to match yours and the result is still the same, it does not show up at all now.
Ok, I've got it working to where it shows the discount on the page. On the shopping cart page, it takes it off but then you have to re-enter the code on the actual checkout page. That's problem 1. The second is that once it forwards to paypal, the deduction is no longer there.
QuoteOk, I've got it working to where it shows the discount on the page. On the shopping cart page, it takes it off but then you have to re-enter the code on the actual checkout page. That's problem 1. The second is that once it forwards to paypal, the deduction is no longer there.
1. The coupon does have to be rentered during checkout. The cart page is really just a place where you should be able to see details (shipping, promotion etc.) so that you aren't forced to register to see that stuff. It frustrates people to have to register in order to see how much shipping will cost. In some cases, after logging in, the promotion may not even apply to you any more. You could always save the coupon code on the session and use it for checkout if that is what you want.
2. Is order total the last item in the sort order ?
Yes, coupon code is last in the sort at 40, next down is shipping at 25 and then discounts at 22 and 20
Just to confirm nothing was hosed accidentally, I did a fresh install and got the exact same behavior, everything looks great and then when it goes to paypal it shows the total without the discount.
QuoteYes, coupon code is last in the sort at 40, next down is shipping at 25 and then discounts at 22 and 20
That is the problem. Order Total should be last.
Sorry, that was mistyped, Total is last at 40. Order is:
Subtotal
Order total discount
Product discount
Shipping
Total
Maybe you could post a screenshot of the checkout screen showing the order details just before checkout ?
img attached
Looks OK. If the correct amount isn't showing up in PayPal, it could be a problem in the PayPal payment module. You have the source for that. It's in KonaKart\custom\modules\src\com\konakart\bl\modules\payment\paypal .
That hasn't been touched, so are you saying the one that is included with your download doesn't work correctly?
All I am saying is that "if" there is a problem with the PayPal payment module processing orders with promotions, you can investigate it since you have the source to debug it. I assume that since you are using KonaKart, you or someone in your team knows their way around a java program.
We will also take a look, but cannot guarantee any response times since you aren't under a support agreement. If we find a problem and fix it, we'll probably make the fix available in the next release.
I couldn't find pricing info for a support program on your site or I would have done it. I assume it's high now that you don't have your pricing posting publicly so I've decided to look into another vendor since this doesn't work.
Well, since you couldn't be bothered to even ask us about how we can support you, it looks like you've made your decision. Good luck.
For anyone following this thread, a bug was found in the PayPal payment module which stopped it from processing discounts created by promotion modules.
I've fixed the problem and attached a new source file and class file. You only need to update if you are using the PayPal payment module and also plan to use promotions. The module has been tested with KonaKart 2.2.6.0 although it should also work with older versions.
Pete,
I am having slightly different problem.
The shipping cost is not being shown at the invoice or checkout while I get the correct value (flat rate) in the "View Cart" page.
I am checking all admin configuration settings and also verified the sort order in OrderTotal, but can't able to get the shipping amount in invoice.
Here's my sort order:
Sub-Total: 1
Shipping: 25
Total: 40
Thanks for the help!
Dhan
Hi,
Can you verify that the product is a normal physical product. i.e. not a digital download or a product with free shipping.
Quote from: pete on September 05, 2008, 03:23:55 pm
1. The coupon does have to be rentered during checkout. (...) In some cases, after logging in, the promotion may not even apply to you any more. You could always save the coupon code on the session and use it for checkout if that is what you want.
In my configuration (quite common for my users although) it is quite annoing because you (the user):
- enter the coupon code
- press che confirm button
- login
- make choices for shipment and payment
- when the final page just before checkout to the payment gateway is shown you notice (if you careffully look at it) that your coupon based discount is GONE :(
- then you must go back to the cart
- specify the coupon code again and start all over again
I've overridden LoginSubmitAction with
final String coupon = kkAppEng.getOrderMgr().getCouponCode();
(...)
String sessionId = kkAppEng.getCustomerMgr().login(lf.getUser(), lf.getPassword()); // this calls refreshCustomerCachedData() which cleanup all customer data including the coupon
kkAppEng.getOrderMgr().setCouponCode(coupon);
and it seems to work.