News:

Support the VirtueMart project and become a member

Main Menu

Hide SKU, VAT, Rebate in Cart

Started by becq, March 21, 2012, 02:56:10 AM

Previous topic - Next topic

becq

Dear all,

I am sure that the answer is out there but I did search through everything on this forum and beyond and couldnt find how to do so. I think I understood that it is related to the core, not the theme (yes I am using a theme) as said in this forum from the theme dev http://www.yagendoo.com/en/joomla/support/forum/yag-lightroom-vmt/different-in-vm2.html



So what do I have to do to achive a cart looking like


Every hint highly appreciated!

Da_Hobit

I have deleted the SKU in the cart and made the name field wider ( in fact merged the colums Name & SKU for width )

yo need to change this in 'default_pricelist.php'

online path:
------------
/modules/mod_virtuemart_cart/tmpl/default_pricelist.php

original code :
----------------
rule 106: <th align="left"><?php echo JText::_('COM_VIRTUEMART_CART_NAME') ?></th>
rule 107: <th align="left"><?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?></th>

rule 129 tem 140:
<td align="left" >
               <?php if ( $prow->virtuemart_media_id) {  ?>
                  <span class="cart-images">
                   <?php
                   if(!empty($prow->image)) echo $prow->image->displayMediaThumb('',false);
                   ?>
                  </span>
               <?php } ?>
               <?php echo JHTML::link($prow->url, $prow->product_name).$prow->customfields; ?>

            </td>
            <td align="left" ><?php  echo $prow->product_sku ?></td>


edited code :
----------------
rule 106: <th colspan="2" align="left"><?php echo JText::_('COM_VIRTUEMART_CART_NAME') ?></th>

rule 129 tem 137:
<td align="left" >
               <?php if ( $prow->virtuemart_media_id) {  ?>
                  <span class="cart-images">
                   <?php
                   if(!empty($prow->image)) echo $prow->image->displayMediaThumb('',false);
                   ?>
                  </span>
               <?php } ?>
            <?php echo JHTML::link($prow->url, $prow->product_name).$prow->customfields; ?></td>