Questions tagged [custom-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to send custom email with email template from root Magento2.3?

I have created a script on the Root directory to disabled the products which having price below $50 which is working fine. Now I want to send the disabled product information like ID, SKU, Product ...
0
votes
1answer
19 views

How to do use a different theme on search result page instead of default?

How do I make the search results page use a different theme like you can on category pages? As, I'm using a different theme for a catalog on my store, but when you use the mini search it pulls the ...
-2
votes
1answer
38 views

I am getting this error in magento 2.3.5

error is template file invalid in Magento 2.3.5, so can anyone have idea then please share with me. Invalid template file: 'Product_SizeChart::size.phtml' in module: 'Product_SizeChart' block's name: '...
0
votes
0answers
8 views

Custom module phtml file for custom table data list and view like product in magento 1.9

I want to create a module example: manufacturer. I want to give a link on the site when a user click on that a url will open like manufcaturer.php and it will show all the list of manufacturer later ...
0
votes
0answers
33 views

Custom email template, use user id. Magento 2.3.4

I want to use user id/name in custom emails, when i use {{trans "% name," name = $ user.name}} , i get empty field. Do I have to create custom variables for this data?
0
votes
1answer
30 views

I want to display my products in my own template

First, I am new to Magento 2. My aim is to achieve when products added in the backend I want it to show in my custom template. Can anyone suggest some methods to do it?
0
votes
0answers
24 views

Magento 2 show availability date and time

I am trying to create a page with a calendar and show time where customers can pick. https://github.com/Roomify/bat I was looking here but wasn’t sure how to implement it. Is there any other way or ...
2
votes
1answer
129 views

Magento 2.3 - How to pass array from controller to template

I am working on a custom module. I am getting array of attribute values in my custom controller and I want to pass these values in my template to list in a select dropdown. Please provide a solution - ...
0
votes
0answers
41 views

Magento 2.3: Custom template override not showing on first load

I have override sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
37 views

Magento 2: Get store information in frontend files

I'm completely new (like 3 days in) to Magento Development so I apologise in advance if i'm asking a silly question! I've really struggled to find a good magento course online so now i'm at the stage ...
0
votes
0answers
79 views

How Do I Locate the Order Confirmation Email Item Renderer?

I'm having difficulty updating the order confirmation emails that our site is sending. I can find and modify the template in the admin interface and I can find the corresponding items.phtml file in on ...
1
vote
1answer
263 views

Pass parameter to controller from template Magento 2

I am creating product programmatically on controller action. I want to send price value from template file. This is my controller: public function execute() { if (!$this->session->...
3
votes
1answer
44 views

Magento : Not able to set a custom template using an extension

I am creating a custom module to set a custom template for vendor/magento/module-catalog/view/frontend/templates/product/view/options/type/default.phtml but I am not able to override it. I have ...
1
vote
1answer
668 views

Magento 2 Minicart content not displaying

I'm working on developing my own theme by extending the Magento Blank theme. I'm trying to add the minicart to my header.phtml file. I'm loading the minicart in my header like so: <?php echo $...
0
votes
1answer
28 views

Add custom template in footer in magento2

I have added the custom template in footer. It displayed in all page .But in view page its throwing 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid ...
2
votes
0answers
179 views

Getting a cutomer attribute value from a parent block inside child block

I am trying to get a value of my custom attribute linkedin_value to populate a form I have added to customer account edit page but I cannot get to it. As soon as I call $block->anything or $this-&...
0
votes
1answer
118 views

Magento 2.2: How to remove add_to_wishlist button from, and add SKU view in, recently viewed products widget in module

I want a extra tab on product page with 4 previously viewed products. Besides that I want to remove "add_to_cart,add_to_compare,add_to_wishlist" buttons and add SKU attribute to recently viewed ...
1
vote
1answer
424 views

Invalid template file in a custom module

Issue: Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Toogas_Easypay::info/multibanco.phtml' in module: 'Toogas_Easypay' block's name: 'multibanco\info_0'...
6
votes
1answer
2k views

How to call phtml file from html in Magento 2?

I have included a custom button in checkout page on click of that I should get my phtml file as popup. I have created a button in my custom module. \view\frontend\web\template\checkout\custom-...
0
votes
1answer
275 views

Magento 2 new home page template not working

I can't get a custom page template to work in my custom theme. All I'm getting is a blank page. No header, footer, page content, nothing. I have created the following files in my custom theme: /...
1
vote
2answers
130 views

Flush cache in particular template

It is not working in .phtml template $types = array('full_page'); foreach ($types as $type) { $cacheTypeList->cleanType($type); }...
1
vote
0answers
77 views

Magento 1 get all checkout child's block on ajax request

I create an action that will return to checkout page when I called it. My code is, echo $this->getLayout()->createBlock('opc/wrapper')->setTemplate('opc/wrapper.phtml')->toHtml(); But it ...
1
vote
1answer
835 views

Magento 2. Call .phtml (modal) from observer

I have created a custom .phtml file that contains a modal popup. I can successfully call this .phtml by adding it to default.xml in layout. <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
3answers
593 views

custom theme: add template file in default.xml

here my default.xml <body> <referenceContainer name="header-wrapper"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="...
0
votes
0answers
24 views

Howto Include Extension Template in Customer Account

We are trying to integrate the output of an extension into a customized phtml template: The extension is called Magetrend Newsletter Popup Pro which normally creates a pop that is being triggered by ...
0
votes
1answer
1k views

How to override the payment methods template while display in checkout page in magento 2

In Magento 1 /var/www/html/xxx/app/design/frontend/base/default/template/checkout/onepage/payment/methods.phtml. In Magento 2 What is the equivalent file for the above one in magento 2 and how to ...
0
votes
1answer
2k views

How to add a custom template for fieldset in ui-component form in magento 2

I have two filed sets in ui component form , Now I wish to Add custom template for one of the field set.Is it possible in uicomponent form to add custom template for a field set. Please provide me a ...
1
vote
1answer
2k views

Magento 2.2.1: How to override recently viewed template

I want to override recently viewed template that is currently located in vendor/magento/module-catalog/view/base/web/template/product/list/listing.html catalog_product_view.xml ...
0
votes
1answer
94 views

Login from PHTML template (1.9) [Resolved]

The problem was that the following: <?php echo $this->getBlockHtml('formkey') ?> Had to be added to: template/customer/form/register.phtml I am using the following inside a PTHML file: ...
0
votes
1answer
541 views

Display Custom Module Template After Product Title

I want to display my custom module template after Product title. here's the code which I'm using currently. <?xml version="1.0"?> <layout version="0.1.0"> <default> <...
1
vote
0answers
30 views

Custom template in sales (Magento2)?

I want to create a template file in sales->order->create new order for showing custom comment.so i create a template file set in sales_order_create_index layout.But It not displaying in admin order ...
0
votes
1answer
537 views

Magento-2 : How to add custom template just before add to cart button on product detail page

I want to display my custom template just before add to cart button on product detail page. It should be display in all type of product like Bundle, Grouped, Configurable Product. Thanks
0
votes
1answer
60 views

Overwrite list.phtml magento catalog

I have overwritten this template magento_catalog/templates/product/list.phtml in my own theme. I have the following code to show a random number. $number = mt_rand(1000,9999); I print this number ...
0
votes
1answer
602 views

Magento 2, issue with forgotpassword.phtml template override

In my custom module I have created app/code/myVendor/myModule/view/frontend/layout/customer_account_forgotpassword.xml . With below content I can see title is changing but form gets disappear instead ...
0
votes
1answer
426 views

Magento 2: Add border-radius to image on product page

Magento 2.2.1 using a custom theme which inherets from Magento/blank. I would like to add a border-radius to the main image on the product page. I have tried applying border-radius to parent ...
2
votes
2answers
719 views

Unable to load javascript

I'm trying to load javascript file in app/code/Anime/Shipping/view/frontend/web/template/shipping.html which overrides the core file Magento_Checkout/template/shipping.html. I can see that I'm able to ...
1
vote
1answer
739 views

Block is not calling properly in magento 2 custom module

I have a custom theme in magento 2 website. In home page i called a banner slider(Banner_slider is a custom module) I called the slider like this in home_content.phtml(design/frontend/company/...
5
votes
1answer
597 views

Override Available shipping method template from custom module not working

I tried to override the core template file which located in app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml like this: app/code/local/Test/...
1
vote
1answer
96 views

How can i add a template in all the pages except in category page

I have a template called test.phtml in \magento\app\design\frontend\rwd\newtheme\template\test\test.phtml In page.xml layout file I am not getting how to add my template to appear in all pages ...
2
votes
1answer
1k views

Magento 2: How to move the tier price table under the quantity input box on product view page

I am working on the product catalog page using my customized theme. Is it possible to insert my customized tier_prices.phtml inside my customized addtocart.phtml file? I need to put my tier prices ...
2
votes
1answer
2k views

Override customer sales order history template not working

I want to override sales order history for customer in frontend like this: app/code/Test/SuccessPage/view/frontend/layout/sales_order_history.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
483 views

Combine Price and QTY in Magento 2

I want to combine block with price and block with quantity. QTY block without button "add to cart". I found in theme's catalog file : Magento_Catalog/templates/product/view/addtocart.phtml. I see ...
2
votes
1answer
1k views

Change product page layout and design for the bundle product, in Magento 1.9

What I did 1) Moved bundle folder from rwd to my active custom them template folder. 2) In app/design/frontend/rwd/ysv/layout addedd below code, <catalog_product_view> // under this &...