News:

Looking for documentation? Take a look on our wiki

Main Menu

How to remove SKU and PRICE REDUCTION from cart view?

Started by freeme, March 19, 2012, 13:12:30 PM

Previous topic - Next topic

freeme

Hi,
I want to remove the view of the SKU and price reduction from my cart, as the layout is too much squeezed.

Is there any way to configure this in VM2, or is this only possible by changing something in the files? If yes, what and in which file?

Thx.

osp

Make your own template.
Look @development portal for details & guide.

mortensamon@gmail.com

i have the same challange

i can't find this guide you are talking about


Da_Hobit

het overzicht bij 'toon winkelwagen' aanpassen :
------------------------------------------------
- 'kolom SKU' verwijderen ( klant heeft er toch geen behoefte aan )
- 'Kolom Naam' uitbreiden met het originele 'Kolom SKU' -> dan kan er een langere productomschrijving in zonder de layout te verneuken 

oplossing ?
file default_pricelist.php aanpassen

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


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

regel 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>



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

regel 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>


it's for my dutch site... don't have the time to translate the few words ... but i think you get the picture



[attachment cleanup by admin]

jelly

Hi Da_Hobit,

Thank you very much for your clear input!

As the other person in this thread I am looking for deleting the column price reduction too, I was surprised this was not just a matter of putting on or off a field/check in VM-backend...!

I also want to reduce the space of the field of Aantal/Aanpassen, which will save some space in the cart overview too! When 2 or 3 characters fit in this field, it will be 'roomy' enough. May be useful for you too?

Will these changes be effective in the email the customer gets too?
I ask this because I resent the right-alignment of the shipping and payment info, I want to have it left aligned.

But I am very gratefull for your input, I think it showed me in the right direction to make some changes!

Groetjes,
Jelly