Prestashop: legacy order create page not working well after jquery migration

Created on 9 Oct 2019  路  4Comments  路  Source: PrestaShop/PrestaShop

@matthieu-rolland, @matks - after this pr legacy order create page is not working well.

  • Cannot choose customer;
  • Carts/orders are shown before even choosing customer.

Screenshot from 2019-10-09 14-18-47
Checked locally, that undoing this pr changes brings back the expected behavior.

_Originally posted by @zuk3975 in https://github.com/PrestaShop/PrestaShop/pull/15245#issuecomment-539958808_

BO Bug Fixed Major Order Regression develop

All 4 comments

The live method doesn't exist anymore, one should use the on method instead.

Here is the on method:
https://api.jquery.com/on/

Here is how to use the on method to achieve the same thing as with the live method:
$( document ).on( events, selector, data, handler );

The equivalent with the live method would be:
$( selector ).live( events, data, handler );

I'll do it.

Hi,

Same issue with develop branch
image

Thanks!

Also, the choose button doesn't work
image

Thanks!

thank you for you feedback @khouloudbelguith 馃憤

Was this page helpful?
0 / 5 - 0 ratings