Август 3

Добавление товару поля WebAsyst Shop-Script

 

в БД выполняем запрос

ALTER TABLE `SC_products` ADD `actio` INT( 11 ) NOT NULL DEFAULT ‘0’

/published/SC/html/scripts/modules/products/_methods/b_product_settings.php

Добавляем строку

$product[‘actio’] = 0;

после строки

$product[‘ordering_available’] = 1;

 

и строку

$productEntry->actio = $this->getData(‘actio’);

после строки

$productEntry->ordering_available = $this->getData(‘ordering_available’);

в файле

/published/SC/html/scripts/classes/class.product.php

после строки

var $ordering_available;

добавте

var $actio;

 

в файле

/published/SC/html/scripts/templates/backend/product_settings.html

после строк

<td>{lbl_prdset_str_ordering_available}: </td>
<td><input type=»checkbox» name=»ordering_available» value=»1″ {if $product.ordering_available}checked{/if} /></td>
</tr>

добавляем блок
<tr>
<td>Акционный товар: </td>
<td><input type=»checkbox» name=»actio» value=»1″ {if $product.actio}checked{/if} /></td>
</tr>

ну и иногда чистим кеш. 😉