Domanda

Is there a way to open the bootstrap modal popup in Magento 1.x? Like: https://www.w3schools.com/bootstrap/bootstrap_modal.asp

I also had a look by ctrl+u but didn't find any bootstrap.min.js (or) bootstrap.min.css.

Do Magento 1.x uses bootstrap?

So is it possible to show a bootstrap modal popup in Magento by default?

Thanks

È stato utile?

Soluzione

You have to add these two files using your local.xml file.

<action method="addItem"><type>skin_js</type><name>js/bootstrap.min.js</name></action>

<action method="addItem"><type>skin_css</type><name>css/bootstrap.min.css</name></action>

make sure these two files exist in your skin location.

Then after you can copy the code from the w3school and use in your frontend template.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top