Questions tagged [x-magento-template]
The x-magento-template tag has no usage guidance.
5 questions
4
votes
1
answer
902
views
How to display product image in summary section in bundle product page in Magento 2?
we are using Magento V 2.3.5-p1
In default Magento when we select options on the bundle product page the selected option will be displayed in the summary section. By default, only the quantity and ...
0
votes
1
answer
1k
views
Execute code after "text/x-magento-init" code finished loading
I need to call a piece of code right after my fotorama gallery loaded. The gallery is called like this in vendor\magento\module-catalog\view\frontend\templates\product\view\gallery.phtml:
<div ...
1
vote
2
answers
831
views
How to use if else in x-magento-template
I want to use if, in x-magento-template, I try this code and it shows thí
Code :
<% if(fields.branche == ""){ %>
<div class="right">
<img style="width: 25px;" src=...
0
votes
1
answer
2k
views
Magento 2 how to write in data-mage-init
Magento uses below way to show Requistition list using "x-magento-init".
<div class="block block-requisition-list social-button" data-bind="scope: 'requisition_ - 111'">
<!-- ko template: ...
1
vote
1
answer
2k
views
How to render HTML in x-magento-template?
I have used this blog https://webkul.com/blog/how-to-write-javascript-template-in-magento2/ to use x-magento-template. In this I can render data using such code:
<%- data.name %>
But it shows ...