VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Freedom28 on April 17, 2012, 17:29:18 PM

Title: Shopping cart question!
Post by: Freedom28 on April 17, 2012, 17:29:18 PM
Hello, my name is Lefteris and first of all i want to say many congratulations for your work about virtuemart!

I'm confused about of the way of seem the shopping cart! Can you tell me how it must looks the shopping cart of virtuemart 2

Please see the two attachment pictures

thanks!

[attachment cleanup by admin]
Title: Re: Shopping cart question!
Post by: jenkinhill on April 17, 2012, 21:01:25 PM
It can look however you want it as you can edit templates and styles. For an example look at this VM2 site - http://extensions.virtuemart.net/
Title: Re: Shopping cart question!
Post by: Freedom28 on April 19, 2012, 10:05:02 AM
Yes, i can edit templates and styles! Can you tell me were i can find the style of virtumart 2 and add it, like the attachment picture " cart 1.png "?
Title: Re: Shopping cart question!
Post by: balai on April 19, 2012, 11:08:32 AM
Look here:
components\com_virtuemart\views\cart\tmpl\default_pricelist.php
Title: Re: Shopping cart question!
Post by: Thomas Kuschel on April 19, 2012, 12:48:01 PM
...and if you update the virtuemart, the changed template is gone.  :'(

So if you use a Joomla template e.g. "_mytemplate_" do the following:

With the example "default_pricelist.php"
create a directory inside your template:
templates/_mytemplate_/html/com_virtuemart/cart
and copy the file components/com_virtuemart/views/cart/tmpl/default_pricelist.php
to templates/_mytemplate_/html/com_virtuemart/cart/default_pricelist.php

Make changes to this new file - and no update will corrupt your template-driven cart any more.  :)
The virtuemart automatically loads this user-defined view (if it exists) from your template folder. (default settings in the virtuemart backend)

Thomas