hadim Posted February 8, 2015 Share Posted February 8, 2015 (edited) I have an issue using PS16 webservice. When I retrieve products, I can't access to product feature id so I can't link a product to its feature... See the kind of value I get: active additional_shipping_cost advanced_stock_management associations available_date available_for_order available_later available_now cache_default_attribute cache_has_attachments cache_is_pack condition customizable date_add date_upd depth description description_short ean13 ecotax height id_category_default id_default_combination id_default_image id_manufacturer id_product_redirected id_shop_default id_supplier id_tax_rules_group indexed is_virtual link_rewrite location manufacturer_name meta_description meta_keywords meta_title minimal_quantity name new on_sale online_only position_in_category price quantity quantity_discount redirect_type reference show_price supplier_reference text_fields type unit_price_ratio unity upc uploadable_files visibility weight wholesale_price width No values here seem to be related to product_features. I am not sure it is usefull, but I am using python and JSON display to retrieve values. Any help would be appreciated :-) Thanks Edited February 9, 2015 by hadim (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted February 9, 2015 Share Posted February 9, 2015 should you be vizualizing a product having features attached to it, the feature_value list is displayed in the xml content. Example: (here product_features/1 and product_feature_values/1 is attached to this product <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <product> <id><![CDATA[1]]></id> <id_manufacturer><![CDATA[0]]></id_manufacturer> <id_supplier><![CDATA[0]]></id_supplier> <id_category_default xlink:href="http://presta16/api/categories/2"><![CDATA[2]]></id_category_default> <new></new> <cache_default_attribute><![CDATA[0]]></cache_default_attribute> <id_default_image notFilterable="true"></id_default_image> <id_default_combination notFilterable="true"></id_default_combination> <id_tax_rules_group xlink:href="http://presta16/api/tax_rule_groups/1"><![CDATA[1]]></id_tax_rules_group> <position_in_category notFilterable="true"><![CDATA[0]]></position_in_category> <manufacturer_name notFilterable="true"></manufacturer_name> <quantity notFilterable="true"><![CDATA[0]]></quantity> <type notFilterable="true"><![CDATA[simple]]></type> <id_shop_default><![CDATA[1]]></id_shop_default> <reference></reference> <supplier_reference></supplier_reference> <location></location> <width><![CDATA[0.000000]]></width> <height><![CDATA[0.000000]]></height> <depth><![CDATA[0.000000]]></depth> <weight><![CDATA[0.000000]]></weight> <quantity_discount><![CDATA[0]]></quantity_discount> <ean13></ean13> <upc></upc> <cache_is_pack><![CDATA[0]]></cache_is_pack> <cache_has_attachments><![CDATA[0]]></cache_has_attachments> <is_virtual><![CDATA[0]]></is_virtual> <on_sale><![CDATA[0]]></on_sale> <online_only><![CDATA[0]]></online_only> <ecotax><![CDATA[0.000000]]></ecotax> <minimal_quantity><![CDATA[1]]></minimal_quantity> <price><![CDATA[4.125000]]></price> <wholesale_price><![CDATA[0.000000]]></wholesale_price> <unity></unity> <unit_price_ratio><![CDATA[0.000000]]></unit_price_ratio> <additional_shipping_cost><![CDATA[0.00]]></additional_shipping_cost> <customizable><![CDATA[0]]></customizable> <text_fields><![CDATA[0]]></text_fields> <uploadable_files><![CDATA[0]]></uploadable_files> <active><![CDATA[1]]></active> <redirect_type><![CDATA[404]]></redirect_type> <id_product_redirected><![CDATA[0]]></id_product_redirected> <available_for_order><![CDATA[1]]></available_for_order> <available_date><![CDATA[0000-00-00]]></available_date> <condition><![CDATA[new]]></condition> <show_price><![CDATA[1]]></show_price> <indexed><![CDATA[1]]></indexed> <visibility><![CDATA[both]]></visibility> <advanced_stock_management><![CDATA[0]]></advanced_stock_management> <date_add><![CDATA[2015-02-07 18:00:57]]></date_add> <date_upd><![CDATA[2015-02-09 22:15:05]]></date_upd> <pack_stock_type><![CDATA[3]]></pack_stock_type> <meta_description><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></meta_description> <meta_keywords><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></meta_keywords> <meta_title><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></meta_title> <link_rewrite><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[p495-vat20]]></language></link_rewrite> <name><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[P4.95 VAT20%]]></language></name> <description><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></description> <description_short><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></description_short> <available_now><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></available_now> <available_later><language id="1" xlink:href="http://presta16/api/languages/1"><![CDATA[]]></language></available_later> <associations> <categories nodeType="category" api="categories"> <category xlink:href="http://presta16/api/categories/2"> <id><![CDATA[2]]></id> </category> </categories> <images nodeType="image" api="images"/> <combinations nodeType="combination" api="combinations"/> <product_option_values nodeType="product_option_value" api="product_option_values"/> <product_features nodeType="product_feature" api="product_features"> <product_feature xlink:href="http://presta16/api/product_features/1"> <id><![CDATA[1]]></id> <id_feature_value xlink:href="http://presta16/api/product_feature_values/1"><![CDATA[1]]></id_feature_value> </product_feature> </product_features> <tags nodeType="tag" api="tags"/> <stock_availables nodeType="stock_available" api="stock_availables"> <stock_available xlink:href="http://presta16/api/stock_availables/1"> <id><![CDATA[1]]></id> <id_product_attribute><![CDATA[0]]></id_product_attribute> </stock_available> </stock_availables> <accessories nodeType="product" api="products"/> <product_bundle nodeType="product" api="products"/> </associations> </product> </prestashop> Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted July 28, 2015 Share Posted July 28, 2015 Hi, I needed to make changes to my script similar to the one above, in my prestashop store. <stock_availables nodeType="stock_available" api="stock_availables"> <stock_available xlink:href="http://presta16/api/stock_availables/1"> <id> The above part, to be precise. I'm not sure where to find the above script. i may sound strange, but I'm just a novice. Any help would be much appreciated. Thanks 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