Questions tagged [checkbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
38 views

How to set the value of checkbox in gift_message to the database

I have added a custom checkbox to my magneto cart page for gift message. I want to add value 1 to the gift_message table's "remove_tag" column (which i added) if the checkbox is checked. How can i ...
0
votes
0answers
19 views

Add “remove price tag” Checkbox in Gift options Magento2

I need to add a checkbox under gift message with label "remove price tag" in magento 2.2. If the checkbox is checked then, value 1 should be stored in gift_message table (i have added a new column ...
0
votes
0answers
17 views

Magento2: Check the payment tab is activated

I have init js and corresponding template in checkout_index_index (after payment method). In that template, I have added on checkout after the payment methods. If I checked the checkbox, I have ...
1
vote
0answers
43 views

Magneto2.3.1 How to customize checkbox with compare link display on product detail page

I am using Magneto2.3.1 and i need to customize the default magento compare link on detail page. I want to show checkbox with compare label and if i checked than product compare successfully and if ...
0
votes
0answers
70 views

Magento 2 ui component admin field disabled/enable checkbox on userChanges event

Similar to native Magento URL Key Create Permanent Redirect for old URL: I have a custom module and wants to achieve same result: I have created a group exactly how category_form.xml in my_form.xml ....
1
vote
0answers
34 views

Need somehelp get data from checkbox in checkout

I have used Aheadworks_OneStepCheckout and I added some checkbox. However, I can't get the value of the checkbox. My code: /** * Copyright 2019 aheadWorks. All rights reserved. * See LICENSE.txt ...
0
votes
0answers
32 views

Magento 2 - Product attribute grid checkbox yes/no/any filter not working custom module?

$this->addColumn( 'main_table.attribute_id', [ 'header_css_class' => 'a-center', 'type' => 'checkbox', ...
2
votes
0answers
149 views

Terms and Conditions checkbox validation on checkout

On Magento 2.2.3 and I have an issue regarding the terms and conditions validation on checkout. If you have two different payment method, you select one you click place order you will have the error ...
0
votes
1answer
19 views

Magento 2 - build a unique id for the term's checkbox for payment methods using vault

For payment methods using vault, the id generated for term's checkbox is duplicated as the payment method name is same. /** * build a unique id for the term checkbox * * @...
0
votes
0answers
77 views

left side Attribute filter with checkboxes , Magento2.2.6

I am using Magento2.2.6 Our requirement is attribute filter with checkbox display on left side layer navigation inside.Not page reload Ajax using filtering.If anyone idea and if this functionality ...
2
votes
2answers
364 views

How to add custom checkbox with event in customer registration Magento 2?

I'm working on creating a custom checkbox with an event <div class="field tcagreecreateaccount required"> <div class="control"> <input type="checkbox" id="...
3
votes
0answers
49 views

Add a custom required checkbox on the onepage checkout page

I'm struggling to make my custom checkbox a required on the onepage checkout page in the order review step (last step) i have added my code in app/design/frontend/base/default/template/checkout/...
2
votes
2answers
555 views

Magento 2 Add multiple checkbox in admin ui form Group component

How do I add dinamically add multiple checkbox bellow the a field This is how you add one checkbox bellow a field <fieldset name="field_set_name" sortOrder="100"> <settings> ...
3
votes
1answer
49 views

Custom field in the form not saving values in to the Database in magento 2.1

I have created a custom attribute for customer using below code. setup/installData.php $customerSetup->addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'samsung', [ 'type' => '...
2
votes
0answers
31 views

How to create customer custom attribute for radio buttons in magento 2

I want to create customer custom attributes with following types: 1.radio buttons 2.checkbox Please provide me a solution to create customer custom attribute. If the checkbox contains more than 3 ...
2
votes
0answers
26 views

Amazon Payment agreement checkbox not working

Checkbox for agree not work currently and always show this message. I think does this is javascript or Ajax conflict. Please agree to all the terms and conditions before placing the order.
2
votes
2answers
82 views

How to get a form value in order process?

I have created a new small module to add a checkbox on last step of order process: The value will transfer over payment JSON: In the generated PaymentExtensionInterface I have the getter and setter ...
0
votes
0answers
25 views

Layered Navigation: Select all checkbox

I am using magento 2.1 In layered navigation, I want to display select all same as below screenshot.
0
votes
2answers
348 views

How to create customer custom attribute for radio buttons, checkbox in magento 2

I wish to create customer custom attributes with following types: 1.radio buttons 2.checkbox 3.dropdowns Please provide me a solution to create customer custom attribute.
1
vote
1answer
200 views

Magento 2 - How to add a custom checkbox above place order button in checkout page

I want to add a custom checkbox just above the place order button. The user should be allowed to click the Place Order button only after the checkbox is checked. Thanks in advance!
1
vote
0answers
150 views

Magento 1.9 - Custom Input Checkbox Types in Custom Options

I wanted to add custom Input Checkbox Type in product custom option and I have followed bellow link in order to add the type. This is working fine as default value (always associated/added to the ...
0
votes
0answers
19 views

Magento2: Custom comapre button functionality

How to add custom compare button with check-box. The page should be not refreshing. Please check below screenshot My Magento v2.0.17
0
votes
1answer
422 views

How to add News Letter Subscription checkbox on checkout Success Page in Magento 2?

I am getting email address in the database with this function: protected $subscriberFactory; public function __construct( \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, ....
0
votes
1answer
353 views

Checkbox Toggle Required-entry

I added a checkbox and i want to make the company required if that checkbox is checked, how can i do that? this is my js code define([ 'ko', 'uiComponent', 'jquery' ], function (ko, ...
1
vote
1answer
74 views

Magento 2 Setting custom customer attributes

I have some custom attributes set in the customer information in the admin. I have a page setup with checkboxes which if checked should set these attributes to yes or no. I'm struggling with setting ...
0
votes
1answer
374 views

Add Checkbox input with required validation

I want to add a checkbox with a required field. My code is : <div> <input class="input required-entry" type="checkbox" id="check" name="check" value="1" data-validate="{required:true, '...
0
votes
1answer
195 views

Checkbox validation

I want Checkbox required field I agree to the Terms and Conditions. I am using this code but it's not working.
1
vote
1answer
492 views

Create customer custom attribute checkbox in edit form backend

I added my customer attribute. But I want to display these fields as checkboxes. I created checkbox in the frontend easily but the backend is not. And then save to the database. Please help me. ...
2
votes
1answer
286 views

Magento 2 : Is there a way to customize the labels of an admin form toggle?

For admin form UI checkbox components that use the 'toggle' (like Catalog > Product > [product record] > Enabled) - I can see a few references to the UI component configuration using: <field name="...
1
vote
0answers
139 views

Show message on specific custom option select Magento 1.9

I would like to show a message when user select any specific custom option in Magento 1.9. I have two checkbox options: 'disposal' and 'installation'. Current Issue At the moment I can only show ...
1
vote
1answer
207 views

Adding a CheckBox to the Frontend Login - Magento 2.1.9

We would like to add a checkbox to the frontend login in order to redirect that login to the admin login in case the checkbox is checked. The redirection would login them in the backend login and ...
1
vote
1answer
51 views

Remove little checkbox from header checkbox when name is missing

So I have a product grid, a non-mass-action one. Because I wanted to have like in the mass-action, those checkboxes as the first columns, the representative for all value data, I added the following ...
2
votes
1answer
32 views

Magento 2.2 HTML; how to change a clickable text into a text with selection boxes?

I was wondering how to change the following: <li class="link"> <a href="https://some-url.com">Some Text</a> </li> In a way that I can have a text with a squared box, so that ...
0
votes
1answer
84 views

Use source model to checkboxes in catalog attribute

I have the code that create new attribute for category $setup->addAttribute('catalog_category', 'watermark', array( 'group' => 'Category labels', 'input' => 'checkboxes', '...
0
votes
1answer
612 views

How can the billing address checkbox labeled “Save in address book” checked by default in Magento 2 admin create order page

We are trying to make the billing address checkbox labeled "Saved in address box" checked by default when the page loads. We are aware of the post: backend order create: default billing = shipping ...
1
vote
2answers
644 views

Problem with checkbox uicomponent, has value doesnt 'check'

I'm having a trouble with UIComponent. Being precise it's a checkbox. I'm sure it takes true as a value, but it doesn't appear as a checked one. So it's propably something wrong with my structure. ...
1
vote
1answer
706 views

magento2 admin grid edit form checkbox not checked

I created magento admin grid form In my form i am using checkbox app/code/[vendername]/[modulename]/Block/Adminhtml/Blog/Edit/Tab/Main.php $fieldset->addField( 'applies_to_books', ...
1
vote
0answers
174 views

Getting data from customer attribute checkbox type in Magento 1 issue

I created a customer attribute with Text field as an Input Type . I selected the Show on Frontend on Yes . I went to the register phtml file and I added: <input type="checkbox" name="...
0
votes
1answer
624 views

How to add a checkbox in Account Edit Page to change custom information

How can I add a checkbox in account edit page(version magento 2.1). check box will be like email and chnages password, depends on selection I need to display my custom customer attribute field . Here ...
1
vote
0answers
268 views

Magento 2: How to create user defined option for checkbox in bundle product

I am trying to create "user-defined" option for the checkbox in bundle product. Is there any plugin in the market or anyone can help me with coding?
0
votes
0answers
253 views

Removing newsletter subscription “checkbox” at onepage checkout page

I have just migrated my store to a new domain. But I have an error at the one-page checkout page with "2" newsletter subscription checkboxes...supposedly still referring to the old domain name.
2
votes
0answers
125 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
842 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
727 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
626 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
145 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
339 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
500 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
101 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 ...