Open pulkitjuneja1997 opened 2 years ago
Any help will be highly recommedable
Hello @pulkitjuneja-cedcoss
You're right! there's no way to find the associated file to a Virtual Product, here's the result of WS:
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<product>
<id>
<![CDATA[23]]>
</id>
<id_manufacturer>
<![CDATA[0]]>
</id_manufacturer>
<id_supplier>
<![CDATA[0]]>
</id_supplier>
<id_category_default xlink:href="http://prestashop/prestashop_1.7.8.3/api/categories/8">
<![CDATA[8]]>
</id_category_default>
<new>
<![CDATA[]]>
</new>
<cache_default_attribute>
<![CDATA[0]]>
</cache_default_attribute>
<id_default_image xlink:href="http://prestashop/prestashop_1.7.8.3/api/images/products/23/25" notFilterable="true">
<![CDATA[25]]>
</id_default_image>
<id_default_combination notFilterable="true">
<![CDATA[0]]>
</id_default_combination>
<id_tax_rules_group xlink:href="http://prestashop/prestashop_1.7.8.3/api/tax_rule_groups/1">
<![CDATA[1]]>
</id_tax_rules_group>
<position_in_category notFilterable="true">
<![CDATA[11]]>
</position_in_category>
<manufacturer_name notFilterable="true">
<![CDATA[]]>
</manufacturer_name>
<quantity notFilterable="true">
<![CDATA[0]]>
</quantity>
<type notFilterable="true">
<![CDATA[virtual]]>
</type>
<id_shop_default>
<![CDATA[1]]>
</id_shop_default>
<reference>
<![CDATA[movies]]>
</reference>
<supplier_reference>
<![CDATA[]]>
</supplier_reference>
<location>
<![CDATA[]]>
</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>
<![CDATA[]]>
</ean13>
<isbn>
<![CDATA[]]>
</isbn>
<upc>
<![CDATA[]]>
</upc>
<mpn>
<![CDATA[]]>
</mpn>
<cache_is_pack>
<![CDATA[0]]>
</cache_is_pack>
<cache_has_attachments>
<![CDATA[1]]>
</cache_has_attachments>
<is_virtual>
<![CDATA[1]]>
</is_virtual>
<state>
<![CDATA[1]]>
</state>
<additional_delivery_times>
<![CDATA[1]]>
</additional_delivery_times>
<delivery_in_stock>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</delivery_in_stock>
<delivery_out_stock>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</delivery_out_stock>
<product_type>
<![CDATA[virtual]]>
</product_type>
<on_sale>
<![CDATA[0]]>
</on_sale>
<online_only>
<![CDATA[0]]>
</online_only>
<ecotax>
<![CDATA[0.000000]]>
</ecotax>
<minimal_quantity>
<![CDATA[1]]>
</minimal_quantity>
<low_stock_threshold>
<![CDATA[]]>
</low_stock_threshold>
<low_stock_alert>
<![CDATA[0]]>
</low_stock_alert>
<price>
<![CDATA[30.000000]]>
</price>
<wholesale_price>
<![CDATA[0.000000]]>
</wholesale_price>
<unity>
<![CDATA[]]>
</unity>
<unit_price_ratio>
<![CDATA[0.000000]]>
</unit_price_ratio>
<additional_shipping_cost>
<![CDATA[0.000000]]>
</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_type_redirected>
<![CDATA[0]]>
</id_type_redirected>
<available_for_order>
<![CDATA[1]]>
</available_for_order>
<available_date>
<![CDATA[0000-00-00]]>
</available_date>
<show_condition>
<![CDATA[0]]>
</show_condition>
<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[2022-02-17 14:25:02]]>
</date_add>
<date_upd>
<![CDATA[2022-03-04 15:45:05]]>
</date_upd>
<pack_stock_type>
<![CDATA[3]]>
</pack_stock_type>
<meta_description>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</meta_description>
<meta_keywords>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</meta_keywords>
<meta_title>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</meta_title>
<link_rewrite>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[kids-movie]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[kids-movie]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[kids-movie]]>
</language>
</link_rewrite>
<name>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[kids movie]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[kids movie]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[kids movie]]>
</language>
</name>
<description>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</description>
<description_short>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</description_short>
<available_now>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</available_now>
<available_later>
<language id="1" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/1">
<![CDATA[]]>
</language>
<language id="2" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/2">
<![CDATA[]]>
</language>
<language id="3" xlink:href="http://prestashop/prestashop_1.7.8.3/api/languages/3">
<![CDATA[]]>
</language>
</available_later>
<associations>
<categories nodeType="category" api="categories">
<category xlink:href="http://prestashop/prestashop_1.7.8.3/api/categories/2">
<id>
<![CDATA[2]]>
</id>
</category>
<category xlink:href="http://prestashop/prestashop_1.7.8.3/api/categories/6">
<id>
<![CDATA[6]]>
</id>
</category>
<category xlink:href="http://prestashop/prestashop_1.7.8.3/api/categories/8">
<id>
<![CDATA[8]]>
</id>
</category>
</categories>
<images nodeType="image" api="images">
<image xlink:href="http://prestashop/prestashop_1.7.8.3/api/images/products/23/25">
<id>
<![CDATA[25]]>
</id>
</image>
</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"/>
<tags nodeType="tag" api="tags"/>
<stock_availables nodeType="stock_available" api="stock_availables">
<stock_available xlink:href="http://prestashop/prestashop_1.7.8.3/api/stock_availables/62">
<id>
<![CDATA[62]]>
</id>
<id_product_attribute>
<![CDATA[0]]>
</id_product_attribute>
</stock_available>
</stock_availables>
<attachments nodeType="attachment" api="attachments">
<attachment xlink:href="http://prestashop/prestashop_1.7.8.3/api/attachments/1">
<id>
<![CDATA[1]]>
</id>
</attachment>
</attachments>
<accessories nodeType="product" api="products"/>
<product_bundle nodeType="product" api="products"/>
</associations>
</product>
</prestashop>
If I associated a file to the Product in Option tab, I can recuperate the file as an attachement. Ping @PrestaShop/product-team I searched the whole Specs and yet I can't find anything about the associated file of a Virtual Product, wdyt? is it a bug? or just unfinished job?
Thanks!
This also occurs in PrestaShop 8.1.2
Prerequisites
Describe the bug and add screenshots
I am tryig to get downloadable file which is associated with virtual product using webservice, but didn't get yet
Expected behavior
No response
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.8
PHP version(s) where the bug happened
No response
If your bug is related to a module, specify its name and its version
No response