%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/root/proc/self/root/home/waritko/import-presta/import/
Upload File :
Create Path :
Current File : //proc/309157/root/proc/self/root/home/waritko/import-presta/import/xmleuromed.php

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <product>
        <id_manufacturer>0</id_manufacturer>
        <id_supplier>0</id_supplier>
        <id_category_default>3</id_category_default>
        <new></new>
        <cache_default_attribute></cache_default_attribute>
        <id_default_image></id_default_image>
        <id_default_combination></id_default_combination>
        <id_tax_rules_group><?php echo $row['dph'] == '10' ? 5 : ($row['dph'] == '21' ? 4 : ($row['dph'] == '15' ? 3 : 2)); ?></id_tax_rules_group>
        <position_in_category></position_in_category>
        <type>simple</type>
        <id_shop_default>1</id_shop_default>
        <reference></reference>
        <supplier_reference></supplier_reference>
        <location></location>
        <width><?php echo $row['sirka']; ?></width>
        <height><?php echo $row['vyska']; ?></height>
        <depth><?php echo $row['tloustka']; ?></depth>
        <weight><?php echo $row['hmotnost']; ?></weight>
        <quantity_discount>0</quantity_discount>
        <ean13><?php echo $row['ean']; ?></ean13>
        <upc></upc>
        <cache_is_pack>0</cache_is_pack>
        <cache_has_attachments>0</cache_has_attachments>
        <is_virtual>0</is_virtual>
        <on_sale>0</on_sale>
        <online_only>0</online_only>
        <ecotax>0</ecotax>
        <minimal_quantity>1</minimal_quantity>
        <price><?php echo sprintf("%0.2f", $row['cena']); ?></price>
        <wholesale_price><?php echo $row['wholesale']; ?></wholesale_price>
        <unity>0</unity>
        <unit_price_ratio>0</unit_price_ratio>
        <additional_shipping_cost>0</additional_shipping_cost>
        <customizable>0</customizable>
        <text_fields>0</text_fields>
        <uploadable_files>0</uploadable_files>
        <active><?php echo (isset($row['datumNovinka']) && (strtotime($row['datumNovinka']) > (time() + 3600*24*10)) && ($row['datumNovinka'] != '0000-00-00')) ? '0' : '1'; ?></active>
        <redirect_type>404</redirect_type>
        <id_product_redirected>0</id_product_redirected>
        <available_for_order>1</available_for_order>
        <available_date><!-- treba pridat datum kdy bude dostupna --><?php if(isset($row['datumNovinka'])) echo $row['datumNovinka']; ?></available_date>
        <condition>new</condition>
        <show_price>1</show_price>
        <indexed>1</indexed>
        <visibility>both</visibility>
        <advanced_stock_management>0</advanced_stock_management>
        <date_add></date_add>
        <date_upd></date_upd>
        <pack_stock_type>3</pack_stock_type>
        <author><![CDATA[<?php echo $row['autor']; ?>]]></author>
        <import_id>euromedia-<?php echo $row['id_pemic']; ?></import_id>
        <publisher><![CDATA[<?php echo $row['nakladatel']; ?>]]></publisher>
        <pages><?php echo $row['stran']; ?></pages>
        <binding><![CDATA[<?php echo $row['vazba']; ?>]]></binding>
        <published><?php echo isset($row['datumNovinka']) ? $row['datumNovinka'] : $row['vydano']; ?></published>
        <image_link><![CDATA[<?php echo $row['obrazek']; ?>]]></image_link>
        <meta_description maxSize="255" format="isGenericName">
            <language id="1"><?php echo $row['isbn']; ?></language>
        </meta_description>
        <meta_keywords>
            <language id="1"></language>
        </meta_keywords>
        <meta_title>
            <language id="1"><![CDATA[<?php echo $row['nazev']; ?>]]></language>
        </meta_title>
        <link_rewrite>
            <language id="1"><?php echo $row['identif']; ?></language>
        </link_rewrite>
        <name>
            <language id="1"><![CDATA[<?php echo $row['nazev']; ?>]]></language>
        </name>
        <description>
            <language id="1"><![CDATA[<?php echo $row['anotace']; ?>]]></language>
        </description>
        <description_short>
            <language id="1"><![CDATA[<?php echo shortAnot($row['anotace']); ?>]]></language>
        </description_short>
        <available_now>
            <language id="1">Zboží je skladem</language>
        </available_now>
        <available_later>
            <language id="1"><![CDATA[<?php echo $row['dostupnost'] == '1' ? 'Připravovaný DOTISK, NOVINKA' : 'Skladem u dodavatele'; ?>]]></language>
        </available_later>
        <associations>
            <categories nodeType="category" api="categories">
                <category>
                    <id>2</id>
                </category>
                <?php foreach($row['genre'] as $genre) { ?>
                    <category>
                        <id><?php echo $genre; ?></id>
                    </category>
                <?php } ?>
            </categories>
            <!--            <images nodeType="image" api="images">
                            <image>
                                <id></id>
                            </image>
                        </images> -->
            <images nodeType="image" api="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">
                <product_feature>
                    <id required="true"></id>
                    <id_feature_value xlink:href="https://shop.varak.net/api/product_feature_values/" required="true"></id_feature_value>
                </product_feature>
            </product_features> -->
            <product_features nodeType="product_feature" api="product_features" />
            <tags nodeType="tag" api="tags" />
            <stock_availables nodeType="stock_available" api="stock_availables" />
            <accessories nodeType="product" api="products" />
            <product_bundle nodeType="product" api="products" />
        </associations>
    </product>
</prestashop>

Zerion Mini Shell 1.0