VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: becq on March 21, 2012, 02:56:10 AM

Title: Hide SKU, VAT, Rebate in Cart
Post by: becq on March 21, 2012, 02:56:10 AM
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

(http://www.yagendoo.com/en/joomla/support/forum/attachment/286/post/3830/format/file.html)

So what do I have to do to achive a cart looking like
(http://www.yagendoo.com/en/joomla/support/forum/attachment/285/post/3830/format/file.html)

Every hint highly appreciated!
Title: Re: Hide SKU, VAT, Rebate in Cart
Post by: Da_Hobit on March 21, 2012, 16:17:59 PM
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>