{{data.info_site.shop2.name}} {{data.info_site.site.company}} {*data.info_site.site.url_shop*} Megagroup CMS-S3 {% if data.info_site.settings.currency ~= false then %} {% end %} {% if data.info_site.settings.delivery == 1 then %} true {% if data.info_site.settings.delivery_options_cost ~= '' and data.info_site.settings.delivery_options_days ~= '' then %} {% end %} {% else %} false {% end %} Без категории {% for _, cat in data.categories:get() do %} {% if cat.level > 0 then %} 1 then %} parentId="{{cat.parent_id}}"{% end %}>{{cat.name}} {% end %} {% end %} {% if data.info_site.settings.folders_additional then %} {% for _, cat in pairs(data.info_site.settings.folders_additional) do %} 1 then %} parentId="{{cat.parent_id}}"{% end %}>{{cat.name}} {% end %} {% end %} {% for _, offer in data.offers:get() do %} {% if offer.price > 0 and ((data.info_site.settings.require_amount == 1 and offer.amount > 0) or data.info_site.settings.require_amount == 0) then %} {% tl:add_key_stack("kinds", offer.id, 1) %} = 1 then %} available="true" {% end %} {% if data.info_site.settings.name == "3" and tl:not_empty_value_cf(offer.cf, "share/yandex_market:yml_model") then %} type="vendor.model" {% end %} > {*data.info_site.site.url*}{*offer.url*}{% if data.info_site.site.trailing_slash then %}/{% end %} {% if data.info_site.settings.currency ~= false then %} {% if tonumber(data.info_site.settings.price) == 1 then %} {*tl:round(offer.price/data.info_site.settings.currency.rate, 2)*} {% end %} {% if tonumber(data.info_site.settings.price) == 2 and offer.price2 then %} {*tl:round(offer.price2/data.info_site.settings.currency.rate, 2)*} {% end %} {% if tonumber(data.info_site.settings.price) == 3 and offer.price3 then %} {*tl:round(offer.price3/data.info_site.settings.currency.rate, 2)*} {% end %} {% end %} {% if data.info_site.settings.old_price == 1 and offer.price < offer.price_old and data.info_site.settings.currency ~= false then %} {*tl:round(offer.price_old/tonumber(data.info_site.settings.currency.rate), 2)*} {% end %} {% if data.info_site.settings.currency ~= false then %} {{data.info_site.settings.currency.currency_symbol}} {% end %} {{offer.categoryId}} {% if offer.picture then %} {% for key, pic in pairs(offer.picture) do %} {% if key <= 10 then %} {*data.info_site.site.url*}{*pic.url*} {% end %} {% end %} {% end %} {% if data.info_site.settings.pickup == 1 and data.info_site.shop2.delivery.pickup then %} true {% else %} false {% end %} {% if data.info_site.settings.store == 1 then %} true {% else %} false {% end %} {% if tl:not_empty_value_cf(offer.cf, "yml_country_of_origin") then %} {{tl:get_value_cf(offer.cf, "yml_country_of_origin")}} {% end %} {% if tl:get_value_cf(offer.cf, "yml_manufacturer_warranty") == 'Да' then %} true {% end %} {% if tl:get_value_cf(offer.cf, "yml_adult") == 'Да' then %} true {% end %} {% if tl:not_empty_value_cf(offer.cf, "yml_barcode") then %} {{tl:get_value_cf(offer.cf, "yml_barcode")}} {% end %} {% if offer.dimensions ~= "" then %} {*offer.dimensions*} {% end %} {% if offer.weight > 0 then %} {{offer.weight}} {% end %} {% if data.info_site.settings.delivery == 1 then %} true {% if tl:get_value_cf(offer.cf, "share/yandex_market:delivery_options_cost") ~= '' and tl:get_value_cf(offer.cf, "share/yandex_market:delivery_options_days") ~= '' then %} {% else %} {% if data.info_site.settings.delivery_options_cost ~= '' and data.info_site.settings.delivery_options_days ~= '' then %} {% end %} {% end %} {% else %} false {% end %} {% if data.info_site.settings.name == "" or data.info_site.settings.name == 1 then %} {{offer.name}} {% elseif data.info_site.settings.name == "2" then %} {{offer.h1}} {% elseif data.info_site.settings.name == "3" and tl:not_empty_value_cf(offer.cf, "share/yandex_market:yml_model") then %} {{tl:get_value_cf(offer.cf, "share/yandex_market:yml_model")}} {% else %} {{offer.name}} {% end %} {% if offer.min_quantity ~= nil and tonumber(offer.min_quantity) > 1 then %} {*offer.min_quantity*} {% end %} {% if offer.vendor ~= '' then %} {{offer.vendor}} {% end %} {% if offer.description ~= '' then %} {{offer.description}} {% end %} {% if offer.cf then %} {% for _, cf in pairs(offer.cf) do %} {% if cf.view_yml == 1 then %} {% if cf.unit ~= '' then %} {{cf.value}} {% else %} {{cf.value}} {% end %} {% end %} {% end %} {% end %} {% end %} {% end %} {% if data.info_site.settings.enables_discounts then %} {% for _, discount in pairs(data.info_site.shop2.discounts) do %} {% if discount.discount_kind == 2 and tonumber(discount.sum) == 0 and #discount.suppliers == 0 and #discount.vendors == 0 and discount.is_registered == false and #discount.discount_days == 7 and #discount.discount_hours == 24 and discount.is_price1 == true and tonumber(discount.value) == 1 and tl:get_key_stack("kinds", discount.gift_id) == 1 then %} {{tl:date("%Y-%m-%d",discount.start_date)}} {% if discount.finish_date > 0 then %} {{tl:date("%Y-%m-%d",discount.finish_date)}} {% end %} {% if discount.discount_descr ~= "" then %} {{discount.discount_descr}} {% else %} {{discount.discount_name}} {% end %} {% if tonumber(discount.amount) > 1 then %} {{discount.amount}} {% else %} 1 {% end %} {% for _, kind_id in pairs(discount.kinds) do %} {% end %} {% end %} {% if discount.discount_kind == 5 and tonumber(discount.amount) == 0 and tonumber(discount.sum) == 0 and #discount.suppliers == 0 and #discount.vendors == 0 and discount.is_registered == false and #discount.discount_days == 7 and #discount.discount_hours == 24 and #discount.coupons == 1 then %} {{tl:date("%Y-%m-%d",discount.start_date)}} {% if discount.finish_date > 0 then %} {{tl:date("%Y-%m-%d",discount.finish_date)}} {% end %} {% if discount.discount_descr ~= "" then %} {{discount.discount_descr}} {% else %} {{discount.discount_name}} {% end %} {{discount.coupons[1]}} {% if discount.discount_type == "percent" then %} {{discount.value}} {% end %} {% if discount.discount_type == "sum" then %} {{discount.value}} {% end %} {% for _, kind_id in pairs(discount.kinds) do %} {% end %} {% end %} {% if discount.discount_kind == 7 and tonumber(discount.amount) == 0 and tonumber(discount.sum) == 0 and #discount.suppliers == 0 and #discount.vendors == 0 and #discount.product_folders == 0 and discount.is_aggregated == false and #discount.users == 0 and discount.user_folder_id == 0 and discount.is_registered == false and #discount.discount_days == 7 and #discount.discount_hours == 24 and discount.is_price1 == true and tonumber(discount.finish_date) - tonumber(discount.start_date) < 60*60*24*7 then %} {{tl:date("%Y-%m-%d",discount.start_date)}} {% if discount.finish_date > 0 then %} {{tl:date("%Y-%m-%d",discount.finish_date)}} {% end %} {% if discount.discount_descr ~= "" then %} {{discount.discount_descr}} {% else %} {{discount.discount_name}} {% end %} {% if discount.kinds_discount_price ~= nil then %} {% for _, kind_discount in pairs(discount.kinds_discount_price) do %} {{kind_discount.price}} {% end %} {% end %} {% end %} {% if discount.discount_kind == 3 and tonumber(discount.amount) > 0 and #discount.suppliers == 0 and #discount.vendors == 0 and discount.is_registered == false and #discount.discount_days == 7 and #discount.discount_hours == 24 and discount.is_price1 == true then %} {{tl:date("%Y-%m-%d",discount.start_date)}} {% if discount.finish_date > 0 then %} {{tl:date("%Y-%m-%d",discount.finish_date)}} {% end %} {% if discount.discount_descr ~= "" then %} {{discount.discount_descr}} {% else %} {{discount.discount_name}} {% end %} {{tonumber(discount.amount)}} {{tonumber(discount.value)}} {% for _, kind_id in pairs(discount.kinds) do %} {% end %} {% end %} {% end %} {% end %}