Is it possible to copy virtuemart styling to a template w/o

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Oct 03, 2014 4:17 pm
Is it possible to copy virtuemart styling to a template w/o store? I loathe the virtuemart standard styling and love how you guys style your store templates. What files would I need to copy over?
User avatar
Gold Boarder

GK User
Fri Oct 03, 2014 7:19 pm
Hi,
in theory it's easy, but start from this:
1) Copy those folders (and files) from your favorite quickstart:
\templates\gk_TEMPLATE\html\com_virtuemart
templates\gk_TEMPLATE\html\mod_virtuemart_cart
\templates\gk_gk_TEMPLATE\css\vm.css
\templates\gk_TEMPLATE\css\vmframe.css

into second template. Do not forget to link to those two css files !
User avatar
Platinum Boarder

GK User
Mon Oct 06, 2014 4:43 pm
Oscar E wrote:Hi,
in theory it's easy, but start from this:
1) Copy those folders (and files) from your favorite quickstart:
\templates\gk_TEMPLATE\html\com_virtuemart
templates\gk_TEMPLATE\html\mod_virtuemart_cart
\templates\gk_gk_TEMPLATE\css\vm.css
\templates\gk_TEMPLATE\css\vmframe.css

into second template. Do not forget to link to those two css files !

Would I link to those files in the css overrides in virtuemart? I am confused how to link to those css files?
User avatar
Gold Boarder

GK User
Mon Oct 06, 2014 7:09 pm
You can try,
but you can edit : templates\gk_TEMPLATE\component.php

and add there
Code: Select all
?php if($option == 'com_virtuemart' && ($view == 'productdetails' || $view == 'manufacturer')) : ?>
   <link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/vmframe.css" type="text/css" />
   <?php endif; ?>


before ending </head>
User avatar
Platinum Boarder

GK User
Mon Oct 06, 2014 7:10 pm
and here: \templates\gk_TEMPLATE\layouts\blocks\head.php
add this line :
Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/vm.css');

near others with similar code
User avatar
Platinum Boarder


cron