Magento custom option with radio buttons on the same row - magento

I've created a simple product with custom option for size (with radio buttons) instead of a configurable product. My problem is that radio buttons are displayed on different rows.
see here
I want my radio buttons to look more like this
What code should I edit? thank you in advance!

add float:left; to stylesheet for li:
.product-options ul.options-list li {
/*... yor style here ...*/
float:left;
}

Related

jqGrid show hide button navGrid inlineNav

I'm using jqGrid jqGrid 4.14.2-pre
How to hide or show buttons depending on the condition
Not using css
loadComplete:function(data)
{
if(data.records > 100)
{
$('#grid').jqGrid('navGrid','#pager');
// hide $('#grid').jqGrid('inlineNav','#pager'); ?
}
else
{
$('#grid').jqGrid('inlineNav','#pager');
// hide $('#grid').jqGrid('navGrid','#pager'); ?
}
}
I'd recommend you to call both navGrid and inlineNav, but to hide unneeded buttons identifying there by id. You should just know simple rule how the ids will be build. jqGrid uses prefix build on the navigator button ("add_", "edit_", "refresh_", ...) and the grid id ("grid" in your case). See the old answer for more details. The method inlineNav do the same, but the ids of buttons will be build base on another rule: the grid id and the suffix "_iladd" (for Add button), "_iledit" (for Edit button), "_ilsave" (for Save button) and "_ilcancel" (for Cancel button).
Let us you have grid with id="grid". To hide Add button added by navGrid you can use $("#add_grid").hide();. To hide inlineNav Add button you can use $("#grid_iladd").hide();.

Display border along header and footer of Kendo grid

I am adding columns dynamically in the kendo ui grid. At the top of the grid the default text is displayed 'Drag a column header and drop it here to group by that column'.
At the footer of the grid the paging details are displayed including icon for navigation.
But, the grid is not displaying the border at the top and bottom, means the default text displayed at the top of the grid is not having the border and also the footer including the paging control the border is missing.
How can I add that border.
Thanks
For styling group header o a grid you need to include the definitions in k-group-header. Something like:
.k-grouping-header {
border: 5px groove red;
}

How to add a image to dojo datagrid cell

I can add a image to dojo datagrid cell by adding a class to the cell,but when I double click the cell the images of row that I clicked are lost,so is there a another way to add a image that not being lost.
yes there is,
simply add an
<div class="imagediv"></div>
as the value of your cell and also in your css file, something like that:
.imagediv{height:20px;width:20px;background-image:url(/path/to/image.png);}
if you need to display an image based on cell values, you should look into the dojo's layout-formatter functions:
http://dojotoolkit.org/reference-guide/1.8/dojox/grid/DataGrid.html
(search for formatter)

Magento Product Page

Where exactly can I modify the style for things like buttons on the product page?
The specific problem I am having is that the add-to-cart button is inheriting black font, so that it’s illegible with the black background.
For every style modification you can refer the style.css of your skin/frontend/package/theme folder.
Use firebug plugin with firefox to check the line number and required styling for any perticular object.
About your add-to-cart button : you can give color background the span element inside the button tag.
Hope that helps.

jqGrid NavBar custom HTML

I need help with jQuery jqGrid and subgrid.
I am able to create a Subgrid inside my jqGrid succesfully. The next step is to add a custom option list in the main grid navbar somewhere so that depending on which option the user selects, a different kind of subgrid opens.
Is it possible to add custom options to the jqGrid navigation bar?
The only standard way to add custom element in the navBar is to use navButtonAdd method which add a button.
If you want to add another custom HTML elements you have to do this manually with respect of some jQuery function like jQuery.append. I recommend you to read the code of navSeparatorAdd and navButtonAdd functions.

Resources