购物车中的Opencart删除选项价格

时间:2014-07-15 17:35:39

标签: php opencart option

我需要删除购物车中的期权价格。也许有人有想法?我正在尝试,但没有任何改变...我尝试更改cart.php(控制器)和cart.tpl(主题文件),也许不在这里? 购物车中的示例:

选项:期权标题(+120 EUR)
我需要删除(+120欧元)

cart.tpl

      <table>
        <thead>
          <tr>
            <td class="name" colspan="2"><?php echo $column_name; ?></td>
            <td class="quantity"><?php echo $column_quantity; ?></td>
            <td class="price"><?php echo $column_price; ?></td>
            <td class="total"><?php echo $column_total; ?></td>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($products as $product) { ?>
          <tr>
            <td class="image"><?php if ($product['thumb']) { ?>
            <div class="thumb-image">
              <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
            </div>
            <?php } ?></td>
            <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
              <?php if (!$product['stock']) { ?>
              <span class="stock">***</span>
              <?php } ?>
<?php // THE OPTIONS PART ?>
              <div class="cart-attr">
                Prekės kodas: <?php echo $product['model']; ?>
                <?php foreach ($product['option'] as $option) { ?><br />
                <?php echo $option['name']; ?>: <?php echo $option['value']; ?><br />
                <?php } ?>
              </div>
<?php // THE OPTIONS PART END ?>
              <?php if ($product['reward']) { ?>
              <div class="reward"><small><?php echo $product['reward']; ?></small></div>
              <?php } ?>
              </td>
            <td class="quantity">
                <input type="text" name="quantity[<?php echo $product['key']; ?>]" value="<?php echo $product['quantity']; ?>" size="1" /><br />
                <a onclick="$.attr('value', '<?php echo $product['quantity']; ?>'); $('#cart-form').submit();" title="<?php echo $button_update; ?>" class="button-color" ?><?php echo $button_update; ?></a><br />
                <a href="<?php echo $product['remove']; ?>"><?php echo $button_remove; ?></a></td>
            <td class="price"><?php echo $product['price']; ?></td>
            <td class="total"><?php echo $product['total']; ?></td>
          </tr>
          <?php } ?>
        </tbody>
      </table>
    </div>
  </form>

0 个答案:

没有答案