Sorry for the beginner question, but is there any way to push to wombat automatically, just after order turns "complete"?
I've added the code bellow in my initializer, but it didn't work. Is that the right way, or this method will only work if I use a background job queuing system?
Spree::Wombat::Config[:push_objects].each do |object|
Spree::Wombat::Client.push_batches(object)
end
Sorry for the beginner question, but is there any way to push to wombat automatically, just after order turns "complete"?
I've added the code bellow in my initializer, but it didn't work. Is that the right way, or this method will only work if I use a background job queuing system?
Spree::Wombat::Config[:push_objects].each do |object| Spree::Wombat::Client.push_batches(object) end
Thanks,