Monami presta
Skočit na navigaci
Skočit na vyhledávání
Databaze
ALTER TABLE `ps_product`
ADD `author` varchar(255) COLLATE 'utf8_czech_ci' NOT NULL DEFAULT '',
ADD `import_id` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `author`,
ADD `publisher` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `import_id`,
ADD `pages` int(11) unsigned NOT NULL AFTER `publisher`,
ADD `binding` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `pages`,
ADD `published` datetime NOT NULL AFTER `binding`,
ADD `image_link` varchar(4096) COLLATE 'utf8_czech_ci' NULL AFTER `published`;
ALTER TABLE `ps_product_shop`
ADD `author` varchar(255) COLLATE 'utf8_czech_ci' NOT NULL DEFAULT '',
ADD `import_id` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `author`,
ADD `publisher` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `import_id`,
ADD `pages` int(11) unsigned NOT NULL AFTER `publisher`,
ADD `binding` varchar(255) COLLATE 'utf8_czech_ci' NULL AFTER `pages`,
ADD `published` datetime NOT NULL AFTER `binding`,
ADD `image_link` varchar(4096) COLLATE 'utf8_czech_ci' NULL AFTER `published`;
CREATE
OR REPLACE VIEW `w_sale_price` AS
SELECT `ps_specific_price`.`id_product` AS `id_product`
,`ps_specific_price`.`reduction` AS `reduction`
FROM `ps_specific_price`
WHERE (`ps_specific_price`.`id_specific_price_rule` = 0)
Kod
/classes/Product.php around line 222
/*** @var string Author */
public $author;
/*** @var string Import ID */
public $import_id;
/*** @var string Publisher */
public $publisher;
/*** @var int Number of pages */
public $pages;
/*** @var string Binding type */
public $binding;
/*** @var string Date published */
public $published;
/*** @var string Image link */
public $image_link;
/classes/Product.php around line 338
'author' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
'import_id' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
'publisher' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
'pages' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedInt'),
'binding' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
'published' => array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
'image_link' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
/themes/default-bootstrap/product.tpl around line 151 after display all images
<!--Waritko-->
<ul id="usefull_link_block" class="clearfix no-print">
{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
<li class="print" style="margin-top: 1.2em;">
<a href="javascript:print();">
{l s='Print'}
</a>
</li>
</ul>
<!--Waritko-->
After Product name
<!-- Waritko -->
<h5 itemprop="author">Autor: <b>{$product->author|escape:'html':'UTF-8'}</b></h5>
<h5 itemprop="ean13" style="font-size: 0.8em;">EAN: {$product->ean13|escape:'html':'UTF-8'}</h5>
<h5 itemprop="publisher">Nakladatel: {$product->publisher|escape:'html':'UTF-8'}</h5>
<h5 itemprop="binding">Vazba: {$product->binding|escape:'html':'UTF-8'}</h5>
<h5 itemprop="pages">Pocet stran: {$product->pages|escape:'html':'UTF-8'}</h5>
<h5>Rozmery: {$product->height|escape:'html':'UTF-8'}x{$product->width|escape:'html':'UTF-8'}</h5>
<h5 itemprop="published">Datum vydani: {dateFormat date=$product->published full=false}</h5>
<!-- /Waritko -->
/admin/themes/default/template/controllers/products/informations.tpl
<!-- Waritko -->
<div class="form-group">
<label class="control-label col-lg-3" for="author">
<span class="label-tooltip" data-toggle="author"
title="{l s='Author'} {l s='Allowed special characters:'} .-_#\">
{$bullet_common_field} {l s='Author'}
</span>
</label>
<div class="col-lg-5">
<input type="text" id="author" name="author" value="{$product->author|htmlentitiesUTF8}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="import_id">
<span class="label-tooltip" data-toggle="import_id"
title="{l s='Import ID'}\">
{$bullet_common_field} {l s='Import ID'}
</span>
</label>
<div class="col-lg-5">
<input type="text" id="import_id" name="import_id" value="{$product->import_id|htmlentitiesUTF8}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="publisher">
<span class="label-tooltip" data-toggle="publisher"
title="{l s='Nakladatel'}\">
{$bullet_common_field} {l s='Nakladatel'}
</span>
</label>
<div class="col-lg-5">
<input type="text" id="publisher" name="publisher" value="{$product->publisher|htmlentitiesUTF8}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="pages">
<span class="label-tooltip" data-toggle="pages"
title="{l s='Pocet stran'}\">
{$bullet_common_field} {l s='Pocet stran'}
</span>
</label>
<div class="col-lg-5">
<input type="text" id="pages" name="pages" value="{$product->pages}" />
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="published" type="default"}</span></div>
<label class="control-label col-lg-2" for="published">
{l s='Datum vydani:'}
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-md">
<input id="published" name="published" value="{$product->published}" class="datepicker" type="text" />
<div class="input-group-addon">
<i class="icon-calendar-empty"></i>
</div>
</div>
<p class="help-block">{l s='Datum vydani'}</p>
</div>
</div>
<!-- /Waritko -->
e 151/themes/default-bootstrap/modules/blockviewed/blockviewed.tpl line 49
<!-- Waritko -->
<!-- {$viewedProduct|@print_r} -->
<!-- /Waritko -->
/themes/default-bootstrap/product-list.tpl line 122
<!-- Waritko -->
{if isset($product.author)}<h4 itemprop="author">{$product.author|escape:'html':'UTF-8'}</h4>{/if}
<!-- /Waritko -->
/themes/default-bootstrap/products-comparison.tpl line 75
<!-- Waritko -->
<h5 itemprop="author">{$product->author|escape:'html':'UTF-8'}</h5>
<!-- /Waritko -->