2

There is no need for defined jquery paths or mappings in require-js configs. Because jquery is located directly in lib/web/jquery.js. As such it will be present in the pub/static files directly within the locale directory. pub/static/Magento/luma/en_US/jquery.js. As such the path jquery within the require of js components or phtml is just resolved on the ...


2

You're getting the observable, this is why u see a function in console.log. Its a knockout JS Observable, so to you get the current value use the following syntax: customerData.get('customer')() You can also subscribe to it observable example: customerData.get('customer').subscribe(function (newVal) { console.log(newVal); }); This way your code works ...


2

For hide filter on specific category, please follow below steps: After login admin side, go to Catalog > Categories Select category and open Display Settings tab Set No in Anchor field Clear cache


1

You can add a phtml file inside your static cms-block: {{block class="<vendor_name>\<module_name>\Block\<module_name>" name="<your_block_name>" template="<vendor_name>_<module_name>::<template_directory>/filename.phtml"}} Inside of the phtml-file, you can add javascript and the logic to ...


1

Change the category design layout to 1 column : this layout is sans filters. No code was harmed using this solution.


1

Your question is pretty confusing as you want to hide it without touching code, but you also want to do it by CSS or JS which is code? Either way, you can hide it with CSS by using this: .sidebar .filter { display: none !important; } Although the better method would be to remove it with layout XML then you don't even need to load it, there's no point in ...


1

It appears you have some Javascript that is using ES6 or newer syntax and the version of UglifyJS does not support this. It looks like version 3.13.0 does support ES6 so I suggest either upgrading to that, using an alternative. If that is not possible then you will need to re-write your JS to ES5 standards. To find the code responsible try searching your ...


Only top voted, non community-wiki answers of a minimum length are eligible