first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0" style="margin-top: -8px;">
<tr>
<td class="settings-column-name">{l s='Only enable' mod='xmlfeeds'}</td>
<td>
<label for="only_enabled">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_enabled' name='only_enabled' status=$s.only_enabled}
</label>
</td>
</tr>
</table>

View File

@@ -0,0 +1,218 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr>
<td class="settings-column-name">{l s='Add CDATA' mod='xmlfeeds'}</td>
<td>
<label for="cdata_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='cdata_status' name='cdata_status' status=$s.cdata_status}
</label>
<div class="clear_block"></div>
<div class="bl_comments">[{l s='It escapes characters that are not allowed to be passed to XML.' mod='xmlfeeds'}<br>{l s='This will solve the problem: "This page contains the following errors"' mod='xmlfeeds'}]</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Drop HTML tags' mod='xmlfeeds'}</td>
<td>
<label for="html_tags_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='html_tags_status' name='html_tags_status' status=$s.html_tags_status}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='HTML special chars decode' mod='xmlfeeds'}</td>
<td>
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='is_htmlspecialchars' name='is_htmlspecialchars' status=$s.is_htmlspecialchars}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Add "-0" to the product ID' mod='xmlfeeds'}</td>
<td>
<label for="product_id_with_zero">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='product_id_with_zero' name='product_id_with_zero' status=$s.product_id_with_zero}
</label>
<div class="clear_block"></div>
<div class="bl_comments">[{l s='Disabled: 123, enabled: 123-0 (product without combinations)' mod='xmlfeeds'}]</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Category map' mod='xmlfeeds'}</td>
<td>
<select name="category_map_id">
<option value="0">{l s='None' mod='xmlfeeds'}</option>
{foreach $categoryMapList as $c}
<option value="{$c.id|escape:'htmlall':'UTF-8'}" {if $s.category_map_id == $c.id}selected{/if}>{$c.title|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Attribute map' mod='xmlfeeds'}</td>
<td>
<select name="attribute_map_id">
<option value="0">{l s='None' mod='xmlfeeds'}</option>
{foreach $attributeMapList as $c}
<option value="{$c.id|escape:'htmlall':'UTF-8'}" {if $s.attribute_map_id == $c.id}selected{/if}>{$c.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Feature map' mod='xmlfeeds'}</td>
<td>
<select name="feature_map_id">
<option value="0">{l s='None' mod='xmlfeeds'}</option>
{foreach $featureMapList as $c}
<option value="{$c.id|escape:'htmlall':'UTF-8'}" {if $s.feature_map_id == $c.id}selected{/if}>{$c.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Label when in stock' mod='xmlfeeds'}</td>
<td>
<input type="text" name="label_in_stock_text" value="{$s.label_in_stock_text|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[Replace default availability label when in stock]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Label when out of stock' mod='xmlfeeds'}</td>
<td>
<input type="text" name="label_out_of_stock_text" value="{$s.label_out_of_stock_text|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[Replace default availability label when out of stock (and back order allowed)]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Delivery time in-stock' mod='xmlfeeds'}</td>
<td>
<input type="text" name="in_stock_text" value="{$s.in_stock_text|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[Replace default delivery time of in-stock products]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Delivery time out-of-stock' mod='xmlfeeds'}</td>
<td>
<input type="text" name="out_of_stock_text" value="{$s.out_of_stock_text|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[Replace default delivery time of out-of-stock products with allowed backorders]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Delivery is not available' mod='xmlfeeds'}</td>
<td>
<input type="text" name="on_demand_stock_text" value="{$s.on_demand_stock_text|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[Default text if delivery is not possible]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Header rows' mod='xmlfeeds'}</td>
<td>
<textarea name="header_information" style="max-width: 470px; width: 100%; height: 60px;">{$s.header_information|escape:'htmlall':'UTF-8'}</textarea>
<div class="bl_comments">{l s='[Make sure that you have entered validate XML code]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Footer rows' mod='xmlfeeds'}</td>
<td>
<textarea name="footer_information" style="max-width: 470px; width: 100%; height: 60px;">{$s.footer_information|escape:'htmlall':'UTF-8'}</textarea>
<div class="bl_comments">{l s='[Make sure that you have entered validate XML code]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Extra feed rows' mod='xmlfeeds'}</td>
<td>
<textarea name="extra_feed_row" style="max-width: 470px; width: 100%; height: 60px;">{$s.extra_feed_row|escape:'htmlall':'UTF-8'}</textarea>
<div class="bl_comments">{l s='[Make sure that you have entered validate XML code]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Product category tree type' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="category_tree_type" value="0"{if empty($s.category_tree_type)} checked="checked"{/if}> {l s='All categories' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="category_tree_type" value="1"{if $s.category_tree_type eq 1} checked="checked"{/if}> {l s='According breadcrumbs' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Feed generation time' mod='xmlfeeds'}</td>
<td>
<label for="feed_generation_time" class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='feed_generation_time' name='feed_generation_time' status=$s.feed_generation_time}
</label>
<input style="width: 155px; margin-left: 14px;" type="text" name="feed_generation_time_name" value="{$s.feed_generation_time_name|escape:'htmlall':'UTF-8'}" placeholder="Field name" size="6">
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Maximum possible quantity' mod='xmlfeeds'}</td>
<td>
<label for="feed_generation_time" class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='max_quantity_status' name='max_quantity_status' status=$s.max_quantity_status}
</label>
<input style="width: 78px; margin-left: 14px;" type="text" name="max_quantity" value="{$s.max_quantity|escape:'htmlall':'UTF-8'}" size="6">
<div class="bl_comments">{l s='[If the quantity of the product is greater than, it will be replaced with the specified value]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Gender field by category' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("gender_field_category");
});
</script>
<label class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='gender_field_category_status' name='gender_field_category_status' status=$s.gender_field_category_status}
</label>
<span class="gender_field_category_button" style="cursor: pointer; color: #268CCD; margin-left: 10px; top: 5px; position: relative;">{l s='[Show/Hide categories]' mod='xmlfeeds'}</span>
<div class="gender_field_category" style="display: none; margin-top: 20px;">
<div class="blmod_mb10">
{l s='Field name' mod='xmlfeeds'} <input style="width: 155px; margin-left: 14px;" type="text" name="gender_field_category_name" value="{$s.gender_field_category_name|escape:'htmlall':'UTF-8'}" size="6">
</div>
<div>
{l s='Default value' mod='xmlfeeds'} <input style="width: 155px; margin-left: 14px;" type="text" name="gender_field_category_prime_value" value="{$s.gender_field_category_prime_value|escape:'htmlall':'UTF-8'}" size="6">
</div>
<div class="bl_comments blmod_mb25">{l s='[This value will be used if no gender is specified for the category]' mod='xmlfeeds'}</div>
{$categoriesTreeGender}
</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Empty product description' mod='xmlfeeds'}</td>
<td>
<div class="mb10">
<label>
<input type="radio" name="empty_description" value="0"{if $s.empty_description eq 0} checked="checked"{/if}> {l s='Leave empty' mod='xmlfeeds'}
</label>
<div class="blmod_cb"></div>
</div>
<div class="mb10">
<label>
<input type="radio" name="empty_description" value="1"{if $s.empty_description eq 1} checked="checked"{/if}> {l s='Replace empty description with the product name' mod='xmlfeeds'}
</label>
<div class="blmod_cb"></div>
</div>
<div>
<label>
<input type="radio" name="empty_description" value="2"{if $s.empty_description eq 2} checked="checked"{/if}>
<input style="width: 350px;" type="text" name="empty_description_text" value="{$s.empty_description_text|escape:'htmlall':'UTF-8'}" placeholder="{l s='Replace empty description with custom text' mod='xmlfeeds'}">
</label>
<div class="blmod_cb"></div>
</div>
</td>
</tr>
</table>

View File

@@ -0,0 +1,317 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr>
<td class="settings-column-name">{l s='Only enable' mod='xmlfeeds'}</td>
<td>
<label for="only_enabled">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_enabled' name='only_enabled' status=$s.only_enabled}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Only "available for order"' mod='xmlfeeds'}</td>
<td>
<label for="only_available_for_order">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_available_for_order' name='only_available_for_order' status=$s.only_available_for_order}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Only "on sale"' mod='xmlfeeds'}</td>
<td>
<label for="only_on_sale">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_on_sale' name='only_on_sale' status=$s.only_on_sale}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by price range' mod='xmlfeeds'}</td>
<td>
{l s='From' mod='xmlfeeds'} <input class="price_range_field" type="text" name="price_from" value="{$priceFrom|escape:'htmlall':'UTF-8'}">
{l s='To' mod='xmlfeeds'} <input class="price_range_field" type="text" name="price_to" value="{$priceTo|escape:'htmlall':'UTF-8'}">
<div class="bl_comments">{l s='[Specify price range will be active]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="filter-by-quantity">
<td class="settings-column-name">{l s='Include by quantity' mod='xmlfeeds'}</td>
<td>
<label for="filter_qty_status" style="position: relative; top: -6px;">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='filter_qty_status' name='filter_qty_status' status=$s.filter_qty_status}
</label>
<select name="filter_qty_type">
<option value=">"{if $s.filter_qty_type eq '>'} selected{/if}>></option>
<option value="<"{if $s.filter_qty_type eq '<'} selected{/if}><</option>
<option value="="{if $s.filter_qty_type eq '='} selected{/if}>=</option>
</select>
<input style="width: 65px;" class="filter_qty_value" type="text" name="filter_qty_value" placeholder="{l s='Value' mod='xmlfeeds'}" value="{$s.filter_qty_value|escape:'htmlall':'UTF-8'}">
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Exclude by minimum order quantity' mod='xmlfeeds'}</td>
<td>
{l s='From' mod='xmlfeeds'} <input class="price_range_field" type="text" name="exclude_minimum_order_qty_from" value="{$s.exclude_minimum_order_qty_from|escape:'htmlall':'UTF-8'}">
{l s='To' mod='xmlfeeds'} <input class="price_range_field" type="text" name="exclude_minimum_order_qty_to" value="{$s.exclude_minimum_order_qty_to|escape:'htmlall':'UTF-8'}">
<div class="bl_comments">{l s='[Values are included inclusive]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by visibility status' mod='xmlfeeds'}</td>
<td>
<select name="filter_visibility">
<option value=""{if empty($s.filter_visibility)} selected{/if}>{l s='All' mod='xmlfeeds'}</option>
<option value="both"{if $s.filter_visibility eq 'both'} selected{/if}>{l s='Everywhere' mod='xmlfeeds'}</option>
<option value="catalog"{if $s.filter_visibility eq 'catalog'} selected{/if}>{l s='Catalog only' mod='xmlfeeds'}</option>
<option value="search"{if $s.filter_visibility eq 'search'} selected{/if}>{l s='Search only' mod='xmlfeeds'}</option>
<option value="none"{if $s.filter_visibility eq 'none'} selected{/if}>{l s='Nowhere' mod='xmlfeeds'}</option>
</select>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Created for the last XX days' mod='xmlfeeds'}</td>
<td>
<input class="price_range_field" type="text" name="filter_created_before_days" value="{$s.filter_created_before_days|escape:'htmlall':'UTF-8'}" placeholder="{l s='Number of days' mod='xmlfeeds'}">
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by manufacturers' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function(){
boxToggle("manufacturers_list");
});
</script>
<label for="manufacturers_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='manufacturers_status' name='manufacturers' status=$s.manufacturer}
</label>
<span class="manufacturers_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide manufacturers]' mod='xmlfeeds'}</span>
<div class="manufacturers_list" style="display: none; margin-top:10px;">{$manufacturersList}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by suppliers' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("supplier_list");
});
</script>
<label for="supplier_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='supplier_status' name='suppliers' status=$s.supplier}
</label>
<span class="supplier_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide suppliers]' mod='xmlfeeds'}</span>
<div class="supplier_list" style="display: none; margin-top:10px;">{$supplierList}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by product lists' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("product_list");
});
</script>
<label for="product_list_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='product_list_status' name='product_list_status' status=$s.product_list_status}
</label>
<span class="product_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide product lists]' mod='xmlfeeds'}</span>
<div class="product_list" style="display: none; margin-top:10px;">
{$productListSettingsPage}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by categories' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("categories_list");
});
</script>
<label for="products_categories">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='products_categories' name='categories' status=$s.categories}
</label>
<span class="categories_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide categories]' mod='xmlfeeds'}</span>
<div class="categories_list" style="display: none; margin-top: 20px;">
<div>
<label class="blmod_mr20">
<input type="radio" name="filter_category_type" value="0" {if empty($s.filter_category_type)} checked="checked"{/if}> {l s='Filter by main category' mod='xmlfeeds'}
</label>
<label class="">
<input type="radio" name="filter_category_type" value="1" {if !empty($s.filter_category_type)} checked="checked"{/if}> {l s='Filter by all categories' mod='xmlfeeds'}
</label>
<div class="cb"></div>
</div>
{$categoriesTree}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Exclude by categories' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("categories_without_list");
});
</script>
<label for="products_categories_without">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='products_categories_without' name='categories_without' status=$s.categories_without}
</label>
<span class="categories_without_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide categories]' mod='xmlfeeds'}</span>
<div class="categories_without_list" style="display: none; margin-top: 20px;">
<div>
<label class="blmod_mr20">
<input type="radio" name="filter_category_without_type" value="0" {if empty($s.filter_category_without_type)} checked="checked"{/if}> {l s='Filter by main category' mod='xmlfeeds'}
</label>
<label class="">
<input type="radio" name="filter_category_without_type" value="1" {if !empty($s.filter_category_without_type)} checked="checked"{/if}> {l s='Filter by all categories' mod='xmlfeeds'}
</label>
<div class="cb"></div>
</div>
{$categoriesTreeL}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by attributes' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("only_with_attributes");
});
</script>
<label for="only_with_attributes">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_with_attributes' name='only_with_attributes_status' status=$s.only_with_attributes_status}
</label>
<span class="only_with_attributes_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide attributes]' mod='xmlfeeds'}</span>
<div class="only_with_attributes" style="display: none; margin-top: 20px;">
{$filterAttributes}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Exclude by attributes' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("only_without_attributes");
});
</script>
<label for="only_without_attributes">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_without_attributes' name='only_without_attributes_status' status=$s.only_without_attributes_status}
</label>
<span class="only_without_attributes_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide attributes]' mod='xmlfeeds'}</span>
<div class="only_without_attributes" style="display: none; margin-top: 20px;">
{$filterWithoutAttributes}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by features' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("only_with_features");
});
</script>
<label for="only_with_attributes">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_with_features' name='only_with_features_status' status=$s.only_with_features_status}
</label>
<span class="only_with_features_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide features]' mod='xmlfeeds'}</span>
<div class="only_with_features" style="display: none; margin-top: 20px;">
{foreach $featuresWithValues as $f}
<div class="blmod_mb10">
<div class="attribute-group-title">{$f.name|escape:'htmlall':'UTF-8'}</div>
{foreach $f.values as $v}
<label class="attribute-list">
<input {if $v.id_feature_value|in_array:$s.only_with_features}checked{/if} type="checkbox" name="only_with_features[]" value="{$v.id_feature_value|escape:'htmlall':'UTF-8'}"> {$v.value|escape:'htmlall':'UTF-8'}
</label>
{/foreach}
</div>
{/foreach}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Exclude by features' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("only_without_features");
});
</script>
<label for="only_without_features">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='only_without_features' name='only_without_features_status' status=$s.only_without_features_status}
</label>
<span class="only_without_features_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide features]' mod='xmlfeeds'}</span>
<div class="only_without_features" style="display: none; margin-top: 20px;">
{foreach $featuresWithValues as $f}
<div class="blmod_mb10">
<div class="attribute-group-title">{$f.name|escape:'htmlall':'UTF-8'}</div>
{foreach $f.values as $v}
<label class="attribute-list">
<input {if $v.id_feature_value|in_array:$s.only_without_features}checked{/if} type="checkbox" name="only_without_features[]" value="{$v.id_feature_value|escape:'htmlall':'UTF-8'}"> {$v.value|escape:'htmlall':'UTF-8'}
</label>
{/foreach}
</div>
{/foreach}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by discount status' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="filter_discount" value="0"{if $s.filter_discount eq 0} checked="checked"{/if}> {l s='All' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="filter_discount" value="1"{if $s.filter_discount eq 1} checked="checked"{/if}> {l s='With discount' mod='xmlfeeds'}
</label>
<label>
<input type="radio" name="filter_discount" value="2"{if $s.filter_discount eq 2} checked="checked"{/if}> {l s='Without discount' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Include by image status' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="filter_image" value="0"{if $s.filter_image eq 0} checked="checked"{/if}> {l s='All' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="filter_image" value="1"{if $s.filter_image eq 1} checked="checked"{/if}> {l s='With images' mod='xmlfeeds'}
</label>
<label>
<input type="radio" name="filter_image" value="2"{if $s.filter_image eq 2} checked="checked"{/if}> {l s='Without images' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Exclude by empty value' mod='xmlfeeds'}</td>
<td>
<label class="attribute-list">
<input type="checkbox" name="filter_exclude_empty_params[]" value="reference"{if 'reference'|in_array:$s.filter_exclude_empty_params} checked="checked"{/if}> Reference
</label>
<label class="attribute-list">
<input type="checkbox" name="filter_exclude_empty_params[]" value="ean13"{if 'ean13'|in_array:$s.filter_exclude_empty_params} checked="checked"{/if}> EAN-13
</label>
<label class="attribute-list">
<input type="checkbox" name="filter_exclude_empty_params[]" value="isbn"{if 'isbn'|in_array:$s.filter_exclude_empty_params} checked="checked"{/if}> ISBN
</label>
<label class="attribute-list">
<input type="checkbox" name="filter_exclude_empty_params[]" value="upc"{if 'upc'|in_array:$s.filter_exclude_empty_params} checked="checked"{/if}> UPC
</label>
</td>
</tr>
</table>

View File

@@ -0,0 +1,245 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr style="display: none;">
<td >Feed id:</td>
<td>
<input type="text" readonly="readonly" name="feed_id" value="{$page|escape:'htmlall':'UTF-8'}">
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Feed name' mod='xmlfeeds'}</td>
<td>
<input style="width: 310px;" type="text" name="name" value="{$s.name|escape:'htmlall':'UTF-8'}" required>
{if !empty($s.feed_mode)}<img class="feed_type_id" alt="Feed type" title="Feed type" src="../modules/{$name|escape:'htmlall':'UTF-8'}/views/img/type_{$s.feed_mode|escape:'htmlall':'UTF-8'}.png" />{/if}
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Feed status' mod='xmlfeeds'}</td>
<td>
<label for="xmf_feed_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='xmf_feed_status' name='status' status=$s.status}
</label>
</td>
</tr>
<tr class="only-product order-settings">
<td class="settings-column-name">{l s='Use cron' mod='xmlfeeds'}</td>
<td>
<label for="use_cron">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='use_cron' name='use_cron' status=$s.use_cron}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Split by combination' mod='xmlfeeds'}</td>
<td>
<label for="split_by_combination">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='split_by_combination' name='split_by_combination' status=$s.split_by_combination}
</label>
<div class="clear_block"></div>
<div class="bl_comments">{l s='[Display each combination as a separate product]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Split feed' mod='xmlfeeds'}</td>
<td>
<label for="split_feed" class="with-input"class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='split_feed' name='split_feed' status=$s.split_feed}
</label>
<input style="width: 130px; margin-left: 14px;" placeholder="{l s='Products per feed' mod='xmlfeeds'}" type="text" name="split_feed_limit" value="{if !empty($s.split_feed_limit)}{$s.split_feed_limit|escape:'htmlall':'UTF-8'}{/if}" size="6">
<div class="clear_block"></div>
<div class="bl_comments">{l s='[Divide feed into few according to the amount of products]' mod='xmlfeeds'}</div>
</td>
</tr>
{if empty($s.use_cron)}
<tr>
<td class="settings-column-name">{l s='Use cache' mod='xmlfeeds'}</td>
<td>
<label for="use_cache" class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='use_cache' name='use_cache' status=$s.use_cache}
</label>
<input style="width: 130px; margin-left: 14px;" placeholder="{l s='Period in minutes' mod='xmlfeeds'}" type="text" name="cache_time" value="{if !empty($s.cache_time)}{$s.cache_time|escape:'htmlall':'UTF-8'}{/if}" size="6">
{if $s.use_cache eq 1 && empty($s.cache_time)}
<div class="alert-small-blmod ">{l s='You need to enter cache period in minutes (e.g. 180)' mod='xmlfeeds'}</div>
{/if}
</td>
</tr>
{/if}
<tr class="only-product">
<td class="settings-column-name">{l s='Compressor (archive file)' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="compressor_type" value="0"{if empty($s.compressor_type)} checked="checked"{/if}> {l s='None' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="compressor_type" value="1"{if $s.compressor_type eq 1} checked="checked"{/if}> {l s='Zip' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="compressor_type" value="2"{if $s.compressor_type eq 2} checked="checked"{/if}> {l s='Gz' mod='xmlfeeds'}
</label>
<label>
<input type="radio" name="compressor_type" value="3"{if $s.compressor_type eq 3} checked="checked"{/if}> {l s='Gzip' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr class="only-product compressor-name-action"{if empty($s.compressor_type)} style="display: none;" {/if}>
<td class="settings-column-name">{l s='Compressed file name' mod='xmlfeeds'}</td>
<td>
<input placeholder="" type="text" name="zip_file_name" value="{if !empty($s.zip_file_name)}{$s.zip_file_name|escape:'htmlall':'UTF-8'}{/if}" size="6">
<div class="clear_block"></div>
<div class="bl_comments">{l s='[Enter file name without the extension]' mod='xmlfeeds'}</div>
{if !empty($s.compressor_type) && empty($s.zip_file_name)}
<div class="alert-small-blmod">{l s='File name cannot be empty' mod='xmlfeeds'}</div>
{/if}
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Protect by IP addresses' mod='xmlfeeds'}</td>
<td>
<input type="text" name="protect_by_ip" value="{$s.protect_by_ip|escape:'htmlall':'UTF-8'}" autocomplete="off">
<div class="bl_comments">{l s='[Use a comma to separate them (e.g. 11.10.1.1, 22.2.2.3)]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Protect with password' mod='xmlfeeds'}</td>
<td>
<label for="use_password" class="with-input">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='use_password' name='use_password' status=$s.use_password}
</label>
<input style="display: inline-block; width: 130px; margin-left: 14px;" placeholder="{l s='Password' mod='xmlfeeds'}" type="password" name="password" autocomplete="off" value="{if !empty($s.password)}{$s.password|escape:'htmlall':'UTF-8'}{/if}" size="6">
{if $s.use_password eq 1 && empty($s.password)}
<div class="alert-small-blmod">{l s='Password cannot be empty' mod='xmlfeeds'}</div>
{/if}
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Shipping countries' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function(){
boxToggle("countries_list");
});
</script>
<label for="shipping_countries_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='shipping_countries_status' name='shipping_countries_status' status=$s.shipping_countries_status}
</label>
<span class="countries_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide countries]' mod='xmlfeeds'}</span>
<div class="countries_list" style="display: none; margin-top:10px;">
<table cellspacing="0" cellpadding="0" class="table blmod-table-light" id="radio_div" style="margin-top: 0; margin-bottom: 0;">
<tr>
<th><br></th>
<th>{l s='Name' mod='xmlfeeds'}</th>
</tr>
{foreach $countries as $c}
{if $c.id_country|in_array:$s.shipping_countries}
<tr>
<td class="center">
<input type="checkbox" {if $c.id_country|in_array:$s.shipping_countries} checked{/if} id="country_{$c.id_country|escape:'htmlall':'UTF-8'}" name="shipping_countries[]" value="{$c.id_country|escape:'htmlall':'UTF-8'}" class="noborder">
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="country_{$c.id_country|escape:'htmlall':'UTF-8'}" class="t">
{$c.name|escape:'htmlall':'UTF-8'}
</label>
</td>
</tr>
{/if}
{/foreach}
{foreach $countries as $c}
{if !$c.id_country|in_array:$s.shipping_countries}
<tr>
<td class="center">
<input type="checkbox" {if $c.id_country|in_array:$s.shipping_countries} checked{/if} id="country_{$c.id_country|escape:'htmlall':'UTF-8'}" name="shipping_countries[]" value="{$c.id_country|escape:'htmlall':'UTF-8'}" class="noborder">
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="country_{$c.id_country|escape:'htmlall':'UTF-8'}" class="t">
{$c.name|escape:'htmlall':'UTF-8'}
</label>
</td>
</tr>
{/if}
{/foreach}
</table>
</div>
</td>
</tr>
{if $s.feed_mode == 'vi'}
<tr>
<td class="settings-column-name">{l s='Vivino, bottle size' mod='xmlfeeds'}</td>
<td>
<select name="vivino_bottle_size" style="width: 273px; display: inline-block;">
<option value="0">{l s='none' mod='xmlfeeds'}</option>
{foreach $productFeatures as $f}
<option value="{$f.id_feature|escape:'htmlall':'UTF-8'}"{if $s.vivino_bottle_size eq $f.id_feature} selected{/if}>{$f.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<input style="width: 75px; margin-top: -3px;" type="text" name="vivino_bottle_size_default" value="{$s.vivino_bottle_size_default|escape:'htmlall':'UTF-8'}" placeholder="{l s='Default size' mod='xmlfeeds'}" />
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Vivino, lot size' mod='xmlfeeds'}</td>
<td>
<select name="vivino_lot_size" style="width: 273px; display: inline-block;">
<option value="0">{l s='none' mod='xmlfeeds'}</option>
{foreach $productFeatures as $f}
<option value="{$f.id_feature|escape:'htmlall':'UTF-8'}"{if $s.vivino_lot_size eq $f.id_feature} selected{/if}>{$f.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<input style="width: 75px; margin-top: -3px;" type="text" name="vivino_lot_size_default" value="{$s.vivino_lot_size_default|escape:'htmlall':'UTF-8'}" placeholder="{l s='Default size' mod='xmlfeeds'}" />
</td>
</tr>
{/if}
{if $s.feed_mode == 'spa'}
<tr>
<td class="settings-column-name">{l s='Spartoo, size' mod='xmlfeeds'}</td>
<td>
<select name="spartoo_size">
<option value="0">{l s='none' mod='xmlfeeds'}</option>
{foreach $productAttributes as $f}
<option value="{$f.id_attribute_group|escape:'htmlall':'UTF-8'}"{if $s.spartoo_size eq $f.id_attribute_group} selected{/if}>{$f.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
{/if}
{if $s.feed_mode == 's' || $s.feed_mode == 'bp'}
<tr>
<td class="settings-column-name">{l s='Skroutz Analytics ID' mod='xmlfeeds'}</td>
<td>
<input type="text" name="skroutz_analytics_id" value="{$s.skroutz_analytics_id|escape:'htmlall':'UTF-8'}">
<div class="bl_comments">{l s='[If you want to use Skroutz Analytics, insert the shop account ID]' mod='xmlfeeds'}</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Variant size' mod='xmlfeeds'}</td>
<td>
<select name="skroutz_variant_size">
<option value="0">{l s='None' mod='xmlfeeds'}</option>
{foreach $groups as $g}
<option value="{$g.id_attribute_group|escape:'htmlall':'UTF-8'}"{if $g.id_attribute_group == $s.skroutz_variant_size} selected{/if}>{$g.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<div class="bl_comments">{l s='[If you want to use variants, you need to specify product size attribute]' mod='xmlfeeds'}</div>
</td>
</tr>
{/if}
{if $s.feed_mode == 'wor'}
<tr>
<td class="settings-column-name">{l s='Worten, ship from country' mod='xmlfeeds'}</td>
<td>
<input type="text" name="worten_ship_from_country" value="{$s.worten_ship_from_country|escape:'htmlall':'UTF-8'}" autocomplete="off">
<div class="bl_comments">{l s='[Example: FR|France]' mod='xmlfeeds'}</div>
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,24 @@
<?php
/**
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,71 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0" style="margin-top: -8px;">
<tr>
<td class="settings-column-name">{l s='Filter by status' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("order_state_list");
});
</script>
<label for="order_state_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='order_state_status' name='order_state_status' status=$s.order_state_status}
</label>
<span class="order_state_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide status]' mod='xmlfeeds'}</span>
<div class="order_state_list" style="display: none; margin-top:10px;">
{$orderStatusList}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Filter by payments' mod='xmlfeeds'}</td>
<td>
<script type="text/javascript">
$(document).ready(function() {
boxToggle("order_payment_list");
});
</script>
<label for="order_payments_status">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='order_payments_status' name='order_payments_status' status=$s.order_payments_status}
</label>
<span class="order_payment_list_button" style="cursor: pointer; color: #268CCD; margin-left: 10px;">{l s='[Show/Hide payments]' mod='xmlfeeds'}</span>
<div class="order_payment_list" style="display: none; margin-top:10px;">
{$orderPaymentsList}
</div>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Filter by date' mod='xmlfeeds'}</td>
<td>
<select name="filter_date_type">
{foreach $filterDateTypes as $id => $v}
<option value="{$id|escape:'htmlall':'UTF-8'}"{if $s.filter_date_type == $id} selected{/if}>{$v|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<div {if $s.filter_date_type != $FILTER_DATE_DATE_RANGE} style="display: none;" {/if}id="order-filter-date-range" class="blmod_mt10">
<label>
From <input style="width: 90px;" type="text" name="filter_date_from" id="filter-date-from" value="{if $s.filter_date_from}{$s.filter_date_from|escape:'htmlall':'UTF-8'}{/if}" class="datepicker-blmod">
</label>
<label class="blmod_ml15">
To <input style="width: 90px;" type="text" name="filter_date_to" id="filter-date-from-to" value="{if $s.filter_date_to}{$s.filter_date_to|escape:'htmlall':'UTF-8'}{/if}" class="datepicker-blmod">
</label>
</div>
<div class="blmod_cb"></div>
<div {if $s.filter_date_type != $FILTER_DATE_CUSTOM_DAYS} style="display: none;" {/if}id="order-filter-custom-days" class="blmod_mt10">
<input style="width: 50px;" type="text" name="filter_custom_days" value="{if $s.filter_custom_days}{$s.filter_custom_days|escape:'htmlall':'UTF-8'}{/if}"> {l s='days from today back' mod='xmlfeeds'}
</div>
</td>
</tr>
</table>

View File

@@ -0,0 +1,117 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr>
<td class="settings-column-name">{l s='Currency' mod='xmlfeeds'}</td>
<td>
<select name="currency_id">
<option value="">{l s='Default' mod='xmlfeeds'}</option>
{foreach $currencyList as $c}
<option value="{$c.id|escape:'htmlall':'UTF-8'}"{if $s.currency_id == $c.id} selected{/if}>{$c.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Price with currency' mod='xmlfeeds'}</td>
<td>
<label for="price_with_currency">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='price_with_currency' name='price_with_currency' status=$s.price_with_currency}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Unit price without unit' mod='xmlfeeds'}</td>
<td>
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='unit_price_without_unit' name='unit_price_without_unit' status=$s.unit_price_without_unit}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Price format' mod='xmlfeeds'}</td>
<td>
<select name="price_format_id">
<option value="0"{if empty($s.price_format_id)} selected{/if}>{l s='Default' mod='xmlfeeds'}</option>
{foreach $priceFromList as $pfId => $pf}
<option value="{$pfId|escape:'htmlall':'UTF-8'}"{if $s.price_format_id == $pfId} selected{/if}>{$pf|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Round mode' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="price_rounding_type" value="0"{if empty($s.price_rounding_type)} checked="checked"{/if}> {l s='Tool object' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="price_rounding_type" value="1"{if $s.price_rounding_type eq 1} checked="checked"{/if}> {l s='Product object' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Shipping price' mod='xmlfeeds'}</td>
<td>
<label class="blmod_mr20">
<input type="radio" name="shipping_price_mode" value="0"{if $s.shipping_price_mode eq 0} checked="checked"{/if}> {l s='Default carrier' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="shipping_price_mode" value="1"{if $s.shipping_price_mode eq 1} checked="checked"{/if}> {l s='According to the country' mod='xmlfeeds'}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Affilaite price' mod='xmlfeeds'}</td>
<td>
{if !empty($prices_affiliate)}
<table cellspacing="0" cellpadding="0" class="table blmod-table-light" id = "radio_div" style="margin-top: 0; margin-bottom: 0;">
<tr>
<th><br></th>
<th>{l s='Price name' mod='xmlfeeds'}</th>
<th>{l s='XML name' mod='xmlfeeds'}</th>
<th>{l s='Formula' mod='xmlfeeds'}</th>
</tr>
{foreach $prices_affiliate as $p}
<tr>
<td class="center">
<input type="checkbox" {if $p.affiliate_id|in_array:$s.affiliate} checked{/if} id="affiliate_blmod_{$p.affiliate_id|escape:'htmlall':'UTF-8'}" name="affiliate[]" value="{$p.affiliate_id|escape:'htmlall':'UTF-8'}" class="noborder">
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="affiliate_blmod_{$p.affiliate_id|escape:'htmlall':'UTF-8'}" class="t">
{$p.affiliate_name|escape:'htmlall':'UTF-8'}
</label>
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="affiliate_blmod_{$p.affiliate_id|escape:'htmlall':'UTF-8'}" class="t">
{$p.xml_name|escape:'htmlall':'UTF-8'}
</label>
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="affiliate_blmod_{$p.affiliate_id|escape:'htmlall':'UTF-8'}" class="t">
{$p.affiliate_formula|escape:'htmlall':'UTF-8'}
</label>
</td>
</tr>
{/foreach}
</table>
<div class="bl_comments" style="margin-top: 7px;">[{l s='Another option: add &affiliate=name at the and of the feed URL' mod='xmlfeeds'}]</div>
{else}
<div class="bl_comments">
{l s='There is no affiliate price.' mod='xmlfeeds'}<br>{l s='Please use the "' mod='xmlfeeds'}<a class="link-highlighted" target="_blank" href="{$fullAdminUrl|escape:'htmlall':'UTF-8'}&add_affiliate_price=1">Affiliate price</a>{l s='" feature if you need to create it.' mod='xmlfeeds'}
</div>
{/if}
</td>
</tr>
</table>

View File

@@ -0,0 +1,93 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<div class="title-editor-type">
<div class="title-editor-type-name">{l s='Replace elements' mod='xmlfeeds'}</div>
<div style="display: none" id="title-replace-new-row">
<div class="cn_line" data-id="__NEW_ROW__">
{l s='Find what' mod='xmlfeeds'} <input style="width: 200px; margin-right: 16px;" type="text" name="title_replace_key[__NEW_ROW__]"> {l s='replace with' mod='xmlfeeds'} <input style="width: 200px;" type="text" name="title_replace_value[__NEW_ROW__]">
</div>
</div>
<div id="title-replace-box">
{foreach $productTitleEditorValues.key as $k => $keyValue}
<div class="cn_line" data-id="{$k|escape:'htmlall':'UTF-8'}">
{l s='Find what' mod='xmlfeeds'} <input style="width: 200px; margin-right: 16px;" type="text" name="title_replace_key[{$k|escape:'htmlall':'UTF-8'}]" value="{$keyValue|escape:'htmlall':'UTF-8'}"> {l s='replace with' mod='xmlfeeds'} <input style="width: 200px;" type="text" name="title_replace_value[{$k|escape:'htmlall':'UTF-8'}]" value="{$productTitleEditorValues.value[$k]|escape:'htmlall':'UTF-8'}">
</div>
{/foreach}
</div>
<div style="float: right; margin-right: 3px;" id="add-title-replace-row" class="blmod_button_small">
{l s='Add more' mod='xmlfeeds'}
</div>
<div style="float: left;" class="bl_comments">
{l s='[Rows with empty "Find what" will be removed]' mod='xmlfeeds'}
</div>
<div class="cb"></div>
</div>
<div class="title-editor-type">
<div class="title-editor-type-name">{l s='Add elements' mod='xmlfeeds'}</div>
<div>
{foreach $productTitleEditorElementsList as $k => $n}
<label class="attribute-list">
<input type="checkbox" name="title_editor_add_elements[]" value="{$k|escape:'htmlall':'UTF-8'}"{if $k|in_array:$productTitleEditorNewElements.elements} checked{/if}> {$n|escape:'htmlall':'UTF-8'}
</label>
{/foreach}
</div>
</div>
<div class="title-editor-type">
<div class="title-editor-type-name">{l s='Add attributes' mod='xmlfeeds'}</div>
<div>
<div class="mb10">
<label class="attribute-list">
<input type="checkbox" name="title_editor_options[]" value="attribute_name"{if attribute_name|in_array:$productTitleEditorNewElements.options} checked{/if}> {l s='Attributes with name' mod='xmlfeeds'}
</label>
</div>
<div class="mb10">
<label class="attribute-list">
<input id="title_editor_all_attributes" type="checkbox" name="title_editor_add_elements[]" value="1"{if 1|in_array:$productTitleEditorNewElements.elements} checked{/if}> {l s='All attributes' mod='xmlfeeds'}
</label>
</div>
{foreach $attributesGroups as $a}
<label class="attribute-list">
<input type="checkbox" class="title_editor_attributes" name="title_editor_add_attributes[]" value="{$a.id_attribute_group|escape:'htmlall':'UTF-8'}"{if $a.id_attribute_group|in_array:$productTitleEditorNewElements.attributes OR 1|in_array:$productTitleEditorNewElements.elements} checked{/if}{if 1|in_array:$productTitleEditorNewElements.elements} readonly="readonly" disabled="disabled"{/if}> {$a.name|escape:'htmlall':'UTF-8'}
</label>
{/foreach}
</div>
</div>
<div class="title-editor-type">
<div class="title-editor-type-name">{l s='Title transform' mod='xmlfeeds'}</div>
<div class="mb10">
<label class="blmod_mr20">
<input type="radio" name="title_transform" value="0"{if empty($s.title_transform)} checked="checked"{/if}> {l s='None' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="title_transform" value="1"{if $s.title_transform eq 1} checked="checked"{/if}> {l s='First character uppercase' mod='xmlfeeds'}
</label>
<label class="blmod_mr20">
<input type="radio" name="title_transform" value="2"{if $s.title_transform eq 2} checked="checked"{/if}> {l s='Uppercase all' mod='xmlfeeds'}
</label>
<label>
<input type="radio" name="title_transform" value="3"{if $s.title_transform eq 3} checked="checked"{/if}> {l s='Lowercase all' mod='xmlfeeds'}
</label>
</div>
<div class="cb"></div>
</div>
<div class="title-editor-type">
<div class="title-editor-type-name">{l s='Title max length' mod='xmlfeeds'}</div>
<div class="mb10">
<input style="width: 150px;" type="text" name="title_length" value="{$s.title_length|escape:'htmlall':'UTF-8'}">
<div class="bl_comments">
{l s='[Leave empty if you do not want to restrict length]' mod='xmlfeeds'}
</div>
</div>
<div class="cb"></div>
</div>

View File

@@ -0,0 +1,118 @@
{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<table border="0" width="100%" cellpadding="3" cellspacing="0">
<tr class="only-product only-category">
<td class="settings-column-name">{l s='XML in one branch' mod='xmlfeeds'}</td>
<td>
<label for="one_branch">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='one_branch' name='one_branch' status=$s.one_branch}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Encoding' mod='xmlfeeds'}</td>
<td>
<input type="text" name="encoding_text" value="{$s.encoding_text|escape:'htmlall':'UTF-8'}" placeholder="Default: UTF-8">
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='All images' mod='xmlfeeds'}</td>
<td>
<label for="all_images">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='all_images' name='all_images' status=$s.all_images}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Last-Modified header' mod='xmlfeeds'}</td>
<td>
<label for="last_modified_header">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='last_modified_header' name='last_modified_header' status=$s.last_modified_header}
</label>
</td>
</tr>
<tr>
<td class="settings-column-name">{l s='Each item on a new line' mod='xmlfeeds'}</td>
<td>
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='item_starts_on_a_new_line' name='item_starts_on_a_new_line' status=$s.item_starts_on_a_new_line}
</label>
</td>
</tr>
<tr class="only-product">
<td class="settings-column-name">{l s='Add attribute ID to item ID' mod='xmlfeeds'}</td>
<td>
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='attribute_id_as_combination_id' name='attribute_id_as_combination_id' status=$s.attribute_id_as_combination_id}
</label>
<div class="cb"></div>
<div class="bl_comments">{l s='[Use product attribute ID as a combination ID]' mod='xmlfeeds'}</div>
</td>
</tr>
{if !empty($groups)}
<tr id="merge-attributes-by-group-box" class="only-product{if !empty($s['merge_attributes_by_group'])} box-toggle-active{/if}">
<td class="settings-column-name">{l s='Merge attributes by group' mod='xmlfeeds'}</td>
<td>
<label for="merge_attributes_by_group">
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id='merge_attributes_by_group' name='merge_attributes_by_group' status=$s.merge_attributes_by_group}
</label>
<div class="cb"></div>
<div id="merge-attributes-by-group-select"{if empty($s.merge_attributes_by_group)} style="display: none;"{/if}>
<div class="blmod_mt10">
<select name="merge_attributes_parent">
<option value="0">{l s='None' mod='xmlfeeds'}</option>
{foreach $groups as $g}
<option value="{$g.id_attribute_group|escape:'htmlall':'UTF-8'}"{if $g.id_attribute_group == $s.merge_attributes_parent} selected{/if}>{$g.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</div>
</div>
<div class="bl_comments">{l s='[Especially useful for Skroutz/Bestprice colors and sizes]' mod='xmlfeeds'}</div>
</td>
</tr>
{/if}
<tr class="only-product">
<td class="settings-column-name">{l s='Add XML tag by product list' mod='xmlfeeds'}</td>
<td>
{if !empty($productListWithXmlTags)}
<table cellspacing="0" cellpadding="0" class="table blmod-table-light" id = "radio_div" style="margin-top: 0; margin-bottom: 0;">
<tr>
<th style="text-align: center; width: 40px;">
<input type="checkbox" name="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'product_list_xml_tag[]', this.checked)">
</th>
<th>
{l s='Name' mod='xmlfeeds'}
</th>
</tr>
{foreach $productListWithXmlTags as $p}
<tr>
<td class="center">
<input type="checkbox" {if $p.id|in_array:$s.product_list_xml_tag} checked{/if} id="product_list_xml_tag_{$p.id|escape:'htmlall':'UTF-8'}" name="product_list_xml_tag[]" value="{$p.id|escape:'htmlall':'UTF-8'}" class="noborder">
</td>
<td>
<label style="line-height: 26px; padding-left: 0;" for="product_list_xml_tag_{$p.id|escape:'htmlall':'UTF-8'}" class="t">
{$p.name|escape:'htmlall':'UTF-8'}
</label>
</td>
</tr>
{/foreach}
</table>
{else}
<div class="bl_comments">
{l s='There is no product list with XML tags.' mod='xmlfeeds'}<br>{l s='You need to use the "' mod='xmlfeeds'}<a class="link-highlighted" target="_blank" href="{$fullAdminUrl|escape:'htmlall':'UTF-8'}&product_list_page=1">Product list</a>{l s='" feature if you need to create it.' mod='xmlfeeds'}
</div>
{/if}
</td>
</tr>
</table>