News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Shopping cart question!

Started by Freedom28, April 17, 2012, 17:29:18 PM

Previous topic - Next topic

Freedom28

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]

jenkinhill

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/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Freedom28

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 "?

balai

Look here:
components\com_virtuemart\views\cart\tmpl\default_pricelist.php

Thomas Kuschel

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