Questions tagged [knockoutjs]

Denotes questions related to Knockout use in Magento2

323 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
255 views

How to stop loading the page using knockout js after the event has completed in magento 2

I am adding the custom price to order total, its fine adding the price.but the page loading is still loading, how can i stop loading using knockout js. Thanks in advance i have this code in my ...
0
votes
0answers
986 views

Bind shipping address data in custom form in new checkout step

I have added a new step in one-page checkout after the shipping step. I need to fetch the data from the shipping form and bind it to the new form. The code for above is as following. age-verify-view....
0
votes
0answers
1k views

Magento 2 checkout page custom dropdown field selected value not showing

I have added dropdown custom field on checkout page with custom values. It's working fine but when i move to next step it doesn't work. If i add a text field and click next console shows the input ...
0
votes
1answer
2k views

Magento 2 knockout component scope

I have two knockout components. The xml in layout is: <body> <referenceContainer name="content"> <block class="Vendor\Module\Block\List" name="some_name" template="list....
0
votes
1answer
2k views

magento 2 payment method does not show up in checkout page frontend

I'm trying to implement a new payment method with Magento 2 , so i have implemented the below code to display the payment method as an option within payment methods list , however the issue is "...
0
votes
1answer
1k views

Magento2 : While bind Custom knockout js to html it return only default value

/app/design/frontend/Vendor/custom_theme/Magento_CheckoutAgreements/templates/additional_agreements.phtml I have this code inside .phtml: <div data-bind="scope: 'checkout-agreements-component-...
0
votes
2answers
604 views

Filling Shipping address fields with values using Jquery or Knockout Js

Is it possible to just fill the shipping address fields with my own values? For example: I want city field to be filled with My City when an event occurs on the checkout page. I know the checkout ...
0
votes
0answers
258 views

re-render select options

I have this following ko template <select name="payment[fabinst_tenor]" class="select select-tenor" data-bind=" attr: {id: getCode() ...
0
votes
1answer
752 views

Magento 2 EE Checkout Page not working (JS error)

I am facing an issue of knockout JS file on my site bixlercollegiate.com. My products are being added, but when I click on checkout, the page becomes blank. When I checked my console on Chrome, the ...
0
votes
0answers
285 views

Problem with error Message on Customer Registration

I have a Magento 2 problem with the registration form. The problem only occurs on my test/production servers (jelastic setup, centos), not on my vagrant machine running an ubuntu server. Problem is, ...
0
votes
1answer
435 views

Remove checkboxes in customer-account-edit and show all info

In customer-account-edit page magento decided (why???) to insert 2 checkboxes: By default only if you click on those checkboxes the other fields appear so you can change them. I would like to remove ...
0
votes
0answers
86 views

how to build sku in magento2

Here i have a requirement to build SKU. Basing on category,subcategory & brand. Rule is to con-cat 1st 3 chars of categories and subcategories and brand followed by DB increment number. At the ...
0
votes
1answer
97 views

How can a Knockout snippet display in a data-badge?

Attempting to display the current total of products in the mini-cart in a data-badge. The Knockout text displays in this version: <span class="counter-number" data-badge="">My Cart<!-- ko ...
0
votes
0answers
392 views

KnockoutJs tab In magento 2

I am using Magento 2.1.0, and i am trying to create tab on frontend by using knockout js. i checked so many tutorial, in which one i refer http://jsfiddle.net/NLGm8/32/ I created Phtml file <...
0
votes
0answers
242 views

Magento 2 : How to add progessive bar(>) after next button in checkout page

I want to change text name of next button in checkout page <button data-role="opc-continue" type="submit" class="button action continue primary"> <span><!-- ko i18n: 'Next'-->&...
0
votes
0answers
378 views

Magento 2 Mini Cart Plugin di.xml doesn't pass attribute information

I have a issue that i need to output a product attribute that isn't option in Mini Cart. Here is my plugin scructure: Vendor/Checkout/etc/di.xml: <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
456 views

How to add KnockoutJS Plugin to Magento2?

Goal: Add pager.js. pager.js is a JavaScript library based on KnockoutJS and jQuery that provides the possibility of creating single page applications in a declarative fashion - nesting subpages ...
0
votes
1answer
766 views

Magento 2 - Add a message to a ko template that is created through a LayoutProcessorPlugin

I need to add message "Need it by today? Anything is possible, it's just a phone call away" in a KO template. However, this template is created through the afterProcess method LayoutProcessPlugin.php ...
0
votes
1answer
141 views

How to add a span tag to template in the onepage checkout?

I need to add a span-Tag next to the radio-Buttons in the payment template of the checkout. And my question is HOW DO I DO THAT? I can't find any template that matchs. There are several templates for ...
0
votes
0answers
115 views

how to delete an input field in knockoutjs template in magento2

On checkout page, there is a company field that I need to remove from the shipping address form. Furthermore, I need to change the city and region fields to make them dependent dropdowns. I have ...
0
votes
2answers
1k views

How to observe checked event for different radio button groups?

I have created a new checkout step in which each product is listed along with the option to select which delivery method to use normal shipping or store pickup. I have displayed the product ...
0
votes
1answer
1k views

Magento 2 knockoutjs error data-bind even?

I have created custom template with knockoutjs in magento 2.1.7. The file name mytemplate.phtml <script type="text/x-magento-init"> { "*": { "Magento_Ui/js/core/app": { ...
-1
votes
1answer
216 views

Magento 2: How can write jquery in html file?

I try it but not working with html file <script type="text/javascript"> require(['jquery', 'jquery/ui'], function($){ jQuery(document).ready( function() { alert("Page loaded."); }); }); ...

1
3 4 5 6
7