Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/classes/XLite/View/Model/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ protected function getFormFieldsForSectionDefault()
if ($this->getModelObject()->getId()) {
$this->schemaDefault['type'][self::SCHEMA_COMMENT] = 'Before editing attriubutes specific for the chosen type you should save the changes';

if ($this->getModelObject()->getAttributeValuesCount()) {
$this->schemaDefault['type'][self::SCHEMA_COMMENT] .= '<br />There are products using this attribute!';
if (
$this->getModelObject()->getAttributeValuesCount()
|| $this->getModelObject()->getProductClass()->getProductsCount()
) {
$this->schemaDefault['type'][self::SCHEMA_COMMENT] .= '<br /><br />Changing the type of a product attribute after having defined values for this attribute for some products will result in losing the defined attribute values';
}

if (
Expand Down
3 changes: 2 additions & 1 deletion src/skins/admin/en/attributes/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ div.group table.list th.actions.left {
}

.ajax-container-loadable .select-attributetypes div.table-value .form-field-comment {
background: url("../images/icon_warning_round.png") no-repeat scroll 0px center transparent;
background: url("../images/icon_warning_round.png") no-repeat scroll 0 0 transparent;
padding-left: 30px;
color: #456583;
float: left;
Expand Down Expand Up @@ -273,6 +273,7 @@ div.group table.list th.actions.left {
text-align: center;
width: 440px;
margin-top: 10px;
padding: 0 30px;
}

.ajax-container-loadable .model-form-buttons {
Expand Down