test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • calavaro Friend
    #191951

    Hi,

    How do I make the stockable variants drop down bar longer?

    Please see the picture.

    I can manipulate any other dropdown bar, but not the stockable vartiants drop down bar. Any ideas how I can do that?
    Ideally it should be 220px wide, but it is only 100px wide now.

    All the best,

    Calavaro


    1. 5
    phong nam Friend
    #511097

    Hi Calavaro,

    The width of stockable variant select tag is defined with fixed value in vmcusom plugin so that we will need to hack this VM plugin. You can open pluginsvmcustomstockablestockable.php file and find 291th line:

    $html .= JHTML::_('select.genericlist', $option,$optionName ,'class="attribute_list customfield_id_'.$js_suffix.'" style="width:100px !important;"','value','text',reset($options),'selectoptions'.$i,false)."</div>n";

    Then change:

    width:100px !important;

    to

    width: 100%;

    Then put below css styles override into custom.cs file:

    .product-fields select {
    width: 100% !important;
    }

    The select box will display with 100% width (200px) of .product-field then. Remember to back up the stockable.php file before editing.

    calavaro Friend
    #511152

    Thank you Leo. It pointed me right at the right spots.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  calavaro 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum