File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
Resources/views/frontend/plugins/swag_shipping_restriction Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments