Magento Forum

   
Tekstkleur veranderen of deel verwijderen. 
 
SB84
Jr. Member
 
Total Posts:  9
Joined:  2010-05-18
 

Hallo,

In mijn webwinkel worden prijzen uit een tabel gehaald. Zo kan men maten opgeven in centimeters waarna de bijhorende prijs uit een tabel wordt gehaald (naar boven afgeronden tientallen). Als men een bestelling doorgeeft komen echter de afgeronde maten uit de maattabel naar voren. Zie plaatje.

Nu wil ik niet dat klanten zien dat de prijs uit een tabel gehaald wordt. Ik wil dus de tekstkleur gelijk maken aan de achtergrondkleur. Kan iemand me vertellen hoe en waar ik dat doe? Hoe kan ik het block verwijderen met css of uit je phtml halen.

Als ik phtml open zie ik staan:

<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design_default
* @package Mage
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<?php
/**
* Shopping cart template
*
* @see Mage_Checkout_Block_Cart
*/
?>
<div class="page-head-alt button-level">
<h3><?php echo $this->__('Shopping Cart') ?></h3>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php echo $this->getChildHtml('top_methods') ?>
</ul>
<?php endif; ?>
</div>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>” method="post">
<table cellspacing="0" border="0" id="shopping-cart-table" class="data-table box-table shopping-cart">
<col width="40" />
<col width="75" />
<col />
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
<col width="1" />
<?php endif ?>
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
<col width="80" />
<?php endif; ?>
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
<col width="80" />
<?php endif; ?>
<col width="1" />
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
<col width="80" />
<?php endif; ?>
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
<col width="80" />
<?php endif; ?>

<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
<thead>
<tr>
<th rowspan="<?php echo $mergedCells; ?>” class="a-center"><?php echo $this->__('Remove') ?></th>
<th rowspan="<?php echo $mergedCells; ?>"> </th>
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
<th rowspan="<?php echo $mergedCells; ?>” class="a-center"><?php echo $this->__('Move to Wishlist') ?></th>
<?php endif ?>
<th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Unit Price') ?></th>
<th rowspan="<?php echo $mergedCells; ?>” class="a-center"><?php echo $this->__('Qty') ?></th>
<th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Subtotal') ?></th>
</tr>
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
<tr>
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
</tr>
<?php endif; ?>
</thead>
<tfoot>
<tr>
<td colspan="100" class="a-right">
<?php if($this->getContinueShoppingUrl()): ?>
<button class="form-button-alt continue-shopping” onclick="setLocation(’<?php echo $this->getContinueShoppingUrl() ?>’)” type="button"><span><?php echo $this->__('Continue Shopping') ?></span></button>
<?php endif; ?>
<button class="form-button-alt" type="submit"><span><?php echo $this->__('Update Shopping Cart') ?></span></button>
</td>
</tr>
</tfoot>
<tbody>
<?php foreach($this->getItems() as $_item): ?>
<?php echo $this->getItemHtml($_item) ?>
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable(’shopping-cart-table’)</script>
</form>

<div class="shopping-cart-collaterals">
<div class="col2-set">
<?php echo $this->getChildHtml('crosssell') ?>
<div class="col-2">
<?php echo $this->getChildHtml('coupon') ?>
<?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
</div>
</div>
</div>

<div class="shopping-cart-totals">
<?php echo $this->getChildHtml('totals'); ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php echo $this->getChildHtml('methods') ?>
</ul>
<?php endif; ?>
</div>
<div class="clear"></div>

Wat verander ik dan?

Bedankt!

Image Attachments
maattabel.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top