VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: GrouchoMrx on April 26, 2008, 16:21:40 PM

Title: class: product-Old-Price, is not working in the extra modules (latest prod)
Post by: GrouchoMrx on April 26, 2008, 16:21:40 PM
Description:
Hi! When I load the extra modules that come with VM 1.1 they do not show the class product-Old-Price correctly - the price is not red with a line over it. I have, however got it to work if I load the all-in-one module (don't want it loaded really) on the page and has concluded that that module adds these lines to the web page, which makes it work:
Quote
  <script src="http://www.jabbergab.se/components/com_virtuemart/fetchscript.php?gzip=0&amp;subdir[0]=/themes/default&amp;file[0]=theme.js&amp;subdir[1]=/js/extjs2&amp;file[1]=yui-utilities.js&amp;subdir[2]=/js/extjs2&amp;file[2]=ext-yui-adapter.js&amp;subdir[3]=/js/extjs2&amp;file[3]=ext-all.js" type="text/javascript"></script>
  <script type="text/javascript">Ext.BLANK_IMAGE_URL = "http://www.jabbergab.se/components/com_virtuemart/js/extjs2/images/default/s.gif";</script>

  <link href="http://www.jabbergab.se/components/com_virtuemart/fetchscript.php?gzip=0&amp;subdir[0]=/themes/default&amp;file[0]=theme.css&amp;subdir[1]=/js/extjs2/css&amp;file[1]=ext-all.css&amp;subdir[2]=/js/extjs2/css&amp;file[2]=xtheme-gray.css" type="text/css" rel="stylesheet" />

You can check it on my frontpage: http://www.jabbergab.se

VirtueMart Version:
1.1.0

Joomla/Mambo Version:
1.5.2

Steps to replicate:
Just load modules latest product or random products etc on another page than the one you have the shop on. Then you see that it does not work. To make it work load the all-in-one module.

Proposed fix(es):
Don't know.

Bugtracker task #:
Enter the bugtracker task #/url when submitted.

System info:
Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1.14; .NET CLR 3.0; ffco7) Gecko/20080404 Firefox/2.0.0.14
Apache: PHP made on Linux srv97 2.6.18-6-vserver-amd64 #1 SMP Sun Feb 10 17:55:04 UTC 2008 x86_64
PHP version: 5.2.5
ySQL Support   enabled
Active Persistent Links    0
Active Links    1
Client API version    4.1.11
MYSQL_MODULE_TYPE    external
MYSQL_SOCKET    /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE    -I/usr/include/mysql
MYSQL_LIBS    -L/usr/lib -lmysqlclient
Title: Re: class: product-Old-Price, is not working in the extra modules (latest prod)
Post by: robert andrews on May 30, 2008, 11:13:00 AM
Im haveing the same problem but found it only does this on the front page. the module works ok when you go to any product page.
I am useing vm 1.1 and joomla 1.5

www.lincs-golf.co.uk  to see what I mean
Regards
Rob
Title: Re: class: product-Old-Price, is not working in the extra modules (latest prod)
Post by: GrouchoMrx on May 31, 2008, 12:36:45 PM
Temporary solution?
It seems that most of the small plugins does not include the CSS-file for Virtuemart, which means that one must do that oneself. To fix the problem with the red line over the old price (AND bold text on price), take these lines and put them into your main (joomla theme) CSS file:
/* Virtuemart fix for front page (red line over old price etc.) */
.productPrice {
font-weight:bold;
white-space: nowrap;
}
.product-Old-Price {
color:red;
text-decoration:line-through;
}

Anyone knows if there can be problems when loading the same CSS file twice? If it's not a problem, maybe it's better to do that to avoid looking for duplicate code when you want to alter your layout.
Title: Re: class: product-Old-Price, is not working in the extra modules (latest prod)
Post by: jenkinhill on June 05, 2008, 00:33:41 AM
No problem loading css twice (or more times). The last loaded will be the one applied.