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 -->