{"id":1196,"date":"2016-11-04T22:04:11","date_gmt":"2016-11-04T22:04:11","guid":{"rendered":"https:\/\/a04mkpapi001.cdweb.biz\/?page_id=1196"},"modified":"2022-12-07T11:28:25","modified_gmt":"2022-12-07T11:28:25","slug":"offerintegration","status":"publish","type":"page","link":"https:\/\/wp74.directchezmoi.com\/?page_id=1196","title":{"rendered":"OfferIntegration"},"content":{"rendered":"<div id=\"pl-1196\"  class=\"panel-layout\" ><div id=\"pg-1196-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-1196-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-1196-0-0-0\" class=\"so-panel widget widget_sow-editor panel-first-child panel-last-child\" data-index=\"0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<h2>Context<\/h2>\n<p>The object of this section is to describe the format of package expected to manage offers or products data integration.<\/p>\n<h1>Open XML\u00a0Format: overall description<\/h1>\n<h2>General information<\/h2>\n<p>The format of the expected file is Open XML type. It is a compressed file ti the <a href=\"http:\/\/fr.wikipedia.org\/wiki\/ZIP_%28format_de_fichier%29\">format ZIP<\/a> which contains a whole of repertories &amp; files describing the document (<a href=\"http:\/\/fr.wikipedia.org\/wiki\/Extensible_Markup_Language\">XML<\/a>, images <a href=\"http:\/\/fr.wikipedia.org\/wiki\/.jpg\">.jpg<\/a>) (XML, .jpg images).<\/p>\n<h2>Open XML: format description<\/h2>\n<p><em>Source: Wikipedia<\/em><\/p>\n<h3>General principle<\/h3>\n<p>The Office Open XML format uses a structure respecting Open Packaging Convention and defining in a simple and logic way the internal structure of all Open Office XML documents. According to this convention, the documents are ZIP files from which the various elements composing it, called parts, are connected by logical relations. The use of the ZIP allows in addition to compressing the documents, to store the data in a completely independent way in a segmented architecture.<\/p>\n<p>Besides this architecture makes it possible more effectively to protect the Open Office XML documents vis-a-vis corruption from the data (if an element is damaged, the others will not be affected).<\/p>\n<h3>\u00ab\u00a0Package\u00a0\u00bb concept<\/h3>\n<p>The package defines the Zip archive including XML document data.<\/p>\n<h3>\u00ab\u00a0Part\u00a0\u00bb concept<\/h3>\n<p>A part is an element of the Zip file: a compressed file integrated into the structure of the Zip file. There are 3 types:<\/p>\n<ul>\n<li>contents,<\/li>\n<li>relations,<\/li>\n<li>Types of contents.<\/li>\n<\/ul>\n<p>Contents parts are made up of the document data. They are either with XML format or with binary format (GIF, JPEG, objects OLE,\u2026).<\/p>\n<p>The relations parts contain an XML structure defined in ECMA-376 standard reference schemes.<\/p>\n<h3>\u00ab\u00a0Relationship\u00a0\u00bb and \u00ab\u00a0Relationship\u00a0Part\u00bb concepts<\/h3>\n<p>Relationship parts specify the links between the package or a source part and a target part.<\/p>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot; ?&gt;<br\/>&lt;Relationships xmlns=&quot;http:\/\/schemas.openxmlformats.org\/package\/2006\/relationships&quot;&gt;<br\/>  &lt;Relationship Id=&quot;rId3&quot; Type=&quot;http:\/\/schemas...\/metadata\/core-properties&quot; Target=&quot;docProps\/core.xml&quot; \/&gt;<br\/>  &lt;Relationship Id=&quot;rId2&quot; Type=&quot;http:\/\/schemas...\/metadata\/thumbnail&quot; Target=&quot;docProps\/thumbnail.jpeg&quot; \/&gt;<br\/>  &lt;Relationship Id=&quot;rId1&quot; Type=&quot;http:\/\/schemas...\/officeDocument&quot; Target=&quot;word\/document.xml&quot; \/&gt;<br\/>  &lt;Relationship Id=&quot;rId4&quot; Type=&quot;http:\/\/schemas...\/extended-properties&quot; Target=&quot;docProps\/app.xml&quot; \/&gt;<br\/>&lt;\/Relationships&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<p>A relationship has a relationship type specifying the nature of the pointed part, and the URI relating to the targeted part.<\/p>\n<p>The relationship parts have a name, represented by a URI, which must respect a particular naming convention. This syntax stipulated in the standard is the following: <strong><em>&lt;hierarchic path &gt;\/_rels\/&lt;source part name&gt;.rels.<\/em><\/strong><\/p>\n<p>Examples:<\/p>\n<ul>\n<li>the package Relationship part does not have a source part, since this one is located at the root even of the document (and is obligatory), its syntax is unique\u00a0: <strong><em>\/_rels\/.rels<\/em><\/strong><\/li>\n<li>the relationship part of content main part of a WordprocessingML document has the following URI: <strong><em>'\/word\/document.xml'<\/em><\/strong>, consequently the part of relation associated (which will allow for example, with the contents to target an image inserted in the document) must have the following URI: <strong><em>\/word\/_rels\/document.xml.rels<\/em><\/strong><\/li>\n<\/ul>\n<h3>Content types parts<\/h3>\n<p>This obligatory part has unique name: <em>[Content_Types].xml<\/em><\/p>\n<p>This name is not compatible with <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Uniform_Resource_Identifier\">URI<\/a> syntax: this is a technical choice. Here is an example of the content of the content type part:<\/p>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot; ?&gt;<br\/>&lt;Types xmlns=&quot;http:\/\/schemas.openxmlformats.org\/package\/2006\/content-types&quot;&gt;<br\/>  &lt;Override PartName=&quot;\/ppt\/slides\/slide5.xml&quot; ContentType=&quot;application\/vnd.openxmlformats-officedocument.presentationml.slide+xml&quot; \/&gt;<br\/>  &lt;Default Extension=&quot;png&quot; ContentType=&quot;image\/png&quot; \/&gt;<br\/>  &lt;Default Extension=&quot;rels&quot; ContentType=&quot;application\/vnd.openxmlformats-package.relationships+xml&quot; \/&gt;<br\/>  &lt;Default Extension=&quot;xml&quot; ContentType=&quot;application\/xml&quot; \/&gt;<br\/>  \u2026<br\/>&lt;\/Types&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<p>This type definition defines two extension types, the default one that specifies that all elements having the mentioned extension are of the defined type, and the other that overloads the extension defined by default stipulating a specific type for a specific part.<\/p>\n<p>All contents type must be compatibles with <a href=\"http:\/\/tools.ietf.org\/html\/rfc2616\">RFC 2616<\/a>(taking into account packing model rules, the support of parameters of content type is forbidden).<\/p>\n<h1>Open XML Format adapted to the Marketplace<\/h1>\n<h2>Offers import file<\/h2>\n<p>The name given to the Zip package has no importance. There is no specific norm.<\/p>\n<p>The offers Zip package content is the following:<\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"3\" width=\"307\"><strong>Title<\/strong><\/td>\n<td width=\"127\"><strong>Type<\/strong><\/td>\n<td width=\"185\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"92\">_rels<\/td>\n<td width=\"215\"><\/td>\n<td width=\"127\">File<\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33\"><\/td>\n<td colspan=\"2\" width=\"273\"><a href=\"#rels\">.rels<\/a><\/td>\n<td width=\"127\">xml file<\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" width=\"307\">Content<\/td>\n<td width=\"127\">File<\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33\"><\/td>\n<td colspan=\"2\" width=\"273\"><a href=\"#offers\">Offers.xml<\/a><\/td>\n<td width=\"127\">xml file<\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" width=\"307\"><a href=\"#contenttypes\">[Content_Types].xml<\/a><\/td>\n<td width=\"127\">xml file<\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33\"><\/td>\n<td width=\"59\"><\/td>\n<td width=\"215\"><\/td>\n<td width=\"127\"><\/td>\n<td width=\"185\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"rels\">.rels file Structure<\/h2>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br\/>&lt;Relationships xmlns=&quot;http:\/\/schemas.openxmlformats.org\/package\/2006\/relationships&quot;&gt;<br\/>  &lt;Relationship Type=&quot;http:\/\/cdiscount.com\/uri\/document&quot;  Target=&quot;\/Content\/Offers.xml&quot; Id=&quot;Raa033fe51c984c6f&quot; \/&gt;<br\/>&lt;\/Relationships&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<p>The Id attribute can contain a unique value (but it is not an obligation).<\/p>\n<p>In fact, a checksum is calculated every time you import a package. this checksum is calculated depending on data included in the package (<sub>which<\/sub>which prevents a seller to submit the same package 2 times consecutively). However, if this Id is unique every time there is a generation, then the checksum will be different.<\/p>\n<p>The seller can therefore put in this attribute the value of his choice.<\/p>\n<h2 id=\"offers\">Offers.xml file structure<\/h2>\n<h3>Scheme<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dev.cdiscount.com\/marketplace\/wp-content\/uploads\/Offers-224x300.jpg\" alt=\"offers\" width=\"224\" height=\"300\" class=\"alignnone size-medium wp-image-1666\" srcset=\"https:\/\/wp74.directchezmoi.com\/wp-content\/uploads\/Offers-224x300.jpg 224w, https:\/\/wp74.directchezmoi.com\/wp-content\/uploads\/Offers.jpg 690w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/><\/p>\n<h3>Examples<\/h3>\n<h4>A package containing an offer without special offer<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;32427220&quot; ProductEan=&quot;00806056210006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; PreparationTime=&quot;3&quot; StrikedPrice=&quot;110&quot; Comment=&quot;Offre avec tous les modes de livraisons possibles&quot;&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>\t\t&lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>\t\t&lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>\t\t&lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with a flash sale<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;S524582810030&quot; ProductEan=&quot;9152458285308&quot; ProductCondition=&quot;6&quot; Price=&quot;100&quot; PreparationTime=&quot;3&quot; EcoPart=&quot;0&quot; DeaTax=&quot;3.14&quot; Vat=&quot;20&quot; Stock=&quot;10&quot; Comment=&quot;offer with flash sales&quot;&gt;<br\/>    &lt;Offer.PriceAndDiscountList&gt;<br\/>     &lt;DiscountComponentList Capacity=&quot;1&quot;&gt;<br\/>      &lt;DiscountComponent DiscountUnit=&quot;1&quot; DiscountValue=&quot;20&quot; EndDate=&quot;2022-12-22T20:00&quot; StartDate=&quot;2022-12-21T08:00&quot; Type=&quot;1&quot; \/&gt;<br\/>     &lt;\/DiscountComponentList&gt;<br\/>    &lt;\/Offer.PriceAndDiscountList&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;7&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;4.95&quot; DeliveryMode=&quot;Relay&quot; ShippingCharges=&quot;5.5&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;4.95&quot; DeliveryMode=&quot;MondialRelay&quot; ShippingCharges=&quot;5.5&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;6.95&quot; DeliveryMode=&quot;RelaisColis&quot; ShippingCharges=&quot;7.5&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;7.95&quot; DeliveryMode=&quot;SoColissimo&quot; ShippingCharges=&quot;8.5&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with sales<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;3&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;S53262149036&quot; ProductEan=&quot;9153262149367&quot; ProductCondition=&quot;6&quot; Price=&quot;100&quot; EcoPart=&quot;0&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; PreparationTime=&quot;3&quot; StrikedPrice=&quot;110&quot; Comment=&quot;Offer with sales&quot; PriceMustBeAligned=&quot;DontAlign&quot;&gt;<br\/>    &lt;Offer.PriceAndDiscountList&gt;<br\/>     &lt;DiscountComponentList Capacity=&quot;1&quot;&gt;<br\/>      &lt;DiscountComponent DiscountUnit=&quot;1&quot; DiscountValue=&quot;30&quot; SalesReferencePrice=&quot;100&quot; Type=&quot;3&quot; EndDate=&quot;2023-01-01T00:01&quot; StartDate=&quot;2023-01-01T00:00&quot; \/&gt;<br\/>     &lt;\/DiscountComponentList&gt;<br\/>    &lt;\/Offer.PriceAndDiscountList&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;7&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;6.95&quot; DeliveryMode=&quot;RelaisColis&quot; ShippingCharges=&quot;7.5&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;7.95&quot; DeliveryMode=&quot;SoColissimo&quot; ShippingCharges=&quot;8.5&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;7.95&quot; DeliveryMode=&quot;MondialRelay ShippingCharges=&quot;8.5&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with home delivery information<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;S52458285030&quot; ProductEan=&quot;9152458285308&quot; ProductCondition=&quot;6&quot; Price=&quot;50&quot; EcoPart=&quot;0&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; PreparationTime=&quot;3&quot; Comment=&quot;offer avec livraison magasin&quot;&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;4&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;4.95&quot; DeliveryMode=&quot;Relay&quot;  ShippingCharges=&quot;5.5&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with automatic price alignment activated<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;S52458285030&quot; ProductEan=&quot;9152458285308&quot; ProductCondition=&quot;6&quot; Price=&quot;50&quot; EcoPart=&quot;0&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; PreparationTime=&quot;3&quot; Comment=&quot;offer with flash sales&quot; PriceMustBeAligned=&quot;Align&quot; MinimumPriceForPriceAlignment=&quot;45.5&quot;&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with in shop delivery information<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;32427220&quot; ProductEan=&quot;0080605625006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; StrikedPrice=&quot;39.95&quot; Comment=&quot;Offre avec tous les modes de livraisons possibles&quot; PriceMustBeAligned=&quot;Unknown&quot; PreparationTime=\u201d3\u201d&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;6&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;6.95&quot; DeliveryMode=&quot;RelaisColis&quot; ShippingCharges=&quot;7.5&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;7.95&quot; DeliveryMode=&quot;SoColissimo&quot; ShippingCharges=&quot;8.5&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with the unit price<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;324272201&quot; ProductEan=&quot;0080605625006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; StrikedPrice=&quot;39.95&quot; Comment=&quot;Offre avec prix \u00e0 l&#039;unit\u00e9 de conditionnement&quot;  ProductPackagingUnit=&quot;Liter&quot; ProductPackagingValue=&quot;0.5&quot; PreparationTime=&quot;3&quot; &gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package containing an offer with the Cdiscount At Will mode (Cdiscount \u00e0 volont\u00e9 in french\u00a0: CDAV)<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;324272201&quot; ProductEan=&quot;0080605625006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; StrikedPrice=&quot;39.95&quot; Comment=&quot;Offer with CDAV activated&quot; IsCDAV=&quot;True&quot; PreparationTime=\u201d3\u201d&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Tracked&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;Registered&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<br\/> &lt;\/OfferPackage.Offers&gt;<br\/>&lt;\/OfferPackage&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package with big parcel delivery mode<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;32427220&quot; ProductEan=&quot;0080605625006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; StrikedPrice=&quot;39.95&quot; Comment=&quot;Offre avec tous les modes de livraisons possibles&quot; PreparationTime=&quot;1&quot;&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;BigParcelEco&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;BigParcelStandard&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;2.95&quot; DeliveryMode=&quot;BigParcelComfort&quot; ShippingCharges=&quot;3.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h4>A package with express delivery mode<\/h4>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;OfferPackage Name=&quot;Nom fichier offres&quot; PackageType=&quot;Full&quot; PurgeAndReplace=&quot;False&quot; xmlns=&quot;clr-namespace:Cdiscount.Service.OfferIntegration.Pivot;assembly=Cdiscount.Service.OfferIntegration&quot; xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;&gt;<br\/> &lt;OfferPackage.Offers&gt;<br\/>  &lt;OfferCollection Capacity=&quot;1&quot;&gt;<br\/>   &lt;Offer SellerProductId=&quot;32427220&quot; ProductEan=&quot;0080605625006&quot; ProductCondition=&quot;6&quot; Price=&quot;19.95&quot; EcoPart=&quot;0.10&quot; DeaTax=&quot;3.14&quot; Vat=&quot;19.6&quot; Stock=&quot;10&quot; StrikedPrice=&quot;39.95&quot; Comment=&quot;Offre avec tous les modes de livraisons possibles&quot; PreparationTime=&quot;1&quot;&gt;<br\/>    &lt;Offer.ShippingInformationList&gt;<br\/>     &lt;ShippingInformationList Capacity=&quot;3&quot;&gt;<br\/>      &lt;ShippingInformation AdditionalShippingCharges=&quot;0.95&quot; DeliveryMode=&quot;Standard&quot; ShippingCharges=&quot;1.0&quot; \/&gt;<br\/>&lt;ShippingInformation AdditionalShippingCharges=&quot;1.95&quot; DeliveryMode=&quot;Express&quot; ShippingCharges=&quot;2.0&quot; \/&gt;<br\/>     &lt;\/ShippingInformationList&gt;<br\/>    &lt;\/Offer.ShippingInformationList&gt;<br\/>   &lt;\/Offer&gt;<br\/>  &lt;\/OfferCollection&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h3>Detailed Structure<\/h3>\n<p>The detailed structure of the Offers.Xml file is described in <a href=\"?pagename=offerpackage\">Offers.xml files<\/a><\/p>\n<h3>Decimal separator<\/h3>\n<p>The decimal separator of decimal number is the dot \u00ab\u00a0.\u00a0\u00bb.<\/p>\n<h2 id=\"contenttypes\">[Content_Types].xml file structure<\/h2>\n<p>The content of this file is fixed:<\/p>\n<div class=\"code-embed-wrapper\"> <pre class=\"language-markdown code-embed-pre\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br\/>&lt;Types xmlns=&quot;http:\/\/schemas.openxmlformats.org\/package\/2006\/content-types&quot;&gt;<br\/><br\/>  &lt;Default Extension=&quot;xml&quot; ContentType=&quot;text\/xml&quot; \/&gt;<br\/>  &lt;Default Extension=&quot;rels&quot;<br\/>  ContentType=&quot;application\/vnd.openxmlformats-package.relationships+xml&quot; \/&gt;<br\/>&lt;\/Types&gt;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div>\n<h1>Points of attention<\/h1>\n<h2>Activation \/ deactivation of special offers<\/h2>\n<p>The sales and flash sales are defined by the information contained in the element Offer.PriceAndDiscountList in the file offer.xml.<\/p>\n<p>To deactivate all special offers on an offer, you have to update this offer without information in <strong>Offer.PriceAndDiscountList<\/strong>.<\/p>\n<p>The duration of flash sales is limited at 72h from the start date noticed, at the end of this delay the flash sale is deactivated.<\/p>\n<h4>Concerning the management of commercial mechanics, there are 4 possible ones: <\/h4>\n<ul>\n<li>\n\t<b>the strikedprice<\/b> which corresponds to the price generally found in stores. It is not limited in time. Price is strictly lower than StrikedPrice. <\/p>\n<\/li>\n<li>\n <b>Minimum price for alignement<\/b> (MinimumpriceforPriceAlignment and PriceMustBeAligned) which is automatically aligned with the competition up to the fixed floor price. it is not limited in time. In your case, please note that you have entered \"1.00\", which means that you can lower the price by up to 1\u20ac. <\/p>\n<\/li>\n<li>\n\t<b>Sales<\/b> that are only active during the official sales period in France (January and June). Type=3 and DiscountUnit=1. The SalesreferencePrice is the price that will be applied to the sale (usually equal to the Price) and the DiscountValue is the discount percentage. Be careful, in your example, you make a discount of 99.90%. Not combinable with flash sales. <\/p>\n<\/li>\n<li>\n<b>flash sales.<\/b> Limited to 48h maximum for each SKU with a mandatory 3x the time of the flash sale between each sale.\u00a0Type=1 and DiscountUnit=1. The DiscountValue is applied directly on the Price. And the spacing between StartDate and EndDate must not exceed 48h.\u00a0Not combinable with sales.\n<\/li>\n<\/ul>\n<h2>Shippingmode modification<\/h2>\n<p>Sellers can propose three delivery mode<\/p>\n<ul>\n<li>Home delivery<\/li>\n<li>In shop delivery<\/li>\n<li>Immediate pick up at store<\/li>\n<\/ul>\n<p>These mode can be selected in the sellershop in the <em>StoreSettings\/Shipping options\u00a0 <\/em>section.<\/p>\n<p>the shipping mode choosen must be available for all offers online.<\/p>\n<p>That is why, the shipping mode modifications will be effective after an offers update with the <em>Purge&amp;Replace <\/em>mode activated.<\/p>\n<p>You \u00a0must therefore\u00a0 submit all your offers you want online, and their shipping information will be checked to be accorded to the shipping mode choosen.<\/p>\n<h2>Multi tenant<\/h2>\n<p>Sellers can be registered on several websites.<\/p>\n<p>You can chose on which websites you create\/update your offers thanks to the OfferPublicationList\/@PublicationPool.<\/p>\n<p>if you do not use the attribute OfferPublicationList\/@PublicationPool, the default website is Cdiscount.<\/p>\n<p>if you are not registered on Cdiscount you have to mention the attributes OfferPublicationList\/@PublicationPool, otherwise your offers ill not be updated \/ created.<\/p>\n<p>if you use the<em> Purge&amp;Replace <\/em>mode, the purge will only be made on the offers of the website mentionned.<\/p>\n<p>If no website is mentionned only the offers on Cdiscount website will be purged.<\/p>\n<h2>Offer Package Submission error codes<\/h2>\n<p>The detailled page of offers package submission error codes is described in <a href=\"?pagename=offer-integration\">Offer integration<\/a><\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Context The object of this section is to describe the format of package expected to manage offers or products data integration. Open XML\u00a0Format: overall description General information The format of the expected file is Open XML type. It is a compressed file ti the format ZIP which contains a whole &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1196","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/1196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1196"}],"version-history":[{"count":18,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/1196\/revisions"}],"predecessor-version":[{"id":6203,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/1196\/revisions\/6203"}],"wp:attachment":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}