Skip to content

Commit b1a7419

Browse files
committed
Merge pull request #3 in PLUG_OPEN/swagshippingrestriction from ianeosolutions-patch-1 to master
* commit '66acaa9eaddf81f27eab8c7bf52c3637b5802365': insert block
2 parents f0f4ef0 + 66acaa9 commit b1a7419

File tree

1 file changed

+15
-13
lines changed
  • Resources/views/frontend/plugins/swag_shipping_restriction

1 file changed

+15
-13
lines changed
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
{if $notAvailableCountries}
2-
<div class="address-editor--errors">
3-
{s name="CountryNotAvailableEditor" namespace="frontend/address/index" assign="sCountryNotAvailable"}{/s}
4-
{s name="CountryNotAvailableEditorInfo" namespace="frontend/address/index" assign="sCountryNotAvailableInfo"}{/s}
1+
{block name="shipping_restriction_not_available_countries"}
2+
{if $notAvailableCountries}
3+
<div class="address-editor--errors">
4+
{s name="CountryNotAvailableEditor" namespace="frontend/address/index" assign="sCountryNotAvailable"}{/s}
5+
{s name="CountryNotAvailableEditorInfo" namespace="frontend/address/index" assign="sCountryNotAvailableInfo"}{/s}
56

6-
{$restrictionCountries = []}
7+
{$restrictionCountries = []}
78

8-
{foreach from=$notAvailableCountries item=country}
9-
{$restrictionCountries[] = '<li>'|cat:$country:'</li>'}
10-
{/foreach}
9+
{foreach from=$notAvailableCountries item=country}
10+
{$restrictionCountries[] = '<li>'|cat:$country:'</li>'}
11+
{/foreach}
1112

12-
{$restrictionCountries = ""|implode:$restrictionCountries}
13-
{$sCountryNotAvailable = $sCountryNotAvailable|replace:'%s':$restrictionCountries}
13+
{$restrictionCountries = ""|implode:$restrictionCountries}
14+
{$sCountryNotAvailable = $sCountryNotAvailable|replace:'%s':$restrictionCountries}
1415

1516

16-
{include file="frontend/_includes/messages.tpl" type="warning" content=$sCountryNotAvailable|cat:$sCountryNotAvailableInfo}
17-
</div>
18-
{/if}
17+
{include file="frontend/_includes/messages.tpl" type="warning" content=$sCountryNotAvailable|cat:$sCountryNotAvailableInfo}
18+
</div>
19+
{/if}
20+
{/block}

0 commit comments

Comments
 (0)