VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ferdzpalaspas on November 19, 2012, 20:26:23 PM

Title: Remove Element Style in Custom Fields
Post by: ferdzpalaspas on November 19, 2012, 20:26:23 PM
Hi,

how to remove the Element Style "Width:100px !important;" under Custom Fields Select Options?

or where i can find the Custom Fields Selection Page to edit the width 100px?

Please check the attached file..

Sorry for my bad english,hope someone can help me..

tnx!


[attachment cleanup by admin]
Title: Re: Remove Element Style in Custom Fields
Post by: bytelord on November 19, 2012, 21:15:33 PM
Hello,

Any live url?

Did you try to check if you are using a custom template with overrides? Check your template file  joomla_folder\templates\your_joomla_Template\html\com_virtuemart\productdetails\default_customfields.php

Regards
Title: Re: Remove Element Style in Custom Fields
Post by: ferdzpalaspas on November 20, 2012, 13:05:55 PM
Hi,

i checked the file,but i didn't see this code: Width:100px !important;

here's the link: the website is still under constrtuction: http://174.132.162.253/~ferdz/una-rosa.com/
Title: Re: Remove Element Style in Custom Fields
Post by: ferdzpalaspas on November 20, 2012, 13:07:06 PM
Sorry,here's the product detail page: http://174.132.162.253/~ferdz/una-rosa.com/index.php/dresses/product-name-1-detail
Title: Re: Remove Element Style in Custom Fields
Post by: bytelord on November 20, 2012, 13:18:10 PM
Hello,

I test on my installations and there are not fixed styles ... check also the default_addtocart.php ... may be there

If you give a try without template overrides, is that fixed style added?

Regards
Title: Re: Remove Element Style in Custom Fields
Post by: ferdzpalaspas on November 20, 2012, 13:31:25 PM
Hi,

i still cant find in: default_addtocart.php

and without the overrides, the Element Style "Width:100px !important;" is still there.. =(
Title: Re: Remove Element Style in Custom Fields
Post by: bytelord on November 20, 2012, 13:55:37 PM
Yes,

You have right. The problem comes from custom plugin ... please go to plugins\vmcustom\stockable\stockable.php and you will find the styling is coming from there... one of that you are seaching is under line 203

$options_html .= JHTML::_('select.genericlist', $option, $name.'['.$selectoptions.']','style="width:100px !important;float:none;"','text','value',$values[$selectoptions],false,true)."\n";

This one i think will be fixed on the next release and will be added in the vm default css so users can override it...

You could use and str_replace to change that css html styling ...

Please make that correction at your need, or add a class ...

Regards

Title: Re: Remove Element Style in Custom Fields
Post by: ferdzpalaspas on November 20, 2012, 14:02:24 PM
it worked!  ;D ;D ;D ;D ;D ;D


thank you thank you thank you for your help..
Title: Re: Remove Element Style in Custom Fields
Post by: bytelord on November 20, 2012, 14:21:20 PM
You are welcome,

Hopefully on the next version those ones will be customized using CSS

Regards