prestashop icon indicating copy to clipboard operation
prestashop copied to clipboard

While updating Order returns TypeError: no implicit conversion of Symbol into Integer

Open CostasHa opened this issue 4 years ago • 1 comments

def update(id, update_xml) connection.put(table_sym, id, update_xml) end I double checked that id is integer and update_xml is xml string.

TypeError: no implicit conversion of Symbol into Integer from ../.rvm/gems/ruby-2.6.3/bundler/gems/prestashop-c931a38a92ac/lib/prestashop/api/converter.rb:38:in `parse_error'

CostasHa avatar Sep 09 '21 16:09 CostasHa

Use Prestashop::Mapper::Order.update(id, options) should work

denjamio avatar Oct 14 '21 07:10 denjamio