when i active "Updateable product quantity" in "admin/commerce/config/ajax-cart" and change "Checkout button redirect" to "Checkout page". when i update quantity in this block and go to 'checkout page' or 'reviwe page', "order total" will not change in checkout or review page ( "total" in table are changed but order total in views footer not changed!).

Comments

mimalef70 created an issue. See original summary.

mimalef70’s picture

Issue tags: +Order Total
StatusFileSize
new63.99 KB

i need help to fix this bug. in commerce kickstart it was ok! but in default commerce sites have bug, and i don't know why!

mimalef70’s picture

i fix my problem with this rules :

{ "rules_update_order_total" : {
    "LABEL" : "Update Order Total",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "TAGS" : [ "mimalef70" ],
    "REQUIRES" : [ "rules", "entity" ],
    "ON" : { "commerce_line_item_update" : [] },
    "DO" : [ { "entity_save" : { "data" : [ "commerce-line-item:order" ] } } ]
  }
}
subhojit777’s picture

Version: 7.x-2.11 » 7.x-2.x-dev
Status: Active » Needs work
Issue tags: +Needs tests
StatusFileSize
new513 bytes

Thanks for reporting the bug. Here is a fix. And we need tests as well.

subhojit777’s picture

StatusFileSize
new1.39 KB

Tests init. Not yet complete.

subhojit777’s picture

Status: Needs work » Needs review
StatusFileSize
new1.68 KB
new1.29 KB

The complete patch.

subhojit777’s picture

StatusFileSize
new1.18 KB

Patch without the fix. This is supposed to fail.

The last submitted patch, 6: 2959687-6.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 7: 2959687-7.patch, failed testing. View results

subhojit777’s picture

Status: Needs work » Needs review
StatusFileSize
new1.71 KB
new1.54 KB

The test might be conflicting with the update cart tests. The new patch.

subhojit777’s picture

StatusFileSize
new1.21 KB

Patch with no fix.

The last submitted patch, 10: 2959687-10.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 11: 2959687-11.patch, failed testing. View results