【发布时间】:2017-01-13 10:43:51
【问题描述】:
$_product = $this->getProduct();
$_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
?>
<?php if ($_product->isSaleable() && count($_attributes)):?>
<dl>
<?php foreach($_attributes as $_attribute): ?>
<dt><label class="required"><em>*</em><?php echo Mage::helper('catalog')->__($_attribute->getLabel()) ?></label></dt>
<dd <?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
<div class="input-box">
<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
<option><?php echo $this->__('Choose an Option...') ?></option>
</select>
</div>
</dd>
<?php endforeach; ?>
</dl>
<script type="text/javascript">
var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>, <?php echo $this->getProductsStockStatus()?>);
var ProChildData = <?php echo $this->getProductsStockStatus()?>;
</script>
这是一个模板的代码,当没有通过外部js选择图像时应用隐藏。 我想检查它,然后想在禁用元素中添加不透明度,直到未启用选择选项。 非常感谢。请随时为开发人员提供建议。每条建议对我来说都很有价值。
【问题讨论】:
标签: javascript jquery html css magento-1.9