AlbertoCord85 Posted February 21, 2019 Share Posted February 21, 2019 Hi, how I could get the best sellers and more viewed product from Web Service? Actually, I'm getting all products from web service with this endpoint: https://xxxx.xx/api/products?display=full&ws_key=xxxxxxxx I can't see any field that tells me this The response is: "id": 2, "id_manufacturer": "1", "id_supplier": "0", "id_category_default": "2", "new": null, "cache_default_attribute": "9", "id_default_image": "21", "id_default_combination": "9", "id_tax_rules_group": "1", "position_in_category": "1", "manufacturer_name": "Studio Design", "quantity": "0", "type": "simple", "id_shop_default": "1", "reference": "demo_3", "supplier_reference": "", "location": "", "width": "0.000000", "height": "0.000000", "depth": "0.000000", "weight": "0.000000", "quantity_discount": "0", "ean13": "", "isbn": "", "upc": "", "cache_is_pack": "0", "cache_has_attachments": "0", "is_virtual": "0", "state": "1", "additional_delivery_times": "1", "delivery_in_stock": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "delivery_out_stock": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "on_sale": "0", "online_only": "0", "ecotax": "0.000000", "minimal_quantity": "1", "low_stock_threshold": null, "low_stock_alert": "0", "price": "35.900000", "wholesale_price": "0.000000", "unity": "", "unit_price_ratio": "0.000000", "additional_shipping_cost": "0.00", "customizable": "0", "text_fields": "0", "uploadable_files": "0", "active": "1", "redirect_type": "404", "id_type_redirected": "0", "available_for_order": "1", "available_date": "0000-00-00", "show_condition": "0", "condition": "new", "show_price": "1", "indexed": "1", "visibility": "both", "advanced_stock_management": "0", "date_add": "2019-02-15 17:00:00", "date_upd": "2019-02-15 17:00:00", "pack_stock_type": "3", "meta_description": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "meta_keywords": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "meta_title": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "link_rewrite": [ { "id": "1", "value": "brown-bear-printed-sweater" }, { "id": "2", "value": "brown-bear-printed-sweater" }, { "id": "3", "value": "brown-bear-printed-sweater" }, { "id": "4", "value": "brown-bear-printed-sweater" } ], "name": [ { "id": "1", "value": "Hummingbird printed sweater" }, { "id": "2", "value": "Hummingbird printed sweater" }, { "id": "3", "value": "Hummingbird printed sweater" }, { "id": "4", "value": "Hummingbird printed sweater" } ], "description": [ { "id": "1", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\"><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Studio Design' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.</span></span></p>" }, { "id": "2", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\"><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Studio Design' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.</span></span></p>" }, { "id": "3", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\"><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Studio Design' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.</span></span></p>" }, { "id": "4", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\"><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Studio Design' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.</span></span></p>" } ], "description_short": [ { "id": "1", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Regular fit, round neckline, long sleeves. 100% cotton, brushed inner side for extra comfort. </span></p>" }, { "id": "2", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Regular fit, round neckline, long sleeves. 100% cotton, brushed inner side for extra comfort. </span></p>" }, { "id": "3", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Regular fit, round neckline, long sleeves. 100% cotton, brushed inner side for extra comfort. </span></p>" }, { "id": "4", "value": "<p><span style=\"font-size:10pt;font-family:Arial;font-style:normal;\">Regular fit, round neckline, long sleeves. 100% cotton, brushed inner side for extra comfort. </span></p>" } ], "available_now": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "available_later": [ { "id": "1", "value": "" }, { "id": "2", "value": "" }, { "id": "3", "value": "" }, { "id": "4", "value": "" } ], "associations": { "categories": [ { "id": "2" }, { "id": "3" }, { "id": "5" } ], "images": [ { "id": "21" } ], "combinations": [ { "id": "9" }, { "id": "10" }, { "id": "11" }, { "id": "12" } ], "product_option_values": [ { "id": "1" }, { "id": "2" }, { "id": "3" }, { "id": "4" } ], "stock_availables": [ { "id": "2", "id_product_attribute": "0" }, { "id": "28", "id_product_attribute": "9" }, { "id": "29", "id_product_attribute": "10" }, { "id": "30", "id_product_attribute": "11" }, { "id": "31", "id_product_attribute": "12" } ] } } Link to comment Share on other sites More sharing options...
Carlos MF Posted June 26, 2019 Share Posted June 26, 2019 find the solution? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now