Comments (4)
Theoretically. What does it says? Did you tried to display id for example? Does it work in that case?
from prestashop.
shop_client.connection.read :orders, nil, {:filter => { :current_state => 4 }, :display => '[associations]'}
Prestashop::Api::RequestFailed: Unable to display this field "associations". However, these are available: id, id_address_delivery, id_address_invoice, id_cart, id_currency, id_lang, id_customer, id_carrier, current_state, module, invoice_number, invoice_date, delivery_number, delivery_date, valid, date_add, date_upd, shipping_number, id_shop_group, id_shop, secure_key, payment, recyclable, gift, gift_message, mobile_theme, total_discounts, total_discounts_tax_incl, total_discounts_tax_excl, total_paid, total_paid_tax_incl, total_paid_tax_excl, total_paid_real, total_products, total_products_wt, total_shipping, total_shipping_tax_incl, total_shipping_tax_excl, carrier_tax_rate, total_wrapping, total_wrapping_tax_incl, total_wrapping_tax_excl, round_mode, round_type, conversion_rate, reference
Using display full brings out all the stuff, associations included. Lots of overhead however.
It seems to be a limitation of PS itself. Unfortunately.
PS likes forcing us jumping from Id to Id making several requests to get important information about orders. Fragmented API.
from prestashop.
Yeah, it's PS limitation, it supports only the fields you mentioned above. Api doesn't have any bulk update which is shame. Going through all items one by one is unfortunately the only way, how to communicate with PS API
from prestashop.
Thanks.
from prestashop.
Related Issues (12)
- Typo in gemspec (homepage url) HOT 4
- can't add manufacturer with special symbols in name HOT 1
- Add 'price' parameter conform to API documentation
- Order with multiple cart_items HOT 3
- Error using PUT command in API HOT 2
- While updating Order returns TypeError: no implicit conversion of Symbol into Integer HOT 1
- product variants? HOT 26
- allow upload of local images HOT 4
- Available API calls
- can't modify frozen String HOT 2
- connection not working correctly HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prestashop.