For some reason on my live server whenever I get to the confirm checkout page Ubercart is tripling everything in a users cart. It shows the total right, and the actual items right but the subtotal is triple and when a user checks out literally they buy triple of everything they ordered. I have a workflow setup for an auto coupon but have disabled that and still see this issue. Any idea of what might be causing this?

Submit order
QTY PRODUCTS PRICE
1× Autographed Show Poster $10.00
Subtotal $30.00
Order total $10.00

CommentFileSizeAuthor
#5 P20120119182601.png257.61 KBjeggen
#5 P20120119182618.png126.29 KBjeggen
#5 P20120119182630.png229.47 KBjeggen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Have you tried disabling the coupon module entirely? Do you have any other Ubercart contrib modules enabled? I can't think of anything in core that would cause this. You could try updating to 7.x-3.x-dev but I am not sure that would help.

jeggen’s picture

Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active

Probably related, even when a coupon is applied it appears three times on the cart page. I don't see any workflow items though that would control this... again, any suggestions on where to look for the culprit?

jeggen’s picture

It is related to the discount coupon extended workflow module. Will investigate there further.

wodenx’s picture

Project: Ubercart » Ubercart Discount Coupons
Version: 7.x-3.0-rc3 » 7.x-2.x-dev
Component: Cart/checkout » Code
Status: Active » Postponed (maintainer needs more info)

can you list the rules that you have enabled or provide screenshots?

jeggen’s picture

Version: 7.x-2.x-dev » 7.x-2.1-alpha4
FileSize
229.47 KB
126.29 KB
257.61 KB

Attached screenshots are from my android tablet but I think show all the rules and the details of the autocoupon workflow rule. Also changed the version... I'm on Alpha 4

jeggen’s picture

Status: Postponed (maintainer needs more info) » Active

Changed status to active since information has been submmitted.

wodenx’s picture

Status: Active » Postponed (maintainer needs more info)

Can you also post settings for the coupons you are applying? And how do you know this is uc_coupon_workflow related? Does the problem go away if you disable only that component? Also, please try updating to latest -dev (many bug fixes since alpha-4) and let me know if the problem continues. A link to the site that demonstrates the problem would be helpful as well, if possible.

jeggen’s picture

Status: Postponed (maintainer needs more info) » Active

I have updated to -dev and still have the issue. I've also reduced my coupon to one "EARLYBIRD" coupon that is $2 off per item associated with one SKU and automatically applied. If I disable the extended workflow module the issue goes away, even if the coupon is applied to the order checkout is still proper.

You can go to www.bethanyelkhorn.org/jasongray. Add one or more concert tickets, go through to the very end of the checkout process (e.g. you will have to put in PayPal info) and when you get to the final confirmation step you will see that the subtotal is representative of 3x the product that are in the cart. Total is the lower (correct amount) however the amount charged through PayPal is the subtotal amount.

jeggen’s picture

Here is the autocoupon rule:

{ "rules_auto_coupon" : {
    "LABEL" : "Auto Coupon",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "uc_coupon_workflow" ],
    "ON" : [ "uc_coupon_workflow_automatic" ],
    "DO" : [
      { "uc_coupon_workflow_apply" : {
          "USING" : { "cid" : "1", "mode" : "auto" },
          "PROVIDE" : { "coupon" : { "coupon" : "Coupon" } }
        }
      }
    ]
  }
}
jeggen’s picture

FYI - I switched to PayPal Website Standard payment method this morning. It appears that this issue only occurs when using an automatic coupon with the workflow configured and using PayPal Express. I've changed payment on the live site but if you still want to look at the issue head over to my sandbox.
http://sandbox.bethanyelkhorn.org/jason-gray

wodenx’s picture

Version: 7.x-2.1-alpha4 » 7.x-2.x-dev
Category: support » bug
Status: Active » Needs review

I've only been able to reproduce this using Ubercart 7.x-3.0-rc3 -- when I switch to 7.x-3.x-dev the problem goes away. Perhaps you can give that a try and let me know if it is fixed for you also? Note - before doing so, you will need to get fixes for #1411572: Improper invocation of uc_cart_get_contents() and #1410452: cart/checkout/complete is broken with latest dev. - both have been committed, but you'll have to pull the latest changes with git or wait 12 hrs for dev snapshots to update (or apply patches manually).

Aiur’s picture

I am currently running both the January 22nd Ubercart 7.x-3.x-dev and the January 22nd UC_Coupon 7.x-2.x-dev, but am still having this issue. I am using Paypal Express.

wodenx’s picture

@Aiur - Some fixes were committed on January 22 - can you retry with latest DEV (or with alpha5) and post back if problem persists?