Skip to main content

Questions tagged [x-magento-template]

Filter by
Sorted by
Tagged with
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 ...
R-IphoneDev's user avatar
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 ...
Black's user avatar
  • 3,431
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=...
Brian NN's user avatar
  • 941
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: ...
Narendra Vyas's user avatar
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 ...
Manish Joy's user avatar
  • 1,215