在Magento获取结账步骤

时间:2015-10-09 09:26:54

标签: php magento

我需要根据结账步骤给div一定的高度。这就是我所拥有的:

<ol class="opc" id="checkoutSteps">

<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>

<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>

    <li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
        <div class="step-title">
            <span class="number"><?php echo $i ?></span>
            <h2><?php echo $_stepInfo['label'] ?></h2>
            <a href="#"><?php echo $this->__('Edit') ?></a>
        </div>

以下是我尝试做的事情:

<ol class="opc" id="checkoutSteps-<?php echo $_stepId ?>">

<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>

<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>

    <li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
        <div class="step-title">
            <span class="number"><?php echo $i ?></span>
            <h2><?php echo $_stepInfo['label'] ?></h2>
            <a href="#"><?php echo $this->__('Edit') ?></a>
        </div>

它不起作用。我该怎么称呼它?谢谢

0 个答案:

没有答案