Questions tagged [checkbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
127 views

Magento 1 checkbox issue in the Payment Methods section from adminhtml

I have a custom checkbox in the payment method: <input class="required-entry" type="checkbox" value="1" name="test" /> I checked the checkbox and I changed the shipping method. After the ...
3
votes
1answer
1k views

Magento 2 : remove delete image checkbox from admin edit form

I have add an image upload field in my modules edit form using- $fieldset->addField( 'image', 'image', [ 'name' => 'image', 'label' => __('Image'), 'id' =...
2
votes
2answers
967 views

Magento 2 Show checkbox checked in grid edit mode depending upon value?

I have 2 checkboxes $fieldset->addField( 'call_me_in_morning', 'checkbox', array( 'name' => 'call_me_in_morning', 'label' => __('Call me in ...
3
votes
0answers
711 views

What is the proper format for checkbox validation in Magento 2?

Using 2.1.5, I have a custom front end form with a set of text elements built (roughly) as: <div class="field my-field required"> <label class="label" for="my-field">My Field:</...
2
votes
2answers
166 views

How Can I Bulk Unchecked Categories Check Box for Selected Products

Mistakenly i imported products with irrelevant categories, how can i Bulk unchecked categories check box for selected products by csv or anything.
0
votes
2answers
415 views

I have created module but checkbox not working properly in magento?

have create module all filed work properly but checkbox edit time not checked automatically. $fieldset->addField('hobbies[]', 'checkboxes', array( 'label' => Mage::helper('...
2
votes
1answer
634 views

Magento 2.1 : Grid duplicate checkbox id_ issue on add new and edit form

<input name="" value="3" id="id_3" class="checkbox admin__control-checkbox" checked="checked" type="checkbox"> I Want to check/unchecked the tags and holidays to attach them to my store as ...
1
vote
3answers
2k views

Magento 2 : By Default Checked Checkbox in Admin Form

I want to make my checkbox defaultly checked in admin form, I add checkbox field using fieldset using below code : foreach ($services as $service) { $servCond = false; if(is_array(...
1
vote
1answer
119 views

Custom checkbox field to change the customer group

I have created a custom check box field in billing.phtml(Magento 1.9.2.1), i want to assign customer group based on this field (i,e.. if the field is check the customer will be in one customer group ...
0
votes
0answers
66 views

How to send data to observer class or plugin class when click on check box in magento 2?

i am trying to send the data to observer or plugin through check on checkbox but its not firing.can anyone help me how to send data to observer class or plugin by clicking on check box.
1
vote
2answers
371 views

Remove checkbox label

Is there a way to remove a checkbox label from above? I looked into documentation, but i didn't find any similar example.
1
vote
1answer
1k views

Adding Checkbox in system configuration is not working

I want to add single check box in my extension like below. Please check my system.xml <config> <sections> <mymodule> <groups> <...
1
vote
1answer
493 views

Magento2: Adding the same custom attribute to all products of a certain Type?

How can I add the same custom option (checkbox) to all products of the same Type? In my case, certain products are of type "Event Ticket Product", due to changes from a 3rd party extension (...
0
votes
1answer
2k views

Customer registration form - subscription checkbox

So on my customer account registration form: domain.com/customer/account/create/ I would like to set the newsletter subscription checkbox, so it is already checked. So I have looked in the register....
2
votes
1answer
1k views

how to call the observer after checkout and store the orderid in my custom collection?

I want to save the order id and quote id in my custom table(collection).Give me some solution. My observer function is public function placeOrderAfter($event) { try { $order_id =...
1
vote
0answers
1k views

Magento 2 how to save values of 'checkboxes' type into 'core_config_data' table?

I am currently working on a Magento 2 extension. In my task, I need a field in admin grid to show a list of product's default attributes. My current solution is to use 'multiselect' to generate the UI....
1
vote
2answers
4k views

Magento2 how to set checkbox value?

I have added a custom checkbox in shipping address section on checkout page, i have used Plugin to observe the checkbox value but it is not returning the checkbox value rather it is simply showing ...
0
votes
1answer
2k views

Magento2 Make checkbox checked by Default in CHeckout page

I want to make the Checkbox checked by Default in checkout page. I have used below code it is displaying the Checkbox but it is not checked by Default, Can you please suggest where i was wrong. $...
1
vote
1answer
309 views

Checkboxes checkout not showing

We have a clarion OSC but the boxes for create an account, ship to an other address and accept term & condition is not showing. This is the css for it: .tm-hide { opacity: 0;/* filter:alpha(...
2
votes
0answers
623 views

Magento 2 - How to add onclick on checkbox in admin grid?

I want to add 'onclick' attribute on checkboxes, added through below code. $this->addColumn( 'customer_entity_id', [ 'header' => __(''), 'index' => 'entity_id', ...
0
votes
1answer
585 views

Remove extra sign up newsletter checkbox on one step checkout

I have two sign up to newsletter checkboxes on the last tab of my one step checkout. How do I get rid of only one of them? I have inspected them both and they defined exactly the same way, but they ...
0
votes
2answers
3k views

Magento - Validate checkbox

I have grid in my custom tab. Need to validate my checkboxes, atlease select one checkbox before submitting the form. Please have a look at attached screenshot. help me in this. Thank you!
0
votes
2answers
2k views

how to save checkbox values in database in magento

How to save checkbox values in database in magento ? My code is: $fieldset->addField('expertise', 'checkboxes', array( 'name' => 'expertise', 'label' => Mage::helper('...
0
votes
1answer
821 views

How to change anchor links to checkbox in list page?

In default Layered navigation Magento uses anchor links to filter products. I want to add checkbox instead. The code of filter.phtml is this: <ol> <?php foreach ($this->getItems() as $...
0
votes
1answer
4k views

Magento 2.0 Checkbox required validation not triggering

the checkbox required field validation in my code doesn't seem to get triggered on submit although the other input fields are validated. Can any of you check out what the hell's wrong in my code? &...
0
votes
1answer
3k views

Magento 1.9.2 - how to set checkbox in admin grid checked by default

Is there any way to make all checkboxes checked in particular column in admin grid. I want checkboxes checked by default in "skip" column. Here is a code for this column: protected function ...
0
votes
2answers
385 views

available sort by not editable

We have a lot of module installed and lot of configuration done and just see that we are not able to add more category due to available product listing sort by not editable and the checkbox not ...
3
votes
1answer
872 views

Set the checkbox value to checked by default for super product attribute configuration

I would like when we create a new configurable product the checkbox is checked by default But, I've found in the .phtml <input id="__id___label_use_default" type="checkbox" value="1" " checked="...
3
votes
1answer
444 views

Varien_Data_Form - 'checkboxes' only save last value

I made a simple form field with checkboxes $form = new Varien_Data_Form(); $form->setHtmlIdPrefix('option_'); $form->setFieldNameSuffix('option'); ...
0
votes
2answers
968 views

How to retrieve the muliple checkbox value in form

I tried to display the values from database but failed to display., First I inserted the values using checkbox., codes are below, $fieldset->addField('city', 'checkboxes', array( ...
3
votes
3answers
3k views

Disable massaction checkbox checked on grid row click

I want to cancel default behavior on grid row click - checking massaction checkboxes. The another default action - is redirecting to an editing page, and I've disabled it in this way - add this method ...
1
vote
5answers
3k views

before submit a form atleast one checkboxes is required

I have shown multiple check boxes,when I submit need atleast one checkbox is required., i tried below code., $fieldset->addField('checkboxes', 'checkboxes', array( 'label' => ...
0
votes
2answers
126 views

Magento Bug with additional checkbox in register field

I have small issue with my two checkbox's. They work fine, but i find small bug. They are required to pass registration. If i don't check them both, information about requiment showing under second ...
1
vote
1answer
3k views

How do we get an URL redirection when we click on checkboxes for every internet browsers?

Here is my issue. I am working on the layered navigation menu. In "filter.phtml", I added checkboxes to "li" tags, so that we can click on them in the frontend to get our research filtered. I tested ...
1
vote
1answer
3k views

Admin grid massaction checkboxes default checked & option set to action I want

Just like the question keep the checkboxes of mass action checked for some items, by default, but I simply want all checkboxes checked by default, plus a default mass-action is selected on first ...
1
vote
0answers
544 views

Simple Product with checkbox user defined quantity [closed]

So we sell a product in multiple strengths and sizes on our wholesale site. Product A comes in strength 1, 2, and 3. Currently the user has to select the bottle size via drop down then select strength ...
1
vote
1answer
1k views

checkboxes values not saving more then one

OK so i have a custom module setup and it is working great except on my admin form i cannot get the multiple checkboxes to save it always just saves the last one, i did locate other posts about this ...
0
votes
1answer
45 views

Custom module - specific checkbox question

I have custom slider module. Within that module you can add items (slides) one by one ( with title, caption, aso.. ). Now I added a checkbox to the same form. Only one item (slide) should have that ...

1
2