Categories
CMS Magento Mastering Development

knockout template html file in adminhtml area is not rendering

I am trying to initialize the knockout component in the admin html area, the respective code is below. phtml file to initialize ko template <?php /** * @var \JC\ChatSupport\Block\Adminhtml\ChatList $block */ ?> <div id=”chatlist” class=”chatlist” data-bind=”scope:’chatlist'”> <!– ko template: getTemplate() –><!– /ko –> phtml <script type=”text/x-magento-init”> { “#chatlist”: { “Magento_Ui/js/core/app”: { “components”: { “chats”: { […]

Categories
CMS Magento Mastering Development

Magento 2 Show Text with Shipping Option

I have created a shipping option and wanted text to show if that option was selected. Right now it displays when the shipping method is selected but below all of the shipping options. I want it to display with the method (not below all of them) if that method is selected. frontend/layout/checkout_index_index.xml <item name=”shipping-step” xsi:type=”array”> […]

Categories
CMS Magento Mastering Development

Magento 2 Show Text with Shipping Option

I have created a shipping option and wanted text to show if that option was selected. Right now it displays when the shipping method is selected but below all of the shipping options. I want it to display with the method (not below all of them) if that method is selected. frontend/layout/checkout_index_index.xml <item name=”shipping-step” xsi:type=”array”> […]

Categories
CMS Magento Mastering Development

Magento 2 Show Text with Shipping Option

I have created a shipping option and wanted text to show if that option was selected. Right now it displays below all of the shipping options and I want it to display with the method (not below all of them) if that method is selected. frontend/layout/checkout_index_index.xml <item name=”shipping-step” xsi:type=”array”> <item name=”children” xsi:type=”array”> <item name=”shippingAddress” xsi:type=”array”> […]

Categories
CMS Magento Mastering Development

Magento 2 Show Text with Shipping Option

I have created a shipping option and wanted text to show if that option was selected. Right now it displays below all of the shipping options and I want it to display with the method (not below all of them) if that method is selected. frontend/layout/checkout_index_index.xml <item name=”shipping-step” xsi:type=”array”> <item name=”children” xsi:type=”array”> <item name=”shippingAddress” xsi:type=”array”> […]

Categories
CMS Magento Mastering Development

Magento 2 Show Text with Shipping Option

I have created a shipping option and wanted text to show if that option was selected. Right now it displays below all of the shipping options and I want it to display with the method (not below all of them) if that method is selected. frontend/layout/checkout_index_index.xml <item name=”shipping-step” xsi:type=”array”> <item name=”children” xsi:type=”array”> <item name=”shippingAddress” xsi:type=”array”> […]

Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]

Categories
User Help

OperationalError at /admin/products/product/add/ no such table: main.auth_user__old DJANGO [closed]

main.auth_user__old in django tutorial going through mosh created a web server.When saving some polls or products or set i get this error instead of going to be saved on the site. Heres the error OperationalError at /admin/products/product/add/ no such table: main.auth_user__old Request Method: POST Request URL: http://127.0.0.1:8000/admin/products/product/add/ Django Version: 2.1 Exception Type: OperationalError Exception Value: […]

Categories
CMS Magento Mastering Development

Magento 2 : Calling a JS function from another JS file?

This Accessing a JS function from another JS file solution not mapped on my problem ,Please give me direction that how can i call getPureValue: function () from tax.js into some where in minicart.js tax.js /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ […]

Categories
CMS Development Magento

Add clear button in frontend calendar button panel

I am trying to add a clear button in the jquery datetimepicker widget using the below code. define([ ‘jquery’, ‘ko’, ‘Magento_Ui/js/form/element/abstract’ ], function ($, ko, Component) { ‘use strict’; return Component.extend({ initialize: function () { this._super(); var holidaysarray = window.checkoutConfig.shipping.delivery_date.holidaysarray; ko.bindingHandlers.datetimepicker = { init: function (element, valueAccessor, allBindingsAccessor) { var $el = $(element); //initialize datetimepicker […]