VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: izemate on January 09, 2014, 13:06:27 PM

Title: Ask question / Send to friend no CSS?
Post by: izemate on January 09, 2014, 13:06:27 PM
Hi

On my webshop the "ask question" and "send to fried" popup box dosent seem to have any CSS included?
The font is different from the rest.

Anybody know how to fix this?

Exampel page:
http://www.scandinaviancomputers.com/da/?option=com_virtuemart&view=productdetails&virtuemart_product_id=29&virtuemart_category_id=99&Itemid=163

Thanks in advance.
Title: Re: Ask question / Send to friend no CSS?
Post by: Christopher on February 07, 2014, 17:15:44 PM
Yes - open the following file:

[SITE ROOT]/components/com_virtuemart/views/askquestion/tmpl/form.php

Add the following at the TOP of the file, above the opening "<?php" tag :

<head>
<link rel="stylesheet" type="text/css" href="../../../../../templates/[YOUR TEMPLATE FILENAME]">
</head>

The series of "../" (Five in the case shown above) will take the 'path' back to the SITE ROOT

Hope this helps
Title: Re: Ask question / Send to friend no CSS?
Post by: Christopher on February 07, 2014, 17:18:16 PM
... you need to wrap the call to the stylesheet in the <head> and </head> tags because it's a PHP file

You can change the other file - For "Recommend to a Friend" in the following location:

[SITE ROOT]/components/com_virtuemart/views/recommend/tmpl/form.php