【发布时间】:2016-11-09 19:35:24
【问题描述】:
<?php
/**
* @var Multisite_Block_Region $this
* @var Mage_Core_Model_Website $website
*/
$websites = $this->getWebsites();
?>
<div class="select">
<span><?php echo Mage::getStoreConfig('general/store_information/store_label'); ?></span>
<ul>
<?php foreach ($websites as $website): ?>
<?php
$defaultStore = $website->getDefaultStore();
$code = Mage::getStoreConfig(Local_RegionRedirect_Helper_Data::XPATH_SYSTEM_CONFIG_COUNTRY, $defaultStore);
?>
<li>
<a href="<?php echo $this->getUrl('regionredirect/index/set', array('_query' => array('code' => $code))) ?>">
<?php echo $website->getDefaultStore()->getConfig('general/store_information/store_label'); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
This is the only select box I want to target:
<div class="region">
<div class="select">
<ul style="visibility: hidden; opacity: 0;">
<li>
<a href="http://local/regionredirect/index/set/?code=AU">
Australia (AUD $) </a>
</li>
<li>
<a href="http://local/regionredirect/index/set/?code=CA">
Canada (CA $) </a>
</li>
<li>
<a href="http://local/regionredirect/index/set/?code=ML">
Europe (€) </a>
</li>
<li>
<a href="http://local/regionredirect/index/set/?code=US">
USA ($) </a>
</li>
<li>
<a href="http://local/regionredirect/index/set/?code=JP">
Japan (¥) </a>
</li>
<li class="last">
<a href="http://local/regionredirect/index/set/?code=GB">
UK (£) </a>
</li>
</ul>
</div>
</div>
任何帮助将不胜感激。我尝试更改类名,但它中断了...我还尝试将其删除并专门将其放在跨度中以尝试仅定位页脚位置。都没有奏效。
标题坏了:
页脚很好:
我不希望对页脚进行任何更改,但您也可以看到它影响页眉选择的位置,因为 USA 被复制了。不需要那个。
【问题讨论】:
-
定位两个选择输入是什么意思?您要在哪里定位页脚中的那个?在 CSS 中?
-
我会添加一些图片来帮助理解上下文。
-
css 会影响页面上的两个选择,但我只希望它影响页脚选择。 @lucasnadalutti
-
好的,现在我明白了。相应地回答。