15 <?php
if (
$block->isShow()): ?>
16 <div
class=
"field field-store-switcher">
17 <label
class=
"label" for=
"store_switcher"><?=
__(
'Show Report For:') ?></label>
21 class=
"admin__control-select" 23 onchange=
"return switchStore(this);">
24 <option
value=
""><?=
__(
'All Websites') ?></option>
25 <?php
foreach (
$block->getWebsiteCollection() as $_website): ?>
27 <?php
foreach (
$block->getGroupCollection($_website) as $_group): ?>
28 <?php $showGroup =
false; ?>
29 <?php
foreach (
$block->getStoreCollection($_group) as $_store): ?>
32 <option website=
"true" value=
"<?= /* @escapeNotVerified */ $_website->getId() ?>"<?php
if (
$block->getRequest()->getParam(
'website') == $_website->getId()): ?> selected<?php endif; ?>>
33 <?= $_website->getName() ?>
36 <?php
if ($showGroup ==
false): ?>
37 <?php $showGroup =
true; ?>
38 <option group=
"true" value=
"<?= /* @escapeNotVerified */ $_group->getId() ?>"<?php
if (
$block->getRequest()->getParam(
'group') == $_group->getId()): ?> selected<?php endif; ?>>&
nbsp;&
nbsp;&
nbsp;<?= $_group->getName() ?></option>
40 <option
value=
"<?= /* @escapeNotVerified */ $_store->getId() ?>"<?php
if (
$block->getStoreId() == $_store->getId()): ?> selected<?php endif; ?>>&
nbsp;&
nbsp;&
nbsp;&
nbsp;&
nbsp;&
nbsp;<?= $_store->getName() ?></option>
46 <?=
$block->getHintHtml() ?>
49 require([
'prototype'],
function(){
51 switchStore =
function(obj){
52 if (obj.options[obj.selectedIndex].getAttribute(
'website') ==
'true') {
53 var selectionType =
'website';
54 }
else if (obj.options[obj.selectedIndex].getAttribute(
'group') ==
'true') {
55 var selectionType =
'group';
57 var selectionType =
'store';
59 var storeParam = obj.value ? selectionType +
'/' + obj.value +
'/' :
'';
61 storeParam+= obj.switchParams;
63 setLocation(
'<?= /* @escapeNotVerified */ $block->getSwitchUrl() ?>'+storeParam);
if( $websites=$block->getWebsites())(__( 'Choose Store View:')) ?></label >< div class $showWebsite
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
foreach($block->getWebsiteCollection() as $_website) foreach($block->getGroupCollection($_website) as $_group) foreach( $block->getStoreCollection( $_group) as $_store)($showWebsite==false) if($block->getRequest() ->getParam('website')==$_website->getId()) endif
if($block->getStoreId()==$_store->getId()) endforeach