Beefed up .gitignore
Added sample files folder Working on pants import job example Added instructions on how to use node, tested with existing project
This commit is contained in:
32
Example Files/OCAPI_SHOP_Products_example.json
Normal file
32
Example Files/OCAPI_SHOP_Products_example.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"_v": "21.9a",
|
||||
"clients": [
|
||||
{
|
||||
"allowed_origins": [
|
||||
"http://www.sitegenesis.com",
|
||||
"https://secure.sitegenesis.com"
|
||||
],
|
||||
"client_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"resources": [
|
||||
{
|
||||
"resource_id": "/product_search",
|
||||
"methods": [
|
||||
"get"
|
||||
],
|
||||
"read_attributes": "(**)",
|
||||
"write_attributes": "(**)",
|
||||
"cache_time": 900
|
||||
},
|
||||
{
|
||||
"resource_id": "/products/*",
|
||||
"methods": [
|
||||
"get"
|
||||
],
|
||||
"read_attributes": "(**)",
|
||||
"write_attributes": "(**)",
|
||||
"cache_time": 900
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
312
Example Files/pants-import.xml
Executable file
312
Example Files/pants-import.xml
Executable file
@@ -0,0 +1,312 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<catalog xmlns="http://www.demandware.com/xml/impex/catalog/2006-10-31" catalog-id="apparel-m-catalog">
|
||||
<header>
|
||||
<image-settings>
|
||||
<internal-location base-path="/images"/>
|
||||
<view-types>
|
||||
<view-type>swatch</view-type>
|
||||
<view-type>large</view-type>
|
||||
<view-type>medium</view-type>
|
||||
<view-type>small</view-type>
|
||||
</view-types>
|
||||
<variation-attribute-id>color</variation-attribute-id>
|
||||
<alt-pattern>${productname}, ${variationvalue}, ${viewtype}</alt-pattern>
|
||||
<title-pattern>${productname}, ${variationvalue}</title-pattern>
|
||||
</image-settings>
|
||||
</header>
|
||||
|
||||
<product product-id="blue-pants-1">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1.0</min-order-quantity>
|
||||
<step-quantity>1.0</step-quantity>
|
||||
<display-name xml:lang="x-default">Blue Pants</display-name>
|
||||
<long-description xml:lang="x-default">Blue pants made of denim. Also known as Jeans.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="size">S</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="red-pants-1">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">Red Pants</display-name>
|
||||
<short-description xml:lang="x-default">Matador style pants</short-description>
|
||||
<long-description xml:lang="x-default">Perfect gift for your bullfighter friend.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">red</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">red</custom-attribute>
|
||||
<custom-attribute attribute-id="size">S</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="blue-pants-2">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">Blue Pants</display-name>
|
||||
<long-description xml:lang="x-default">Specifically tailored to camouflage in a pool.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="size">M</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="white-pants-1">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">White Pants</display-name>
|
||||
<short-description xml:lang="x-default">The cleanest pants you have ever seen.</short-description>
|
||||
<long-description xml:lang="x-default">Do not wear these pants while eating, walking or cleaning as they may get dirty.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">white</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">white</custom-attribute>
|
||||
<custom-attribute attribute-id="size">S</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="white-pants-2">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">White Pants</display-name>
|
||||
<short-description xml:lang="x-default">The sheen of the cosmos on your legs.</short-description>
|
||||
<long-description xml:lang="x-default">A clean, blinding white. Color modeld after the sun. The very star that sustains this planet.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">white</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">white</custom-attribute>
|
||||
<custom-attribute attribute-id="size">M</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="red-pants-2">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">Red Pants</display-name>
|
||||
<short-description xml:lang="x-default">Christmas Red</short-description>
|
||||
<long-description xml:lang="x-default">Wear these pants with a green shirt and everyone will think you are an elf. </long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">red</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">red</custom-attribute>
|
||||
<custom-attribute attribute-id="size">M</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="red-pants-3">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">Red Pants</display-name>
|
||||
<short-description xml:lang="x-default">The color of fire and rage.</short-description>
|
||||
<long-description xml:lang="x-default">Red Rage Pants. Perfert for fits of rage.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">red</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">red</custom-attribute>
|
||||
<custom-attribute attribute-id="size">L</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="white-pants-3">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1.0</min-order-quantity>
|
||||
<step-quantity>1.0</step-quantity>
|
||||
<display-name xml:lang="x-default">White Pants</display-name>
|
||||
<short-description xml:lang="x-default">All the colors combined.</short-description>
|
||||
<long-description xml:lang="x-default">Mix all the colors together and you get the color of these pants.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">white</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">white</custom-attribute>
|
||||
<custom-attribute attribute-id="size">L</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
<product product-id="blue-pants-3">
|
||||
<ean/>
|
||||
<upc/>
|
||||
<unit/>
|
||||
<min-order-quantity>1</min-order-quantity>
|
||||
<step-quantity>1</step-quantity>
|
||||
<display-name xml:lang="x-default">Blue Pants</display-name>
|
||||
<long-description xml:lang="x-default">They look like whale skin. Don't worry. They are vegan.</long-description>
|
||||
<store-force-price-flag>false</store-force-price-flag>
|
||||
<store-non-inventory-flag>false</store-non-inventory-flag>
|
||||
<store-non-revenue-flag>false</store-non-revenue-flag>
|
||||
<store-non-discountable-flag>false</store-non-discountable-flag>
|
||||
<online-flag>true</online-flag>
|
||||
<available-flag>false</available-flag>
|
||||
<searchable-flag>true</searchable-flag>
|
||||
<searchable-if-unavailable-flag>false</searchable-if-unavailable-flag>
|
||||
<page-attributes/>
|
||||
<custom-attributes>
|
||||
<custom-attribute attribute-id="color">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="refinementColor">blue</custom-attribute>
|
||||
<custom-attribute attribute-id="size">L</custom-attribute>
|
||||
</custom-attributes>
|
||||
<pinterest-enabled-flag>false</pinterest-enabled-flag>
|
||||
<facebook-enabled-flag>false</facebook-enabled-flag>
|
||||
<store-attributes>
|
||||
<force-price-flag>false</force-price-flag>
|
||||
<non-inventory-flag>false</non-inventory-flag>
|
||||
<non-revenue-flag>false</non-revenue-flag>
|
||||
<non-discountable-flag>false</non-discountable-flag>
|
||||
</store-attributes>
|
||||
</product>
|
||||
|
||||
</catalog>
|
Reference in New Issue
Block a user