VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mona14 on February 09, 2013, 03:21:40 AM

Title: How to style the static cart on each page?
Post by: mona14 on February 09, 2013, 03:21:40 AM
Hi there,
New to VM, and am integrating into a Joomla site.  I would really like to make the cart that appears on each page look something like this:



Using VM2 and Joomla 2.5.6.

Development site is here: http://www.yourbusybee.com/rmsbeta

Basically, the idea is to keep the cart from changing in height as items are added. I'd like to keep the site decently tight from top-to-bottom.

What do I need to do in order to set the cart up like this, and is there a way to do it in such a way that I'm not changing core files that are likely to get changed when an upgrade comes out?

Thanks in advance.

**SPAM links alert**s (http://www.galatourist.com)-Mekong delta tours (http://www.waytomekong.com)-Dragon pearl junk (http://www.dragonpearlhalong.com)
Title: Re: How to style the static cart on each page?
Post by: jenkinhill on February 09, 2013, 12:59:04 PM
The minicart layout is defined by the template  joomla_root/modules/mod_virtuemart_cart/tmpl/default.php

You can make a copy of that file and edit it edit to suit your requirememnts, then use it as an override so it does not get overwritten during upgrades. See http://www.ostraining.com/blog/joomla/overrides  and  http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

Any css changes you make should be added to your Joomla template css file, or you can make an additional style sheet and make a link to it in your Joomla template index.php