Wilfredcy Posted April 2, 2019 Share Posted April 2, 2019 I encountered an error the Friendly URL, as if link_rewrite input is "abc.com" , Prestashop allows to create the product instead of giving an error as "invalid field value" for friendly URL. Below is the request's body for the same for which I use the post method to create the product: Request: <?xml version='1.0' encoding='UTF-8'?> <prestashop> <product> <id_supplier>3</id_supplier> <id_manufacturer>3</id_manufacturer> <id_tax_rules_group>1</id_tax_rules_group> <width>10</width> <height>10</height> <depth>10</depth> <weight>10</weight> <id_category_default/> <id_shop_default>1</id_shop_default> <on_sale>1</on_sale> <ean13>1234567</ean13> <upc/> <price>889.38</price> <wholesale_price/> <ecotax/> <unit_price_ratio/> <unity/> <reference>Leather Bag Collection</reference> <active>1</active> <available_for_order>1</available_for_order> <condition>new</condition> <visibility>both</visibility> <show_price>1</show_price> <online_only>0</online_only> <name> <language id='1'>Leather Bag Collection</language> </name> <description> <language id='1'>Leather Bag Collection</language> </description> <description_short> <language id='1'>Short Desc</language> </description_short> <link_rewrite> <language id='1'>xyz.com</language> </link_rewrite> <meta_title> <language id='1'>Meta</language> </meta_title> <meta_description> <language id='1'>Meta</language> </meta_description> <meta_keywords> <language id='1'>Meta</language> </meta_keywords> <associations> <tags> <tag> <id>106</id> </tag> <tag> <id>28</id> </tag> <tag> <id>297</id> </tag> </tags> <categories> <category> <id>24</id> </category> </categories> </associations> </product> </prestashop> Response: Product created successfully. Expected: Product shouldn't be created. Link to comment Share on other sites More sharing options...
Wilfredcy Posted April 3, 2019 Author Share Posted April 3, 2019 Anyone? 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