name: BidOrBuy
type: xml
logo: bidorbuy.png
description: 'As a leading online marketplace, bidorbuy has created a safe and convenient way for people to buy and sell virtually anything online at a fixed price or in an auction format. bidorbuy is an English-language e-commerce website based on an internet auction and online marketplace model allowing individuals and businesses to trade with each other.'
guide_link: https://help.bobshop.co.za/portal/en/kb/articles/bulk-upload-tool
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="utf-8" ?>
    <ROOT>
        <Version>
          <UserId></UserId>
          <PluginVersion>Magento</PluginVersion>
          <SchemaVersion>1.00</SchemaVersion>
          <ExportCreated>{{ context.time }}</ExportCreated>
        </Version>
        <Products>
        {% for product in context.products %}
        <Product>
            <ProductName><![CDATA[{{ product.name }}]]></ProductName>
            <ProductCode><![CDATA[{{ product.entity_id }}]]></ProductCode>
            <Collection><![CDATA[{{ product.category.name }}]]></Collection>
            <Price>{{ product.final_price | price }}</Price>
            <MarketPrice>{{ product.price | price }}</MarketPrice>
            <AvailableQty>{{ product.qty }}</AvailableQty>
            <Condition>New</Condition>
            <ProductAttributes>
              <Brand><![CDATA[{{ product.manufacturer }}]]></Brand>
            </ProductAttributes>
            <Images>
            {% for image in product.gallery %}
               <ImageURL><![CDATA[{{ image }}]]></ImageURL>
            {% endfor %}
            </Images>
            <ProductDescription><![CDATA[{{ product.description | stripHtml | plain }}]]></ProductDescription>
        </Product>
        {% endfor %}
        </Products>
    </ROOT>
