4

You have added it to the wrong directory, try this instead: app/design/frontend/Vendor/theme/Magento_Catalog/web/template/product/list/listing.html Then recompile following your usual workflow (grunt/gulp/static content deploy).


4

We create our phtml: app/design/frontend/{Vendor}/{theme}/Magento_Checkout/templates/html/my-custom.phtml <?= /* @escapeNotVerified */ __('My html is loaded') ?> <h3>successfully !</h3> We instantiate our custom phtml: app/design/frontend/{Vendor}/{theme}/Magento_Checkout/templates/onepage.phtml /* The Magento onepage code first, ...


3

Try following way: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="sales.order.history"> <action method="setTemplate"> <argument name="template" ...


2

@JoshuaFlood first you need to inspect the image tag on your browser to get the right image class, then you can style it like this: .fotorama__stage__frame .fotorama__img{ border-radius: 50%; }


2

To send values from phtml file to controller use form in phtml file with controller action <form action="<?php echo $this->getUrl('path/tothe/controller') ?>" method="post"> <input type="text" class="input-text watch-keyup" id="vat_exempt_name" name="vat_exempt_name" value="200"> <button type="submit">Add Money to ...


1

Try following way: app/code/SR/MagentoCommunity/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="...


1

I understood that it's not easy and decided to find more easily way. I put two blocks in wrapper and move this block after product info. Then I move blocks with CSS. In my case: <container name="product.info.price.wrapper" htmlTag="div" htmlClass="product-info-price-wrapper" /> <move element="product.info.price.wrapper" destination="product.info....


1

Could you check if your script injects \Magento\Framework\View\LayoutFactory $layoutFactory in the constructor. After that in your execute function place this: $layout = $this->layoutFactory->create(); $block = $layout->createBlock('Magento\Store\Block\Switcher')->setTemplate('Magento_Store::switch/redirectPopup.phtml')->toHtml(); ...


1

Kindly check the code of default.xml. You specify template file name "customeline.phtml" and you create file "customline.phtml". Change file name in your code like this. <referenceContainer name="header-wrapper"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="Magento_Theme::customline.phtml"/> </...


1

Put your file in below path : /frontend/BIgstore/Theme/Magento_Theme/templates/html/customline.phtml Change in your default.xml /frontend/Bigstore/Theme/Magento_Theme/layout/default.xml <referenceContainer name="header.container"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="Magento_Theme::html/...


1

Just your informed Magento2.x using knockout js MVC structure. In Magento 2 Checkout page payment methods list display in list.html and this file available at location /xxx/vendor/magento/module-checkout/view/frontend/web/template/payment-methods/list.html If need to override this file in your theme then copy core file at location /xxx/app/design/...


1

We can use HtmlContent component for adding a custom template to a UI fieldset Referred a customer module for adding a template in UI component as follows, <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <htmlContent name="customer_edit_tab_view"...


1

The problem was that the following: <?php echo $this->getBlockHtml('formkey') ?> Had to be added to: template/customer/form/register.phtml


1

yourlayoutModule.xml <?xml version="1.0"?> <layout version="0.1.0"> <catalog_product_view> <reference name="root"> <block type="core/template" name="shippingestimate" template="shippingestimate/shippingdate.phtml" /> </reference> </catalog_product_view> </layout> app/...


1

You can check here how to disable cache for a concrete block Assuming you don't want to exclude the full product list, then you'd define a custom child block so you can disable cache just for it. Take a look at http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/layout-practice.html for a complete reference about playing with layouts. This is ...


1

try below code under <body> tag of your xml file <referenceContainer name="content"> <referenceBlock name="forgotPassword"> <action method="setTemplate"> <argument name="template" xsi:type="string">myVendor_myModule::form/forgotpassword.phtml</argument> </action> </...


1

To load your custom javascript within shipping you need to extend Magento_Checkout/js/view/shipping.js You can either override this js into your theme package by copying the above file into the following place and add your custom function. /app/design/frontend/vendor/themePackage/Magento_Checkout/web/js/view/shipping.js or extend using mixins. To ...


1

In your module's XML file add dependency For example in your app/etc/modules/Test_ShippingCost.xml file would be look like <?xml version="1.0"?> <config> <modules> <Test_ShippingCost> <active>true</active> <codePool>local</codePool> <depends> <...


1

You have to add two layout update in your layout.xml file First to add your template in all pages <default> <reference name="content"> // Changes you reference accordingly <block type="core/template" name="customtestblock" template="test/test.phtml"/> </reference> </default> Second to remove block from ...


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