-
AuthorPosts
-
calavaro Friend
calavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
November 4, 2013 at 12:42 am #191951Hi,
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
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
November 4, 2013 at 4:39 am #511097Hi 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 Friendcalavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
November 4, 2013 at 1:00 pm #511152Thank you Leo. It pointed me right at the right spots.
AuthorPostsViewing 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
Stockable variants drop down bar. How to make it longer?
Viewing 3 posts - 1 through 3 (of 3 total)