News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove Element Style in Custom Fields

Started by ferdzpalaspas, November 19, 2012, 20:26:23 PM

Previous topic - Next topic

ferdzpalaspas

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]

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

ferdzpalaspas

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/


bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

ferdzpalaspas

Hi,

i still cant find in: default_addtocart.php

and without the overrides, the Element Style "Width:100px !important;" is still there.. =(

bytelord

#6
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

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

ferdzpalaspas

it worked!  ;D ;D ;D ;D ;D ;D


thank you thank you thank you for your help..

bytelord

You are welcome,

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

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!