New answers tagged

0

The Solution I Used: <input class="input-text" type="text" id="customer-dob" name="dob" value="" data-validate="{'required-entry':true}" data-bind="value: dob, datepicker: {storage: dob, options: { dateFormat: 'dd/mm/yyyy'}}"/> Make Sure dob should be defined as observable. Please ...


1

Try the following way: Step 1: app/code/SR/MagentoCommunity/view/frontend/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <...


1

Template Removed id's since there shouldn't be more than one element on page with the same id Wrapped list item text with a span since trying to output the text of the li element would also output the button text With Magento Init Script <div> <ul class="list-group" data-role="item-announcer"> <li> ...


1

If you want to implement the jquery click event that you can refer the document as sometime knockout component call after the dom render you can use the below document jquery selector for the click event. jQuery(document).on('click', '#your_selector', function (event) { console.log("element click"); } Also in the html file you can use the ...


0

Here is : <!-- ko if: (getCartLineItemsCount() === 0) --> <span translate="'No Item in Cart'"/> <!--/ko--> <!-- ko if: (getCartLineItemsCount() === 1) --> <span translate="'Item in Cart'"/> <!--/ko--> <!-- ko if: (getCartLineItemsCount() > 1) --> ...


1

PHP functions run when page is reload so you can do this in you custom controller what ever you want steps create a ajax call on shipping select to a controller like on shipping select radio button add onlick="myfunction()" and in js file use like this function myfunction() { jQuery.ajax({ url: '/routename/controller_folder/...


0

it will help you to solve this issue. <?php $_helper = $this->helper('Magento\Catalog\Helper\Output'); $_product = $block->getProduct(); ?> <div class="link wishlist"> <a href="#" data-post='#' class="action towishlist wish-in-wish" id="hasitem-wish"></a> <a href="#" ...


0

This is how you get all the components: require('uiRegistry').get(function(c){ console.log(c.name); });


0

you can follow the below link to translate the word in html file translation in html file


1

the error is related to the time line in the fail statement, config.response.data({ error: true, messages: 'Something went wrong.', t: t }); you might want initially hard-code t to a valid date just so that you remove any suspicion about this t ...


Top 50 recent answers are included