first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,190 @@
{*
* 2013-2016 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2013-2016 Patryk Marek PrestaDev.pl
* @version Release: 2.1.2
*}
<!-- PD Google Merchant Center Pro -->
<fieldset id="ModulepdgooglemerchantcenterproProductTab">
<h4>{l s='Product options' mod='pdgooglemerchantcenterpro'}</h4>
<div class="separation"></div>
<input type="hidden" name="submitted_conf[]" value="ModulePdPriceComparePro" />
<label>
{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
<input type="radio" name="in_google_shopping" id="in_google_shopping_on" value="1" {if $product->in_google_shopping}checked="checked" {/if} />
<label for="in_google_shopping_on" class="t">
{l s='Yes' mod='pdgooglemerchantcenterpro'}
</label>
<input type="radio" name="in_google_shopping" id="in_google_shopping_off" value="0" {if !$product->in_google_shopping}checked="checked"{/if} />
<label for="in_google_shopping_off" class="t">
{l s='No' mod='pdgooglemerchantcenterpro'}
</label>
<p class="preference_description">
{l s='Include this product in Google Shopping feed' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label>
{l s='Alternate product name' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/textarea_lang.tpl"
languages=$languages
input_name='product_name_google_shopping'
class="product_name_google_shopping"
maxchar=128
input_value=$product->product_name_google_shopping}
<p class="preference_description">
{l s='Alternate product name if provided normal product name will be replaced with this one' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="product_name_google_shopping_copy_from">
{l s='Copy alternate product name' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
<select name="product_name_google_shopping_copy_from" id="product_name_google_shopping_copy_from">
<option value="0">{l s='Product meta title' mod='pdgooglemerchantcenterpro'}</option>
<option value="1">{l s='Product name' mod='pdgooglemerchantcenterpro'}</option>
<option value="2">{l s='Empty field' mod='pdgooglemerchantcenterpro'}</option>
</select>
</div>
<p class="preference_description">
{l s='Copy alternate product name from meta title or product name, when selected above field will be updated automatically' mod='pdgooglemerchantcenterpro'}
</p>
<div class="clear"></div>
<label>
{l s='Alternate product description' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/textarea_lang.tpl"
languages=$languages
class="product_short_desc_google_shopping"
input_name='product_short_desc_google_shopping'
input_value=$product->product_short_desc_google_shopping}
<p class="preference_description">
{l s='Alternate product description if provided normal product short description will be replaced with this one' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="product_short_description_google_shopping_copy_from">
{l s='Copy alternate product description' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
<select name="product_short_description_google_shopping_copy_from" id="product_short_description_google_shopping_copy_from">
<option value="0">{l s='Meta description' mod='pdgooglemerchantcenterpro'}</option>
<option value="1">{l s='Product short description' mod='pdgooglemerchantcenterpro'}</option>
<option value="2">{l s='Empty field' mod='pdgooglemerchantcenterpro'}</option>
</select>
</div>
<p class="preference_description">
{l s='Copy alternate product description from meta dsecription or product short description, when selected above field will be updated automatically' mod='pdgooglemerchantcenterpro'}
</p>
<div class="clear"></div>
<label for="custom_label_0">
{l s='Custom label 0' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_0'
maxchar=100
input_value=$product->custom_label_0}
<p class="preference_description">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="custom_label_1">
{l s='Custom label 1' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_1'
maxchar=100
input_value=$product->custom_label_1}
<p class="preference_description">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="custom_label_2">
{l s='Custom label 2' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_2'
maxchar=100
input_value=$product->custom_label_2}
<p class="preference_description">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="custom_label_3">
{l s='Custom label 3' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_3'
maxchar=100
input_value=$product->custom_label_3}
<p class="preference_description">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
<label for="custom_label_4">
{l s='Custom label 4' mod='pdgooglemerchantcenterpro'}
</label>
<div class="margin-form">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_4'
maxchar=100
input_value=$product->custom_label_4}
<p class="preference_description">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</p>
</div>
<div class="clear"></div>
</fieldset>
<!-- PD Google Merchant Center Pro -->

View File

@@ -0,0 +1,293 @@
{*
* 2013-2016 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2013-2016 Patryk Marek PrestaDev.pl
* @version Release: 2.1.2
*}
<script type="text/javascript">
{literal}
$(document).ready(function(){
$('select#product_name_google_shopping_copy_from').on('change', function() {
change_name_lang_values_per_selection(parseInt($(this).val()));
});
function change_name_lang_values_per_selection(option_selected) {
if (option_selected == 1) {
$.each(product_meta_title, function(key, value) {
$('textarea#product_name_google_shopping_'+key).val(convertHtmlToText(value));
});
} else if (option_selected == 2) {
$.each(product_name, function(key, value) {
$('textarea#product_name_google_shopping_'+key).val(convertHtmlToText(value));
});
} else if (option_selected == 3) {
$.each(product_name, function(key, value) {
$('textarea#product_name_google_shopping_'+key).val('');
});
}
}
$('select#product_short_description_google_shopping_copy_from').on('change', function() {
change_desc_lang_values_per_selection(parseInt($(this).val()));
});
function change_desc_lang_values_per_selection(option_selected) {
if (option_selected == 1) {
$.each(product_meta_dcescription, function(key, value) {
$('textarea#product_short_desc_google_shopping_'+key).val(convertHtmlToText(value));
});
} else if (option_selected == 2) {
$.each(product_description_short, function(key, value) {
$('textarea#product_short_desc_google_shopping_'+key).val(convertHtmlToText(value));
});
} else if (option_selected == 3) {
$.each(product_name, function(key, value) {
$('textarea#product_short_desc_google_shopping_'+key).val('');
});
}
}
});
{/literal}
</script>
<!-- PD Google Merchant Center Pro -->
<div id="ModulepdgooglemerchantcenterproProductTab" class="panel product-tab">
<h3>{l s='Product options' mod='pdgooglemerchantcenterpro'}</h3>
<div class="form-group">
<input type="hidden" name="submitted_conf[]" value="Modulepdgooglemerchantcenterpro" />
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="in_google_shopping" type="radio" onclick=""}</span></div>
<label class="control-label col-lg-2">
{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="in_google_shopping" id="in_google_shopping_on" value="1" {if $product->in_google_shopping}checked="checked" {/if} />
<label for="in_google_shopping_on" class="radioCheck">
{l s='Yes' mod='pdgooglemerchantcenterpro'}
</label>
<input type="radio" name="in_google_shopping" id="in_google_shopping_off" value="0" {if !$product->in_google_shopping}checked="checked"{/if} />
<label for="in_google_shopping_off" class="radioCheck">
{l s='No' mod='pdgooglemerchantcenterpro'}
</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Include this product in Google Shopping feed' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="product_name_google_shopping">
{l s='Alternate product name' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/textarea_lang.tpl"
languages=$languages
input_name='product_name_google_shopping'
class="product_name_google_shopping"
maxchar=128
input_value=$product->product_name_google_shopping}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Alternate product name if provided normal product name will be replaced with this one' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">
</span></div>
<label class="control-label col-lg-2" for="product_name_google_shopping_copy_from">
{l s='Copy alternate product name' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-3">
<select name="product_name_google_shopping_copy_from" id="product_name_google_shopping_copy_from">
<option value="0">{l s='-- please select --' mod='pdgooglemerchantcenterpro'}</option>
<option value="1">{l s='Product meta title' mod='pdgooglemerchantcenterpro'}</option>
<option value="2">{l s='Product name' mod='pdgooglemerchantcenterpro'}</option>
<option value="3">{l s='Empty field' mod='pdgooglemerchantcenterpro'}</option>
</select>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Copy alternate product name from meta title or product name, when selected above field will be updated automatically' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="product_short_desc_google_shopping">
{l s='Alternate product description' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/textarea_lang.tpl"
languages=$languages
maxchar=5000
class="product_short_desc_google_shopping"
input_name='product_short_desc_google_shopping'
input_value=$product->product_short_desc_google_shopping}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Alternate product description if provided normal product short description will be replaced with this one' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">
</span></div>
<label class="control-label col-lg-2" for="product_short_description_google_shopping_copy_from">
{l s='Copy alternate product description' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-3">
<select name="product_short_description_google_shopping_copy_from" id="product_short_description_google_shopping_copy_from">
<option value="0">{l s='-- please select --' mod='pdgooglemerchantcenterpro'}</option>
<option value="1">{l s='Meta description' mod='pdgooglemerchantcenterpro'}</option>
<option value="2">{l s='Product short description' mod='pdgooglemerchantcenterpro'}</option>
<option value="3">{l s='Empty field' mod='pdgooglemerchantcenterpro'}</option>
</select>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Copy alternate product description from meta dsecription or product short description, when selected above field will be updated automatically' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="custom_label_0">
{l s='Custom label 0' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_0'
maxchar=100
input_value=$product->custom_label_0}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="custom_label_1">
{l s='Custom label 1' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_1'
maxchar=100
input_value=$product->custom_label_1}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="custom_label_2">
{l s='Custom label 2' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_2'
maxchar=100
input_value=$product->custom_label_2}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="custom_label_3">
{l s='Custom label 3' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_3'
maxchar=100
input_value=$product->custom_label_3}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="custom_label_4">
{l s='Custom label 4' mod='pdgooglemerchantcenterpro'}
</label>
<div class="col-lg-9">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
input_name='custom_label_4'
maxchar=100
input_value=$product->custom_label_4}
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}
</div>
</div>
</div>
<div class="panel-footer">
<a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel' mod='pdgooglemerchantcenterpro'}</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save' mod='pdgooglemerchantcenterpro'}</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save and stay' mod='pdgooglemerchantcenterpro'}</button>
</div>
</div>
<script type="text/javascript">
if (tabs_manager.allow_hide_other_languages) {
hideOtherLanguage({$default_form_language|escape:'htmlall':'UTF-8'});
}
</script>
<!-- PD Google Merchant Center Pro -->

View File

@@ -0,0 +1,168 @@
{*
* 2013-2016 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2013-2016 Patryk Marek PrestaDev.pl
* @version Release: 2.1.2
*}
<!-- PD Google Merchant Center Pro -->
<div id="ModulepdgooglemerchantcenterproProductTab" class="panel product-tab">
<h3>{l s='Product options' mod='pdgooglemerchantcenterpro'}</h3>
<input type="hidden" name="submitted_conf[]" value="Modulepdgooglemerchantcenterpro" />
<br>
<div class="form-group col-lg-12">
<label class="form-control-label">
{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="row">
<div class="radio_block">
<div class="input-group col-lg-12">
<div class="radio">
<label class="">
<input type="radio" name="in_google_shopping" id="in_price_compare_on" value="1" {if $product->in_google_shopping}checked="checked" {/if} />
{l s='Yes' mod='pdgooglemerchantcenterpro'}
</label>
</div>
<div class="radio">
<label class="">
<input type="radio" name="in_google_shopping" id="in_price_compare_off" value="0" {if !$product->in_google_shopping}checked="checked" {/if} />
{l s='No' mod='pdgooglemerchantcenterpro'}
</label>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="product_name_google_shopping">
{l s='Alternate product name' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Alternate product name if provided normal product name will be replaced with this one' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='product_name_google_shopping'
class="product_name_google_shopping"
input_value=$product->product_name_google_shopping}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="product_short_desc_google_shopping">
{l s='Alternate product description' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Alternate product description if provided normal product short description will be replaced with this one' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='product_short_desc_google_shopping'
class="product_short_desc_google_shopping"
input_value=$product->product_short_desc_google_shopping}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="custom_label_0">
{l s='Custom label 0' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='custom_label_0'
input_value=$product->custom_label_0}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="custom_label_1">
{l s='Custom label 1' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='custom_label_1'
input_value=$product->custom_label_1}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="custom_label_2">
{l s='Custom label 2' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='custom_label_2'
input_value=$product->custom_label_2}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="custom_label_3">
{l s='Custom label 3' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='custom_label_3'
input_value=$product->custom_label_3}
</div>
</div>
<div class="form-group">
<label class="form-control-label" for="custom_label_4">
{l s='Custom label 4' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="col-lg-9">
{include file="./input_text_lang.tpl"
languages=$languages
input_name='custom_label_4'
input_value=$product->custom_label_4}
</div>
</div>
</div>
<!-- PD Google Merchant Center Pro -->

View File

@@ -0,0 +1,238 @@
{*
* 2013-2016 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2013-2016 Patryk Marek PrestaDev.pl
* @version Release: 2.1.2
*}
<!-- PD Google Merchant Center Pro -->
<div id="ModulepdgooglemerchantcenterproProductTab" class="panel product-tab">
<div class="panel-heading tab">
<i class="icon-link"></i> <h2>{l s='Product options' mod='pdgooglemerchantcenterpro'}</h2>
</div>
<div class="clearfix container-fluid">
<input type="hidden" name="submitted_conf[]" value="Modulepdgooglemerchantcenterpro" />
<div class="form-group col-lg-12">
<label class="form-control-label">
{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='In Google Shopping' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="row">
<div class="radio_block">
<div class="col-lg-12">
<div class="widget-radio-inline">
<div class="radio">
<label class="">
<input type="radio" name="in_google_shopping" id="in_price_compare_on" value="1" {if $product->in_google_shopping}checked="checked" {/if} />
{l s='Yes' mod='pdgooglemerchantcenterpro'}
</label>
</div>
</div>
<div class="widget-radio-inline">
<div class="radio">
<label class="">
<input type="radio" name="in_google_shopping" id="in_price_compare_off" value="0" {if !$product->in_google_shopping}checked="checked"{/if} />
{l s='No' mod='pdgooglemerchantcenterpro'}
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Alternate product name' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Alternate product name if provided normal product name will be replaced with this one' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-product_name_google_shopping{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<input
type="text"
name="product_name_google_shopping_{$language.id_lang}"
class="form-control"
value="{$product->product_name_google_shopping[$language.id_lang]}">
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Alternate product short description' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Alternate product short description if provided normal product short description will be replaced with this one' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-product_short_desc_google_shopping{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="product_short_desc_google_shopping_{$language.id_lang}"
class="form-control"
>{$product->product_short_desc_google_shopping[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Custom label 0' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-custom_label_0{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="custom_label_0_{$language.id_lang}"
class="form-control"
>{$product->custom_label_0[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Custom label 1' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-custom_label_1{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="custom_label_1_{$language.id_lang}"
class="form-control"
>{$product->custom_label_1[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Custom label 2' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-custom_label_2{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="custom_label_2_{$language.id_lang}"
class="form-control"
>{$product->custom_label_2[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Custom label 3' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-custom_label_3{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="custom_label_3_{$language.id_lang}"
class="form-control"
>{$product->custom_label_3[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
<fieldset class="form-group">
<label class="form-control-label">
{l s='Custom label 4' mod='pdgooglemerchantcenterpro'}
<span class="help-box" data-toggle="popover" data-content="{l s='Can contain additional information about the item' mod='pdgooglemerchantcenterpro'}"></span>
</label>
<div class="translations tabbable">
<div class="translationsFields tab-content ">
{foreach from=$languages item=language}
{if $language.active}
<div data-locale="{$language.iso_code}" class="translationsFields-custom_label_4{$language.id_lang} tab-pane{if $id_language == $language.id_lang} show active{/if} translation-field translation-label-{$language.iso_code}">
<textarea
type="text"
name="custom_label_4_{$language.id_lang}"
class="form-control"
>{$product->custom_label_4[$language.id_lang]}</textarea>
</div>
{/if}
{/foreach}
</div>
</div>
</fieldset>
</div>
</div>
<!-- PD Google Merchant Center Pro -->

View File

@@ -0,0 +1,28 @@
<?php
/**
* 2012-2015 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2015 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
* @version 2.2.0
* @date 04-03-2016
*/
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,65 @@
{*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field row lang-{$language.id_lang}">
<div class="col-lg-9">
{/if}
{if isset($maxchar)}
<div class="input-group">
<span id="{$input_name}_{$language.id_lang}_counter" class="input-group-addon">
<span class="text-count-down">{$maxchar}</span>
</span>
{/if}
<input type="text"
id="{$input_name}_{$language.id_lang}"
class="form-control {if isset($input_class)}{$input_class} {/if}"
name="{$input_name}_{$language.id_lang}"
value="{$input_value[$language.id_lang]|htmlentitiesUTF8|default:''}"
{if isset($required)} required="required"{/if}
{if isset($maxchar)} data-maxchar="{$maxchar}"{/if}
{if isset($maxlength)} maxlength="{$maxlength}"{/if} />
{if isset($maxchar)}
</div>
{/if}
{if $languages|count > 1}
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=language}
<li>
<a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage({$language.id_lang});">{$language.name}</a>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
{/foreach}

View File

@@ -0,0 +1,59 @@
{*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field row lang-{$language.id_lang}">
<div class="col-lg-9">
{/if}
{if isset($maxchar) && $maxchar}
<div class="input-group">
<span id="{if isset($input_id)}{$input_id}_{$language.id_lang}{else}{$input_name}_{$language.id_lang}{/if}_counter" class="input-group-addon">
<span class="text-count-down">{$maxchar|intval}</span>
</span>
{/if}
<textarea id="{$input_name}_{$language.id_lang}" name="{$input_name}_{$language.id_lang}" class="{if isset($class)}{$class}{else}textarea-autosize{/if}"{if isset($maxlength) && $maxlength} maxlength="{$maxlength|intval}"{/if}{if isset($maxchar) && $maxchar} data-maxchar="{$maxchar|intval}"{/if}>{if isset($input_value[$language.id_lang])}{$input_value[$language.id_lang]|htmlentitiesUTF8}{/if}</textarea>
<span class="counter" data-max="{if isset($max)}{$max|intval}{/if}{if isset($maxlength)}{$maxlength|intval}{/if}{if !isset($max) && !isset($maxlength)}none{/if}"></span>
{if isset($maxchar) && $maxchar}
</div>
{/if}
{if $languages|count > 1}
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=language}
<li><a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage({$language.id_lang});">{$language.name}</a></li>
{/foreach}
</ul>
</div>
</div>
{/if}
{/foreach}