Chris
02/26/2020, 11:33 PMPabloZ
02/27/2020, 2:02 PMPabloZ
02/27/2020, 2:02 PMPabloZ
02/27/2020, 2:04 PMPabloZ
02/27/2020, 2:04 PMChris
02/27/2020, 2:28 PMPabloZ
02/27/2020, 2:29 PMChris
02/27/2020, 2:32 PMChris
02/27/2020, 2:35 PMPabloZ
02/27/2020, 2:36 PMPabloZ
02/27/2020, 2:36 PMChris
02/27/2020, 2:36 PMPabloZ
02/27/2020, 2:36 PMChris
02/27/2020, 2:37 PMPabloZ
02/27/2020, 2:37 PMChris
02/27/2020, 2:37 PMPabloZ
02/27/2020, 2:38 PMChris
02/27/2020, 2:38 PMPabloZ
02/27/2020, 2:39 PMupdate: function update (data)
{
var current_order = this.get()
PabloZ
02/27/2020, 2:39 PMPabloZ
02/27/2020, 2:40 PM, update: function update (data)
{
var current_order = this.get()
// We use this because we do not want to update certain atributes of the order if they had the same value as the provided as update's input.
// This is because, through the Extensibility API, an extension may have made some changes to the order and those may be overwritten if the update's input has a different value.
, pre_update_order = this.get();
PabloZ
02/27/2020, 2:40 PMPabloZ
02/27/2020, 2:41 PMChris
02/27/2020, 2:41 PMPabloZ
02/27/2020, 2:42 PMPabloZ
02/27/2020, 2:43 PMChris
02/27/2020, 2:43 PMPabloZ
02/27/2020, 2:43 PMPabloZ
02/27/2020, 2:43 PMChris
02/27/2020, 2:44 PMChris
02/27/2020, 2:44 PMChris
02/27/2020, 2:46 PMPabloZ
02/27/2020, 2:47 PMPabloZ
02/27/2020, 2:47 PMChris
02/27/2020, 2:48 PMChris
02/27/2020, 2:49 PMPabloZ
02/27/2020, 2:50 PMApplication.on('before:LiveOrder.update', function beforeLiveOrderUpdate(Model, cart) {
here i'd set the shipping address, before the shipping method code runs
})
Chris
02/27/2020, 2:51 PMPabloZ
02/27/2020, 2:52 PMChris
02/27/2020, 2:52 PMChris
02/27/2020, 2:53 PMPabloZ
02/27/2020, 2:53 PM