New answers tagged

0

You can refer to my work below, where "updateQuote" is a jquery widget. define([ 'jquery', 'Magento_NegotiableQuote/quote/actions/update-quote' ], function ($, updateQuote) { 'use strict'; var mixin = { _sendData: function () { updateQuote()._updateTotal(); return this._super(); }, }; ...


1

Actually i was able to customize fotorama library downloaded from their official website because I found it difficult and nearly impossible to use Magento's fotorama library, below are the steps I have followed to use a custom library in magento 2. In this library, I feed the gallery images in the JS file, by pushing the images to the fotorama function. ...


0

You seem to have added more complexity to this than is needed. The simplest way to achieve this will be to use the style binding. Something like this should do the job: <div data-bind="style: {'font-family': selected_font }"> This will automatically update the font family whenever the selected_font observable changes. Using jQuery within ...


Top 50 recent answers are included