Skip to content

Commit

Permalink
2.1.0.2 - Fixed more template loading errors (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 26, 2019
1 parent cb5a8d3 commit 389bf26
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-v2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for Craft Commerce 2.x

## 2.1.0.2 - 2019-02-25

### Fixed
- Fixed more template loading errors on Commerce settings pages. ([#751](https://github.com/craftcms/commerce/issues/751))

## 2.1.0.1 - 2019-02-25

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "craftcms/commerce",
"description": "Craft Commerce",
"type": "craft-plugin",
"version": "2.1.0.1",
"version": "2.1.0.2",
"keywords": [
"cms",
"craftcms",
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function getIsEditable(): bool
*/
public function getCpEditUrl(): string
{
return UrlHelper::cpUrl('commerce/settings/donation');
return UrlHelper::cpUrl('commerce/store-settings/donation');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function rules()
*/
public function getCpEditUrl(): string
{
return UrlHelper::cpUrl('commerce/settings/states/' . $this->id);
return UrlHelper::cpUrl('commerce/store-settings/states/' . $this->id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/TaxAddressZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TaxAddressZone extends Model implements AddressZoneInterface
*/
public function getCpEditUrl(): string
{
return UrlHelper::cpUrl('commerce/settings/taxzones/' . $this->id);
return UrlHelper::cpUrl('commerce/tax/taxzones/' . $this->id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/TaxCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getTaxRates(): array
*/
public function getCpEditUrl(): string
{
return UrlHelper::cpUrl('commerce/settings/taxcategories/' . $this->id);
return UrlHelper::cpUrl('commerce/tax/taxcategories/' . $this->id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/TaxRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function rules()
*/
public function getCpEditUrl(): string
{
return UrlHelper::cpUrl('commerce/settings/taxrates/' . $this->id);
return UrlHelper::cpUrl('commerce/tax/taxrates/' . $this->id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_layouts/shipping.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<li class="heading"><span>{{ item.heading }}</span></li>
{% else %}
<li>
<a href="{{ url('commerce/settings/'~handle) }}"{% if handle == selectedItem %} class="sel"{% endif %}>{{ item.title }}</a>
<a href="{{ url('commerce/shipping/'~handle) }}"{% if handle == selectedItem %} class="sel"{% endif %}>{{ item.title }}</a>
</li>
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_layouts/tax.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<li class="heading"><span>{{ item.heading }}</span></li>
{% else %}
<li>
<a href="{{ url('commerce/settings/'~handle) }}"{% if handle == selectedItem %} class="sel"{% endif %}>{{ item.title }}</a>
<a href="{{ url('commerce/tax/'~handle) }}"{% if handle == selectedItem %} class="sel"{% endif %}>{{ item.title }}</a>
</li>
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endif %}

{% if currentUser.can('commerce-manageTaxes') %}
{% redirect 'commerce/settings/taxrates' %}
{% redirect 'commerce/tax/taxrates' %}
{% endif %}

{% extends "403" %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/store-settings/countries/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set crumbs = [
{ label: "Commerce Settings"|t('commerce'), url: url('commerce/settings') },
{ label: "Countries"|t('commerce'), url: url('commerce/settings/countries') },
{ label: "Countries"|t('commerce'), url: url('commerce/store-settings/countries') },
] %}

{% set fullPageForm = true %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/store-settings/countries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>{{ "Countries"|t('commerce') }}</h2>
{% endif %}

<div class="buttons">
<a href="{{ url('commerce/settings/countries/new') }}"
<a href="{{ url('commerce/store-settings/countries/new') }}"
class="btn submit add icon">{{ 'New country'|t('commerce') }}</a>
</div>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/store-settings/paymentcurrencies/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set crumbs = [
{ label: "Commerce Settings"|t('commerce'), url: url('commerce/settings') },
{ label: "Currencies"|t('commerce'), url: url('commerce/settings/paymentcurrencies') },
{ label: "Currencies"|t('commerce'), url: url('commerce/store-settings/paymentcurrencies') },
] %}

{% set fullPageForm = true %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/store-settings/states/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set crumbs = [
{ label: "Commerce Settings"|t('commerce'), url: url('commerce/settings') },
{ label: "States"|t('commerce'), url: url('commerce/settings/states') },
{ label: "States"|t('commerce'), url: url('commerce/store-settings/states') },
] %}

{% set fullPageForm = true %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/store-settings/states/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>{{ "States"|t('commerce') }}</h2>
{% endif %}

<div class="buttons">
<a href="{{ url('commerce/settings/states/new') }}"
<a href="{{ url('commerce/store-settings/states/new') }}"
class="btn submit add icon">{{ 'New state'|t('commerce') }}</a>
</div>
{% endblock %}
Expand Down

0 comments on commit 389bf26

Please sign in to comment.