Skip to content

Commit

Permalink
Merge pull request #2 from koala-framework/fix-shop-errors
Browse files Browse the repository at this point in the history
Fix shop errors
  • Loading branch information
lllHuber committed Feb 13, 2018
2 parents 160aab1 + 27c42e1 commit 766eb05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="{{ rootElementClass }}">
{% if not items|empty %}
{% if items %}
<span class="{{ 'title'|bemClass }}">
{{ data.trlKwf('You ordered the following product', 'You ordered the following products', items|length) }}
</span>
Expand Down Expand Up @@ -28,7 +28,7 @@
</li>
{% endif %}
</ul>
{% elseif %}
{% else %}
<span>{{ data.trlKwf('Productlist') }}</span>
{% endif %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ public static function getSettings($param = null)

public function getNameForEdit()
{
return trlKwf('Shop Confirmation Text') . ' (' .$this->getData()->getSubroot()->id . ') '
. Kwf_Trl::getInstance()->trlStaticExecute(Kwc_Abstract::getSetting($this->getData()->parent->componentClass, 'componentName'));
$ret = trlKwf('Shop Confirmation Text');
$subroot = $this->getData()->getSubroot();
if ($subroot && isset($subroot->id)) $ret .= ' (' .$this->getData()->getSubroot()->id . ')';
$ret .= ' ' . Kwf_Trl::getInstance()->trlStaticExecute(Kwc_Abstract::getSetting($this->getData()->parent->componentClass, 'componentName'));
return $ret;
}

protected function _getOrder()
Expand Down

0 comments on commit 766eb05

Please sign in to comment.