Questions tagged [reference]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
686 views

How to add class for Reference Block Arguments in xml file?

I have created custom in link header, <referenceBlock name="header.links"> <block class="Magento\Framework\view\Element\Html\Link" name="custom-link" before=&...
zus's user avatar
  • 145
1 vote
0 answers
70 views

Troubleshoot Broken reference:

All the templates in my custom child theme suddenly started showing a white screen. The error logs showing the following: [2020-08-10 17:29:28] main.WARNING: Broken reference: The element with the &...
Sam's user avatar
  • 163
0 votes
1 answer
65 views

Magento 2 | is it possible to set block class by referencing a block?

I'm currently rewriting a layout file: <referenceBlock name="checkout.cart.totals> <!-- some stuff --> </referenceBlock> Is it possible to set the block class here?
user11455652's user avatar
0 votes
2 answers
3k views

Magento 2 add new argument in the reference block and get into the phtml

I am working on reference block concept, in that I need to add new arguments and get the argument value on the .phmlt file. in catalog_product_view.xml I've added the below line of code. <...
senthil's user avatar
  • 1,677
0 votes
1 answer
384 views

M2 | How to find referenceBlock name for the Sales Order View : Account Information Section?

Part1: I need to know the referenceBlock name for: Part 2: and put a button at: “If you have knowledge, let others light their candles in it.” ― Margaret Fuller
Ajwad Syed's user avatar
  • 1,581
0 votes
1 answer
162 views

Magento 2 | Which refrenceContainer to use for adding additional button on 'Create New Order Page?

I am adding a new button with Add Products button at: Sales->Order->Create New Order->New Add Product Button as shown in screenshot! I searched for the relevant referenceContainer in vendor but all ...
Ajwad Syed's user avatar
  • 1,581
2 votes
2 answers
5k views

Magento 2 | When to use referenceContainer and when referenceBlock?

I am getting same output if I use referenceContainer or referenceBlock As <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
Ajwad Syed's user avatar
  • 1,581
2 votes
1 answer
756 views

Magento 2: Add child div containing all items in columns

Below is my html struture of 2-column layout, <div class="columns"> <div class="column main"> ------ </div> <div class="sidebar sidebar-main"> -----...
user1799722's user avatar
2 votes
0 answers
83 views

Can I store Payment Reference Number of an order,which are generated by CCAVENUE in Magento-2.1?

I want to add Payment reference number for particular order. I will use Magento-2.1 and frontend is in Angular. Suppose CCAVENUE sending payment link to customer for placed order. CCAVENUE generate ...
Lovely Setia's user avatar
-1 votes
3 answers
133 views

Magento 1.8 - How to use reference to show a template on all pages without using a custom module?

I try to add the following template on all pages in the header by using reference. I tried it like this: app/design/frontend/venedor/default/template/black/alert/index.phtml: <script>alert("...
Black's user avatar
  • 2,993
1 vote
0 answers
303 views

Magento 2 dashboard recent order template change

I have created a new module in Magento2 for order feedback, for that, I have just change the template of the recent order file. The below mentioned file have that template(order/recent.phtml) with ...
senthil's user avatar
  • 1,677
0 votes
1 answer
240 views

Magento 2 - insert meta data to page layout

I need to add different meta data for different page layouts, i've tried to do it like this: <referenceBlock name="head.additional"> <block class="Magento\Framework\View\Element\...
qvasz's user avatar
  • 134
0 votes
1 answer
112 views

Removing reference blocks per website in Magento 2

If I add the following to any default.xml <referenceBlock name="minicart" remove="true" /> The Mini Cart is removed. However my question is how do I only remove the reference block for a ...
Goose84's user avatar
  • 2,529
1 vote
2 answers
768 views

Magento 2: How to display store information in email footer?

Using magento 2.2.2 with custom theme which inherits from Magento/blank. I am altering the template stored here: [Vendor]/[Theme]/Magento_Email/email/footer.html I would like to include my store ...
Muckee's user avatar
  • 663
0 votes
0 answers
160 views

trying to add a phtml file using controller_action_layout_load_before in frontend on cart page

I am trying to add a phtml file using my custom module in cart page only at bottom of content or above the footer section In /magento1/app/code/local/Maddyboy/Instagramapi/etc/config.xml <...
inrsaurabh's user avatar
  • 1,656
0 votes
1 answer
774 views

How to create new reference section at top of the home page Magento 1.9

I want to create a new reference section at top of the home page using a module. Tut on Inchoo the method mention here is working, but I want to do this by module so that when i install the module ...
inrsaurabh's user avatar
  • 1,656